Back to index

freedink-data  1.08.20080920
Functions
S8-DUCK2.c File Reference

Go to the source code of this file.

Functions

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

Function Documentation

void die ( void  )

Definition at line 84 of file S8-DUCK2.c.

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

}
void hit ( void  )

Definition at line 77 of file S8-DUCK2.c.

{
 freeze(&current_sprite);
 say_stop("`3This is not a fun game!!!", &current_sprite);
 unfreeze(&current_sprite);
}

Here is the call graph for this function:

void main ( void  )

Definition at line 1 of file S8-DUCK2.c.

{
 int &nut;
 int &talker;
 &talker = 1;
}
void talk ( void  )

Definition at line 8 of file S8-DUCK2.c.

{
 freeze(1);
 freeze(&current_sprite);
 &nut = sp_dir(1, -1);
 if (&talker == 0)
 {
  say_stop("Hi giant duck.", 1);
  wait(250);
  say_stop("`3Hi there.", &current_sprite);
  wait(250);
  say_stop("`3Welcome to our island.", &current_sprite);
  wait(250);
  say_stop("Thanks.", 1);
  wait(250);
  say_stop("`3Would you like to play with me?", &current_sprite);
  wait(250);
  say_stop("Uhh, not right now, I'm ... busy.", 1);
  wait(250);
  say_stop("`3Okay, maybe later then.", 1);
  unfreeze(1);
  unfreeze(&current_sprite);
  &talker = 1;
  return;
 }
 if (&talker == 1)
 {
  say_stop("Hi giant duck.", 1);
  wait(250);
  say_stop("`3Hi there.", &current_sprite);
  wait(250);
  say_stop("`3Welcome to our island.", &current_sprite);
  wait(250);
  say_stop("Thanks.", 1);
  wait(250);
  say_stop("`3Would you like to play with me?", &current_sprite);
  choice_start()
  "Go ahead and play"
  "Not yet"
  choice_end()
  if (&result == 1)
  {
   &duckgame = 1;
   say_stop("Sure, let's play something.", 1);
   wait(250);
   say_stop("`3Okay, I have just the game, follow me.", &current_sprite);
   wait(250);
   script_attach(1000);
   //fadeout & cutscene?
   fade_down();
   //change maps and stuff ...
   &player_map = 731;
   sp_x(1, 112);
   sp_y(1, 300);
   load_screen();
   draw_screen();
   draw_status();
   fade_up();
   kill_this_task();
  }
  if (&result == 2)
  {
   say_stop("Sorry, not yet.", 1);
  }
 }
 unfreeze(1);
 unfreeze(&current_sprite);
}

Here is the call graph for this function: