Back to index

freedink-data  1.08.20080920
S3-TC.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 
00004  preload_seq(251);
00005  preload_seq(253);
00006  preload_seq(257);
00007  preload_seq(259);
00008 
00009  if (&mayor == 1)
00010  {
00011   return;
00012  }
00013 
00014  if (&mayor == 2)
00015  {
00016   return;
00017  }
00018 
00019  if (&mayor == 5)
00020  {
00021   playmidi("lovin.mid");
00022 
00023   freeze(1);
00024   preload_seq(253);
00025   preload_seq(251);
00026   preload_seq(257);
00027   preload_seq(259);
00028   preload_seq(271);
00029   preload_seq(273);
00030   preload_seq(277);
00031   preload_seq(279);
00032   preload_seq(281);
00033   preload_seq(283);
00034   preload_seq(287);
00035   preload_seq(289);
00036   preload_seq(371);
00037   preload_seq(373);
00038   preload_seq(377);
00039   preload_seq(379);
00040   preload_seq(361);
00041   preload_seq(363);
00042   preload_seq(367);
00043   preload_seq(369);
00044   preload_seq(411);
00045   preload_seq(413);
00046   preload_seq(417);
00047   preload_seq(419);
00048   preload_seq(291);
00049   preload_seq(293);
00050   preload_seq(297);
00051   preload_seq(299);
00052   int &pp1;
00053   int &pp2;
00054   int &pp3;
00055   int &pp4;
00056   int &pp5;
00057   int &pp6;
00058   int &pp7;
00059   int &pp8;
00060   int &pp9;
00061   int &woman;
00062   int &mp1;
00063   int &mp2;
00064   int &mp3;
00065   int &mp4;
00066   int &mp5;
00067   int &mp6;
00068   int &mp7;
00069   //Actually Spawn the girl, and her script
00070   &woman = create_sprite(400, 110, 0, 0, 0);
00071   sp_brain(&woman, 16);
00072   sp_base_walk(&woman, 250);
00073   sp_speed(&woman, 1);
00074   sp_timing(&woman, 0);
00075   //set starting pic
00076   sp_pseq(&woman, 253);
00077   sp_pframe(&woman, 1);
00078   //Create more & more & more!!
00079   &pp1 = create_sprite(125, 115, 0, 0, 0);
00080   sp_brain(&pp1, 16);
00081   sp_base_walk(&pp1, 270);
00082   sp_speed(&pp1, 1);
00083   sp_timing(&pp1, 0);
00084 sp_script(&pp1, "s3-peeps");
00085   //set starting pic
00086   sp_pseq(&pp1, 273);
00087   sp_pframe(&pp1, 1);
00088   &pp2 = create_sprite(250, 141, 0, 0, 0);
00089   sp_brain(&pp2, 16);
00090 sp_script(&pp2, "s3-peeps");
00091 
00092   sp_base_walk(&pp2, 280);
00093   sp_speed(&pp2, 1);
00094   sp_timing(&pp2, 0);
00095   //set starting pic
00096   sp_pseq(&pp2, 283);
00097   sp_pframe(&pp2, 1);
00098   &pp3 = create_sprite(45, 370, 0, 0, 0);
00099   sp_brain(&pp3, 16);
00100   sp_base_walk(&pp3, 370);
00101   sp_speed(&pp3, 1);
00102 sp_script(&pp3, "s3-peeps");
00103 
00104   sp_timing(&pp3, 0);
00105   //set starting pic
00106   sp_pseq(&pp3, 379);
00107   sp_pframe(&pp3, 1);
00108   &pp4 = create_sprite(410, 380, 0, 0, 0);
00109   sp_brain(&pp4, 16);
00110   sp_base_walk(&pp4, 360);
00111   sp_speed(&pp4, 1);
00112   sp_timing(&pp4, 0);
00113   //set starting pic
00114   sp_pseq(&pp4, 367);
00115   sp_pframe(&pp4, 1);
00116 sp_script(&pp4, "s3-peeps");
00117 
00118   &pp5 = create_sprite(520, 360, 0, 0, 0);
00119   sp_brain(&pp5, 16);
00120   sp_base_walk(&pp5, 410);
00121   sp_speed(&pp5, 1);
00122   sp_timing(&pp5, 0);
00123   //set starting pic
00124   sp_pseq(&pp5, 417);
00125   sp_pframe(&pp5, 1);
00126 sp_script(&pp5, "s3-peeps");
00127 
00128   &pp6 = create_sprite(70, 180, 0, 0, 0);
00129   sp_brain(&pp6, 16);
00130   sp_base_walk(&pp6, 220);
00131   sp_speed(&pp6, 1);
00132   sp_timing(&pp6, 0);
00133   //set starting pic
00134   sp_pseq(&pp6, 223);
00135   sp_pframe(&pp6, 1);
00136 sp_script(&pp6, "s3-peeps");
00137 
00138   &pp7 = create_sprite(320, 400, 0, 0, 0);
00139   sp_brain(&pp7, 16);
00140   sp_base_walk(&pp7, 220);
00141   sp_speed(&pp7, 1);
00142   sp_timing(&pp7, 0);
00143   //set starting pic
00144   sp_pseq(&pp7, 229);
00145   sp_pframe(&pp7, 1);
00146 sp_script(&pp7, "s3-peeps");
00147 
00148   &pp8 = create_sprite(295, 50, 0, 0, 0);
00149   sp_brain(&pp8, 16);
00150   sp_base_walk(&pp8, 370);
00151   sp_speed(&pp8, 1);
00152   sp_timing(&pp8, 0);
00153   //set starting pic
00154   sp_pseq(&pp8, 373);
00155   sp_pframe(&pp8, 1);
00156 sp_script(&pp8, "s3-peeps");
00157 
00158   &pp9 = create_sprite(175, 350, 0, 0, 0);
00159   sp_brain(&pp9, 16);
00160   sp_base_walk(&pp9, 390);
00161   sp_speed(&pp9, 1);
00162   sp_timing(&pp9, 0);
00163   //set starting pic
00164   sp_pseq(&pp9, 399);
00165   sp_pframe(&pp9, 1);
00166 sp_script(&pp9, "s3-peeps");
00167 
00168   //Let's Go movers!!
00169   &mp1 = create_sprite(640, 200, 0, 0, 0);
00170   sp_brain(&mp1, 16);
00171   sp_base_walk(&mp1, 290);
00172   sp_speed(&mp1, 1);
00173   sp_timing(&mp1, 0);
00174   //set starting pic
00175   sp_pseq(&mp1, 291);
00176   sp_pframe(&mp1, 1);
00177   &mp2 = create_sprite(640, 305, 0, 0, 0);
00178   sp_brain(&mp2, 16);
00179   sp_base_walk(&mp2, 290);
00180   sp_speed(&mp2, 1);
00181   sp_timing(&mp2, 33);
00182   //set starting pic
00183   sp_pseq(&mp2, 291);
00184   sp_pframe(&mp2, 1);
00185   &mp3 = create_sprite(640, 320, 0, 0, 0);
00186   sp_brain(&mp3, 16);
00187   sp_base_walk(&mp3, 380);
00188   sp_speed(&mp3, 1);
00189   sp_timing(&mp3, 20);
00190   //set starting pic
00191   sp_pseq(&mp3, 381);
00192   sp_pframe(&mp3, 1);
00193   &mp4 = create_sprite(700, 340, 0, 0, 0);
00194   sp_brain(&mp4, 16);
00195   sp_base_walk(&mp4, 370);
00196   sp_speed(&mp4, 1);
00197   sp_timing(&mp4, 0);
00198   //set starting pic
00199   sp_pseq(&mp4, 371);
00200   sp_pframe(&mp4, 1);
00201   &mp5 = create_sprite(670, 210, 0, 0, 0);
00202   sp_brain(&mp5, 16);
00203   sp_base_walk(&mp5, 390);
00204   sp_speed(&mp5, 1);
00205   sp_timing(&mp5, 33);
00206   //set starting pic
00207   sp_pseq(&mp5, 391);
00208   sp_pframe(&mp5, 1);
00209   &mp6 = create_sprite(710, 180, 0, 0, 0);
00210   sp_brain(&mp6, 16);
00211   sp_base_walk(&mp6, 410);
00212   sp_speed(&mp6, 1);
00213   sp_timing(&mp6, 0);
00214   //set starting pic
00215   sp_pseq(&mp6, 411);
00216   sp_pframe(&mp6, 1);
00217   &mp7 = create_sprite(640, 175, 0, 0, 0);
00218   sp_brain(&mp7, 16);
00219   sp_base_walk(&mp7, 290);
00220   sp_speed(&mp7, 1);
00221   sp_timing(&mp7, 16);
00222   //set starting pic
00223   sp_pseq(&mp7, 291);
00224   sp_pframe(&mp7, 1);
00225   //Let's Go
00226   freeze(&woman);
00227   freeze(&pp1);
00228   freeze(&pp2);
00229   //wait(1);
00230   freeze(&pp3);
00231   freeze(&pp4);
00232   freeze(&pp5);
00233   freeze(&pp6);
00234   freeze(&pp7);
00235   freeze(&pp8);
00236   freeze(&pp9);
00237        
00238   freeze(&mp1);
00239   freeze(&mp2);
00240   freeze(&mp3);
00241   freeze(&pp4);
00242   freeze(&mp4);
00243   freeze(&mp6);
00244   freeze(&mp7);
00245   move(&mp1, 4, -1500, 1);
00246   move(&mp2, 4, -1500, 1);
00247   move(&mp3, 4, -1500, 1);
00248   move(&mp4, 4, -1500, 1);
00249   move(&mp5, 4, -1500, 1);
00250   move(&mp6, 4, -1500, 1);
00251   move(&mp7, 4, -1500, 1);
00252   wait(500);
00253   say_stop("`9Dink, Dink, over here.", &woman);
00254   move_stop(1, 2, 105, 1);
00255   move_stop(1, 6, 450, 1);
00256   say_stop("`9Isn't it just beautiful?", &woman);
00257   sp_dir(1, 4);
00258   wait(250);
00259   say_stop("Yup, it's a parade allright.", 1);
00260   wait(250);
00261   say_stop("A lot of people too, I shudder at what could've happened.", 1);
00262   wait(250);
00263   say_stop("`9You really saved the town Dink...", &woman);
00264   wait(250);
00265   say_stop("`9I'm really proud of you.", &woman);
00266   wait(250);
00267   say_stop("Thanks, but I couldn't have done it without you.", 1);
00268   wait(250);
00269   say_stop("`9Well I have to be going, I have to meet with my father.", &woman);
00270   wait(250);
00271   say_stop("`9Take care Dink, I hope I'll see you again.", &woman);
00272   wait(1000);
00273   unfreeze(&pp1);
00274   unfreeze(&pp2);
00275   unfreeze(&pp3);
00276   unfreeze(&pp4);
00277   unfreeze(&pp5);
00278   unfreeze(&pp6);
00279   unfreeze(&pp7);
00280   unfreeze(&pp8);
00281   unfreeze(&pp9);
00282   sp_dir(1, 2);
00283   move_stop(&woman, 3, 660, 1);
00284   say_stop("Oh, you will baby, you will...", 1);
00285   &story = 10;
00286   &mayor = 6;
00287   unfreeze(1);
00288   return;
00289  }
00290 
00291  if (&mayor == 6)
00292  {
00293   int &loser;
00294   &loser = create_sprite(350, 210, 0, 0, 0);
00295   sp_brain(&loser, 16);
00296   sp_base_walk(&loser, 410);
00297   sp_speed(&loser, 1);
00298   sp_timing(&loser, 0);
00299   sp_pseq(&loser, 413);
00300   sp_pframe(&loser, 1);
00301   sp_script(&loser, "s3-loser");
00302   return;
00303  }
00304 
00305  if (&mayor == 7)
00306  {
00307   return;
00308  }
00309   int &poopy;
00310   int &woman;
00311   //Actually Spawn the girl, and her script
00312   &woman = create_sprite(300, 130, 0, 0, 0);
00313   sp_brain(&woman, 16);
00314   sp_base_walk(&woman, 250);
00315   sp_speed(&woman, 1);
00316   sp_timing(&woman, 0);
00317   //set starting pic
00318   sp_pseq(&woman, 253);
00319   sp_pframe(&woman, 1);
00320   sp_script(&woman, "s3-chick");
00321 }