Back to index

freedink-data  1.08.20080920
EN-SLIMG.c
Go to the documentation of this file.
00001 //slime/puddle green, weak
00002 
00003 void main( void )
00004 {
00005 sp_brain(&current_sprite, 9);
00006 sp_speed(&current_sprite, 1);
00007 sp_timing(&current_sprite, 10);
00008 sp_exp(&current_sprite, 3);
00009 sp_base_walk(&current_sprite, 670);
00010 sp_base_death(&current_sprite, 680);
00011 sp_base_attack(&current_sprite, -1);
00012 sp_touch_damage(&current_sprite, 3);
00013 sp_hitpoints(&current_sprite, 13);
00014 preload_seq(671);
00015 preload_seq(673);
00016 preload_seq(681);
00017 preload_seq(683);
00018 
00019 if (random(2,1) == 1)
00020  {
00021  sp_target(&current_sprite, 1);
00022  }
00023 }
00024 
00025 
00026 void hit( void )
00027 {
00028 sp_target(&current_sprite, &enemy_sprite);
00029 //lock on to the guy who just hit us
00030 //playsound
00031 sp_timing(&current_sprite, 0);
00032 }
00033 
00034 void die( void )
00035 {
00036   int &hold = sp_editor_num(&current_sprite);
00037   if (&hold != 0)
00038   editor_type(&hold, 6); 
00039 }