gbdk_playground/big_sprite_animation/big_sprite_animation.c
2020-07-11 08:41:14 -05:00

22 lines
383 B
C

#include <gb/gb.h>
#include "cards.c"
void main() {
SPRITES_8x16;
set_sprite_data(0, 8, cards);
set_sprite_tile(0, 0);
move_sprite(0, 75, 75);
set_sprite_tile(1, 2);
move_sprite(1, 75 + 8, 75);
SHOW_SPRITES;
while(1) {
set_sprite_tile(0, 3);
set_sprite_tile(1, 5);
delay(500);
set_sprite_tile(0, 0);
set_sprite_tile(1, 2);
delay(500);
}
}