Back to index

freedink-data  1.08.20080920
S1-RAND.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003   int &spawnx;
00004   int &spawny;
00005   int &maybe;
00006   &maybe = random(8,1);
00007   if (&maybe == 1)
00008   {
00009   preload_seq(341);
00010   preload_seq(343);
00011   preload_seq(347);
00012   preload_seq(349);
00013   preload_seq(381);
00014   preload_seq(383);
00015   preload_seq(387);
00016   preload_seq(389);
00017 
00018          &maybe = random(2,1);
00019          if (&maybe == 1)
00020          {
00021          maketraveler();
00022          }
00023          else
00024          {
00025          other();
00026          }
00027   }
00028 }
00029 
00030 void maketraveler( void )
00031 {
00032        int &spawnx;
00033     int &spawny;
00034        int &crap;
00035        &spawnx = random(200,200);
00036        &spawny = random(100,150);
00037        &crap = create_sprite(&spawnx, &spawny, 9, 341, 5);
00038     sp_speed(&crap, 1);
00039        sp_timing(&crap, 33);
00040         sp_brain(&crap, 16);
00041        sp_base_walk(&crap, 340);
00042     sp_script(&crap, "s1-wand");
00043 }
00044 
00045 void other( void )
00046 {
00047        int &spawnx;
00048     int &spawny;
00049        int &crap;
00050        &spawnx = random(200,200);
00051        &spawny = random(100,150);
00052        &crap = create_sprite(&spawnx, &spawny, 9, 381, 2);
00053        sp_speed(&crap, 1);
00054        sp_timing(&crap, 33);
00055         sp_brain(&crap, 16);
00056        sp_base_walk(&crap, 380);
00057     sp_script(&crap, "s1-wand2");
00058 }