Initial Commit
This commit is contained in:
17
z_gbdk_playground_original/small_sprite/Makefile
Normal file
17
z_gbdk_playground_original/small_sprite/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
AS = lcc -c
|
||||
CC = lcc -Wa-l -Wl-m
|
||||
|
||||
BIN = small_sprite.gb
|
||||
OBJS = small_sprite.o sprite.o
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
%.s: %.ms
|
||||
maccer -o $@ $<
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
$(CC) -o $(BIN) $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -rf $(BIN) $(OBJS) *~
|
||||
|
6
z_gbdk_playground_original/small_sprite/README.md
Normal file
6
z_gbdk_playground_original/small_sprite/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Small Sprite
|
||||
|
||||

|
||||
|
||||
Renders a small 8x8 sprite to the screen.
|
||||
|
BIN
z_gbdk_playground_original/small_sprite/screenshot.png
Normal file
BIN
z_gbdk_playground_original/small_sprite/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
10
z_gbdk_playground_original/small_sprite/small_sprite.c
Normal file
10
z_gbdk_playground_original/small_sprite/small_sprite.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <gb/gb.h>
|
||||
#include "sprite.c"
|
||||
|
||||
void main() {
|
||||
SPRITES_8x8;
|
||||
set_sprite_data(0, 8, sprite);
|
||||
set_sprite_tile(0, 0);
|
||||
move_sprite(0, 50, 50);
|
||||
SHOW_SPRITES;
|
||||
}
|
32
z_gbdk_playground_original/small_sprite/sprite.c
Normal file
32
z_gbdk_playground_original/small_sprite/sprite.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
|
||||
SPRITE.C
|
||||
|
||||
Tile Source File.
|
||||
|
||||
Info:
|
||||
Form : All tiles as one unit.
|
||||
Format : Gameboy 4 color.
|
||||
Compression : None.
|
||||
Counter : None.
|
||||
Tile size : 8 x 8
|
||||
Tiles : 0 to 0
|
||||
|
||||
Palette colors : None.
|
||||
SGB Palette : None.
|
||||
CGB Palette : None.
|
||||
|
||||
Convert to metatiles : No.
|
||||
|
||||
This file was generated by GBTD v2.2
|
||||
|
||||
*/
|
||||
|
||||
/* Start of tile array. */
|
||||
unsigned char sprite[] =
|
||||
{
|
||||
0x7E,0x7E,0x99,0x99,0x81,0x81,0xA5,0xA5,
|
||||
0x81,0x81,0xDB,0xDB,0xC3,0xC3,0x3C,0x3C
|
||||
};
|
||||
|
||||
/* End of SPRITE.C */
|
BIN
z_gbdk_playground_original/small_sprite/sprite.gbr
Normal file
BIN
z_gbdk_playground_original/small_sprite/sprite.gbr
Normal file
Binary file not shown.
31
z_gbdk_playground_original/small_sprite/sprite.h
Normal file
31
z_gbdk_playground_original/small_sprite/sprite.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
|
||||
SPRITE.H
|
||||
|
||||
Include File.
|
||||
|
||||
Info:
|
||||
Form : All tiles as one unit.
|
||||
Format : Gameboy 4 color.
|
||||
Compression : None.
|
||||
Counter : None.
|
||||
Tile size : 8 x 8
|
||||
Tiles : 0 to 0
|
||||
|
||||
Palette colors : None.
|
||||
SGB Palette : None.
|
||||
CGB Palette : None.
|
||||
|
||||
Convert to metatiles : No.
|
||||
|
||||
This file was generated by GBTD v2.2
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/* Bank of tiles. */
|
||||
#define spriteBank 0
|
||||
/* Start of tile array. */
|
||||
extern unsigned char sprite[];
|
||||
|
||||
/* End of SPRITE.H */
|
BIN
z_gbdk_playground_original/small_sprite/sprite.png
Normal file
BIN
z_gbdk_playground_original/small_sprite/sprite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 B |
Reference in New Issue
Block a user