Back to index

freedink-data  1.08.20080920
S1-NTREE.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 int &crap;
00004 int &randx;
00005 int &randy;
00006 int &fally;
00007 
00008 }
00009 
00010 void talk( void )
00011 {
00012 say_stop("Hey, that's an AlkTree.", 1);
00013 wait(250);
00014 }
00015 
00016 void hit( void )
00017 {
00018          &crap = scripts_used();
00019 if (&crap > 170)
00020   {
00021   //don't make any more nuts, there are 165 already on the screen..)
00022   return;
00023   }
00024 
00025 //lets make the nut fall down and give it a nut script
00026 &randx = random(200,320);
00027 &randy = random(80,0);
00028 &crap = create_sprite(&randx, &randy, 0, 421, 23);
00029 sp_speed(&crap, 1);
00030 move_stop(&crap, 8, 86, 1)
00031 &fally = random(80,110);
00032 sp_script(&crap, "s1-nut");
00033 move_stop(&crap, 2, &fally, 1)
00034 
00035 }