tfv: improve victory dance

This commit is contained in:
Vince Weaver 2018-06-30 22:37:33 -04:00
parent 774bac66c2
commit 83bb87e12c
3 changed files with 17 additions and 3 deletions

View File

@ -293,20 +293,22 @@ static int victory_dance(void) {
ram[DRAW_PAGE]=saved_drawpage;
for(i=0;i<50;i++) {
for(i=0;i<25;i++) {
gr_copy_to_current(0xc00);
if (i&1) {
grsim_put_sprite(tfv_stand_left,ax,20);
grsim_put_sprite(tfv_led_sword,ax-5,20);
}
else {
grsim_put_sprite(tfv_walk_left,ax,20);
grsim_put_sprite(tfv_victory,ax,20);
grsim_put_sprite(tfv_led_sword,ax-2,14);
}
page_flip();
usleep(100000);
usleep(200000);
}
return 0;

View File

@ -39,6 +39,17 @@ unsigned char tfv_walk_left[]={
0x00,0x82,0x00,0x82,
};
unsigned char tfv_victory[]={
0x4,0x6,
0x00,0xBD,0x2b,0x00,
0x0B,0xDB,0x22,0x00,
0x00,0x00,0x22,0x00,
0x00,0x00,0x22,0x00,
0x00,0x20,0x02,0x22,
0x00,0x82,0x00,0x82,
};
unsigned char tfv_led_sword[]={
0x5,0x3,
0x10,0x00,0x10,0x00,0x00,

View File

@ -2,6 +2,7 @@ extern unsigned char tfv_stand_right[];
extern unsigned char tfv_walk_right[];
extern unsigned char tfv_stand_left[];
extern unsigned char tfv_walk_left[];
extern unsigned char tfv_victory[];
extern unsigned char tfv_led_sword[];
extern unsigned char bird_stand_right[];