Initial Commit

This commit is contained in:
2020-07-11 08:41:14 -05:00
parent 55c0f7f3cd
commit 1478a597cf
176 changed files with 11933 additions and 0 deletions

View 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) *~

View File

@@ -0,0 +1,6 @@
# Small Sprite
![](screenshot.png)
Renders a small 8x8 sprite to the screen.

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View 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;
}

View 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 */

Binary file not shown.

View 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 */

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B