Back to index

freedink-data  1.08.20080920
Functions
S1-SLIM.c File Reference

Go to the source code of this file.

Functions

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

Function Documentation

void attack ( void  )

Definition at line 54 of file S1-SLIM.c.

{
playsound(31, 22050,0,&current_sprite, 0);
&mcounter = random(4000,0);
sp_attack_wait(&current_sprite, &mcounter);
}
void die ( void  )

Definition at line 34 of file S1-SLIM.c.

{
playsound(29, 17050,0,0, 0);
  
  &save_x = sp_x(&current_sprite, -1);
  &save_y = sp_y(&current_sprite, -1);
  external("ranstuff", "small");

  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 6); 
}
void hit ( void  )

Definition at line 47 of file S1-SLIM.c.

{
playsound(29, 22050,0,&current_sprite, 0);
sp_target(&current_sprite, &enemy_sprite);

}
void main ( void  )

Definition at line 1 of file S1-SLIM.c.

{
 preload_seq(542);
 preload_seq(544);
 preload_seq(546);
 preload_seq(548);
 preload_seq(531);
 preload_seq(533);
 preload_seq(537);
 preload_seq(539);

 preload_seq(551);
 preload_seq(553);
 preload_seq(557);
 preload_seq(559);


 int &mcounter;
 sp_distance(&current_sprite, 50);
 sp_brain(&current_sprite, 9);
 sp_base_attack(&current_sprite, 540);
 sp_base_walk(&current_sprite, 530);
 sp_base_death(&current_sprite, 550);
 sp_strength(&current_sprite, 18);
 sp_exp(&current_sprite, 10);
 sp_hitpoints(&current_sprite, 20);
 sp_speed(&current_sprite, 1);
 sp_timing(&current_sprite, 33);
 sp_touch_damage(&current_sprite, 3);
 sp_target(&current_sprite, 1);

}

Here is the call graph for this function: