Back to index

freedink-data  1.08.20080920
Functions
EN-PILL2.c File Reference

Go to the source code of this file.

Functions

void main (void)
void hit (void)
void die (void)

Function Documentation

void die ( void  )

Definition at line 31 of file EN-PILL2.c.

{
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 6); 

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);

 external("emake","medium");

}
void hit ( void  )

Definition at line 24 of file EN-PILL2.c.

{
sp_target(&current_sprite, &enemy_sprite);
playsound(30, 15050, 4000, &current_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void main ( void  )

Definition at line 3 of file EN-PILL2.c.

{
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 3);
sp_exp(&current_sprite, 40);
sp_base_walk(&current_sprite, 130);
sp_base_death(&current_sprite, 140);
sp_touch_damage(&current_sprite, 8);
sp_hitpoints(&current_sprite, 30);
preload_seq(131);
preload_seq(133);
preload_seq(141);
preload_seq(143);

if (random(2,1) == 1)
 {
 sp_target(&current_sprite, 1);
 }
}

Here is the call graph for this function: