Back to index

freedink-data  1.08.20080920
S7-DGIRL.c
Go to the documentation of this file.
00001 //crazy girl brain
00002 
00003 void main( void )
00004 {
00005 screenlock(1);
00006 sp_brain(&current_sprite, 9);
00007 sp_speed(&current_sprite, 3);
00008 sp_timing(&current_sprite, 0);
00009 sp_exp(&current_sprite, 300);
00010 sp_base_walk(&current_sprite, 330);
00011 sp_touch_damage(&current_sprite, 20);
00012 sp_hitpoints(&current_sprite, 100);
00013 preload_seq(331);
00014 preload_seq(333);
00015 preload_seq(335);
00016 preload_seq(337);
00017 preload_seq(339);
00018 sp_target(&current_sprite, 1);
00019 say("`#FOOD!",&current_sprite);
00020 }
00021 
00022 
00023 void hit( void )
00024 {
00025 sp_target(&current_sprite, &enemy_sprite);
00026 playsound(12, 12050, 10000, &current_sprite, 0);
00027 //lock on to the guy who just hit us
00028 //playsound
00029 }
00030 void die( void )
00031 {
00032 
00033 if (get_sprite_with_this_brain(9, &current_sprite) == 0)
00034  {
00035   //no more brain 9 monsters here, lets unlock the screen
00036 
00037   screenlock(0);
00038   playsound(43, 22050,0,0,0);
00039 
00040  }
00041 
00042 
00043 
00044 
00045   int &hold = sp_editor_num(&current_sprite);
00046   if (&hold != 0)
00047   editor_type(&hold, 6); 
00048 
00049 &save_x = sp_x(&current_sprite, -1);
00050 &save_y = sp_y(&current_sprite, -1);
00051 
00052  external("emake","large");
00053 
00054 }