Skip to content

Instantly share code, notes, and snippets.

@remy
Last active September 19, 2022 10:02
Show Gist options
  • Save remy/29a511d7154e2d3728496313a6897746 to your computer and use it in GitHub Desktop.
Save remy/29a511d7154e2d3728496313a6897746 to your computer and use it in GitHub Desktop.
PlayerSprite.c:26: error 141: two or more data types in declaration for 'type_specifier_qualifier declaration_specifiers - skipped'
#include <gb/gb.h>
#include <stdio.h>
#include "PlayerSprite.c"
void main() {
SHOW_SPRITES;
DISPLAY_ON;
while(1) {
}
}
all:
/opt/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j -c -o main.o main.c
/opt/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j -o main.gb main.o
unsigned char PlayerSprite[] =
{
0x00,0x00,0x00,0x00,0x1F,0x0F,0x1F,0x1F,
0x18,0x1F,0x1A,0x1F,0x18,0x1F,0x7F,0x38,
0x00,0x00,0x00,0x00,0xF8,0xF0,0xF8,0xF8,
0x18,0xF8,0x58,0xF8,0x18,0xF8,0xFE,0x1C,
0x7F,0x7F,0x1F,0x1F,0x1F,0x1F,0x1F,0x17,
0x1F,0x1B,0x1C,0x18,0x1C,0x18,0x1C,0x1C,
0xFE,0xFE,0xD8,0xF8,0x78,0xF8,0xF8,0xE8,
0xF8,0xD8,0x38,0x18,0x38,0x18,0x38,0x38,
0x00,0x00,0x1F,0x0F,0x1F,0x1F,0x18,0x1F,
0xDA,0x5F,0xF8,0x7F,0x7F,0x38,0x1F,0x1F,
0x00,0x00,0xF8,0xF0,0xF8,0xF8,0x18,0xF8,
0x5B,0xFA,0x1F,0xFE,0xFE,0x1C,0xF8,0xF8,
0x1F,0x1F,0x1F,0x1F,0x1F,0x17,0x1F,0x1B,
0x0C,0x08,0x00,0x00,0x00,0x00,0x00,0x00,
0xD8,0xF8,0x78,0xF8,0xF8,0xE8,0xF8,0xD8,
0x30,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0F,0x07,0x1F,0x0F,
0x18,0x1F,0x1A,0x1D,0x18,0x1F,0x1F,0x18,
0x00,0x00,0x00,0x00,0xF8,0xF0,0xF8,0xF8,
0x18,0xF8,0x58,0xF8,0x1E,0xFC,0xFE,0x1E,
0x7F,0x7F,0x7F,0x3F,0x1F,0x1F,0x1F,0x1F,
0x1F,0x1B,0x1E,0x18,0x1C,0x18,0x1C,0x1C,
0xF8,0xF8,0xD8,0xF8,0x78,0xF8,0xF8,0xE8,
0xF8,0xD0,0x30,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1F,0x0F,0x1F,0x1F,
0x18,0x1F,0x1A,0x1F,0x38,0x3F,0x7F,0x78,
0x00,0x00,0x00,0x00,0xF0,0xE0,0xF8,0xF0,
0x18,0xF8,0x58,0xB8,0x18,0xF8,0xF8,0x18,
0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x17,
0x1F,0x0B,0x0C,0x00,0x00,0x00,0x00,0x00,
0xFE,0xFE,0xDE,0xFC,0x78,0xF8,0xF8,0xF8,
0xF8,0xD8,0x78,0x18,0x38,0x18,0x38,0x38
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment