Back to index

freedink-data  1.08.20080920
S1-H1-O.c
Go to the documentation of this file.
00001 void main( void)
00002 {
00003  if (&story == 4)
00004   {
00005   //the old lady
00006   int &person1 = create_sprite(520, 300, 0, 231, 5);
00007   sp_speed(&person1, 1);
00008   sp_base_walk(&person1, 230);
00009   //girl
00010   int &person2 = create_sprite(520, 120, 0, 221, 5);
00011   sp_speed(&person2, 1);
00012   sp_base_walk(&person2, 220);
00013 
00014   if (&old_womans_duck != 3)
00015   {
00016   if (&old_womans_duck != 5)
00017    {
00018   int &duck1 = create_sprite(470, 270, 0, 24, 2);
00019    }
00020    }
00021   //Silver knight?
00022   int &person3 = create_sprite(600, 310, 0, 411, 1);
00023   sp_speed(&person3, 1);
00024   sp_base_walk(&person3, 410);
00025   //Girl2 at bottom
00026   int &person4 = create_sprite(545, 360, 0, 257, 2);
00027   sp_speed(&person4, 1);
00028   sp_base_walk(&person4, 250);
00029   &vision = 1;
00030   freeze(1);
00031   //move(int sprite, int direction, int destination, int nohard);
00032   move(&person1, 4, 500, 0);
00033   move(&person2, 2, 210, 0);
00034   move(&person3, 4, 570, 0);
00035   say_stop("`4Dink!!!", &person2);
00036   move(&person4, 4, 515, 1);
00037   move_stop(1, 6, 437, 1);
00038   say_stop("I .. I couldn't save her", 1);
00039   wait(500);
00040   say_stop("I was too late.", 1);
00041   say_stop("`3It's not your fault Dink.", &person1);
00042   if (&old_womans_duck == 3)
00043   {
00044   wait(250);
00045   say_stop("`3I hope my duck wasn't in there!", &person1);
00046   }
00047   if (&old_womans_duck == 5)
00048   {
00049   wait(250);
00050   say_stop("`3But, if you hadn't killed my duck, your mom might still be alive.", &person1);
00051   wait(250);
00052   say_stop("And just what is that supposed to mean, Ethel?", 1);
00053   wait(250);
00054   say_stop("`3Oh.. nothing...", &person1);
00055   }
00056 
00057 
00058   wait(250);
00059 
00060   say_stop("`4There was nothing you could do..", &person2);
00061   wait(250);
00062   say_stop("`6Don't blame yourself kid.", &person3);
00063   wait(750);
00064   fade_down();
00065   wait(250);
00066   &story = 5;
00067   force_vision(2);
00068   fade_up();
00069   unfreeze(1);
00070 //force vision keep this task alive, now we need to kill it manually
00071   kill_this_task();
00072   return;
00073   }
00074 
00075 if (&story > 4)
00076 {
00077 &vision = 2;
00078 }
00079 
00080 
00081 
00082  if (&story == 3)
00083  {
00084  &vision = 1;
00085  freeze(1);
00086  move_stop(1, 4, 570, 1);
00087  playmidi("insper.mid");
00088  say_stop("What, the house, mother nooooo!!!", 1);
00089  wait(500);
00090  say_stop("She's still in there!!", 1);
00091  unfreeze(1);
00092  kill_this_task();
00093  }
00094 
00095 }