Back to index

freedink-data  1.08.20080920
Functions
CH2-SFB.c File Reference

Go to the source code of this file.

Functions

void main (void)
void hit (void)

Function Documentation

void hit ( void  )

Definition at line 8 of file CH2-SFB.c.

 {
  //play noise
  int &hold = sp_editor_num(&current_sprite);

  if (&hold != 0)
    {
     //this was placed by the editor, lets make the chest stay open
     editor_type(&hold, 4); 
     editor_seq(&hold, 177);
     editor_frame(&hold, 6);
     //type means show this seq/frame combo as background in the future
    }
  &save_x = sp_x(&current_sprite, -1);
  &save_y = sp_y(&current_sprite, -1);
  external("make", "sfb");

  sp_seq(&current_sprite, 177);
  sp_script(&current_sprite, "");
  sp_notouch(&current_sprite, 1);
  sp_nohit(&current_sprite, 1);
  kill_this_task();
 }
void main ( void  )

Definition at line 3 of file CH2-SFB.c.

{
preload_seq(177);
}