Back to index

freedink-data  1.08.20080920
S7-MOM.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  preload_seq(221);
00004  preload_seq(223);
00005  preload_seq(225);
00006  preload_seq(227);
00007  preload_seq(229);
00008  sp_base_walk(&current_sprite,220);
00009  sp_brain(&current_sprite, 16);
00010  sp_speed(&current_sprite,1);
00011  sp_timing(&current_sprite,33);
00012  sp_nohit(&current_sprite, 1);
00013  sp_nodraw(&current_sprite, 1);
00014  int &wait;
00015 
00016 loop:
00017 
00018 &wait = random(3000,1000);
00019 wait(&wait);
00020 
00021 &wait = random(5, 1);
00022 
00023 if (&wait == 1)
00024   {
00025     say_stop("`#Woe are us!",&current_sprite);
00026 
00027   }
00028 
00029 if (&wait == 2)
00030   {
00031 
00032     say_stop("`#You cannot hurt us Dink.",&current_sprite);
00033 
00034   }
00035 
00036 if (&wait == 3)
00037   {
00038     sp_nodraw(&current_sprite, 1);
00039     say_stop("`#You cannot see us Dink.",&current_sprite);
00040 
00041   }
00042 
00043 if (&wait == 4)
00044   {
00045     sp_nodraw(&current_sprite, 0);
00046     say_stop("`#LOOK UPON MY DEFORMED FACE!",&current_sprite);
00047     wait(500);
00048     say_stop("Spirit, leave me alone!",1);
00049   }
00050 
00051 if (&wait == 5)
00052   {
00053     say_stop("`#Some of us like to eat humans.  I would leave if I were you.",&current_sprite);
00054     wait(500);
00055     say_stop("I am not afraid, ghost.",1);
00056   }
00057 
00058 
00059 
00060 goto loop;
00061 
00062 }
00063 
00064