Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[GBDK] GAMEBOY [C]

Name: !MILKRIBS4k 2009-06-16 17:13

Anyone on here use the gameboy c compiler gbdk? http://gbdk.sourceforge.net/ There doesn't seem to be much documentation on it! Most of the code I find on google is designed for an older version of the compiler! How would I go about displaying a simple sprite! Someone help MILKRIBS4k!

Name: Anonymous 2009-06-17 9:02

>>14
Why the hell are you using 16 bit colour maps? Seriously what the hell... When I code even for the NDS I use at maximum 8 bit.

Displaying a sprite on the GBC/GB...
set_sprite_palette(sprite,n,&spritemap);
SPRITES_8x8;
set_sprite_data(sprite, n, tiledata);
set_sprite_tile(sprite,tile);
set_sprite_prop(sprite,prop);
move_sprite(sprite,x,y);
SHOW_SPRITES;   
Enjoy.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List