Back to index

freedink-data  1.08.20080920
S2-RYAN2.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &crap;
00004  preload_seq(371);
00005  preload_seq(373);
00006  preload_seq(377);
00007  preload_seq(379);
00008  sp_brain(&current_sprite, 0);
00009  sp_base_walk(&current_sprite, 370);
00010  sp_speed(&current_sprite, 2);
00011  sp_timing(&current_sprite, 0);
00012 //set starting pic
00013  sp_pseq(&current_sprite, 373);
00014  sp_pframe(&current_sprite, 1);
00015  //Ok Go
00016  freeze(1);
00017  //playmidi("mystery.mid");
00018  say_stop("`2Psst, over here", &current_sprite);
00019  //Move Dink
00020  &crap = sp_x(1, -1);
00021  if (&crap < 340)
00022  {
00023   &crap = sp_y(1, -1);
00024   if (&crap < 210)
00025   {
00026    move_stop(1, 2, 180, 1);
00027   }
00028   if (&crap > 210)
00029   {
00030    move_stop(1, 8, 180, 1);
00031   }
00032   move_stop(1, 6, 340, 1);
00033  }
00034  move_stop(1, 4, 340, 1);
00035  move_stop(1, 8, 210, 1);
00036  move_stop(1, 4, 330, 1);
00037  say_stop("`2You ready to do this buddy?", &current_sprite);
00038  wait(200);
00039  say_stop("Yeah, no problem.", 1);
00040  wait(200);
00041   say_stop("`2Allright, follow me...", &current_sprite);
00042  move_stop(&current_sprite, 8, 105, 1);
00043  move_stop(&current_sprite, 6, 469, 1);
00044  say_stop("`2In here", &current_sprite);
00045  move_stop(1, 6, 510, 1);
00046  move_stop(1, 8, 0, 0);
00047 }