Back to index

freedink-data  1.08.20080920
S4-H2.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 //set the vision, so can't or can use stairs
00004  if (&story > 10)
00005     {
00006      //saved town, lets use the stairs and whatnot
00007     &vision = 2;
00008     }
00009 
00010  if (&story < 11)
00011     {
00012      //can't use stairs
00013 Debug("Yeah!");
00014     &vision = 1;
00015     }
00016 
00017 
00018  //Make Parents & Little girl
00019  preload_seq(69);
00020  preload_seq(411);
00021  preload_seq(339);
00022  int &mom;
00023  int &dad;
00024  int &girl;
00025  &mom = create_sprite(377, 127, 0, 0, 0);
00026  sp_brain(&mom, 16);
00027  sp_base_walk(&mom, 220);
00028  sp_speed(&mom, 1);
00029  sp_timing(&mom, 0);
00030  //set starting pic
00031  sp_pseq(&mom, 221);
00032  sp_pframe(&mom, 1);
00033  sp_script(&mom, "s4-h2p1");
00034  //Now the dad
00035  &dad = create_sprite(405, 148, 0, 0, 0);
00036  &temp4hold = &dad;
00037  sp_brain(&dad, 16);
00038  sp_base_walk(&dad, 410);
00039  sp_speed(&dad, 1);
00040  sp_timing(&dad, 0);
00041  //set starting pic
00042  sp_pseq(&dad, 411);
00043  sp_pframe(&dad, 1);
00044  sp_script(&dad, "s4-h2p2");
00045  &girl = create_sprite(235, 178, 0, 0, 0);
00046  sp_brain(&girl, 16);
00047  sp_base_walk(&girl, 330);
00048  sp_speed(&girl, 1);
00049  sp_timing(&girl, 0);
00050  //set starting pic
00051  sp_pseq(&girl, 331);
00052  sp_pframe(&girl, 1);
00053  sp_script(&girl, "s4-h2p3");
00054  freeze(&mom);
00055  freeze(&dad);
00056 }
00057