Back to index

freedink-data  1.08.20080920
S5-FD.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  //setup daugher
00004 
00005  sp_base_walk(&current_sprite, 220);
00006  sp_speed(&current_sprite, 1);
00007  sp_brain(&current_sprite, 16);
00008  sp_hitpoints(&current_sprite, 50);
00009  preload_seq(221);
00010  preload_seq(223);
00011  preload_seq(225);
00012  preload_seq(227);
00013  preload_seq(229);
00014  sp_pseq(&temp3hold, 223);
00015  sp_pframe(&temp3hold, 1);
00016 
00017 }
00018 
00019 void hit (void)
00020 {
00021 playsound(12, 22050, 0, &temp3hold, 0);
00022 }
00023 
00024 void die( void )
00025 {
00026  //dink fails
00027 if (&life > 0)
00028 {
00029  say("Noooo!  The girl has died!  I HAVE FAILED!!!!!!!", 1);
00030  &life = 0;
00031  }
00032 }
00033 
00034 void talk( void )
00035 {
00036 if (&story > 11)
00037   say("`#Where did you learn to fight like that?",&current_sprite);
00038 }