main(void)1 void main( void )
2 {
3 int &hi;
4 
5  //people watching parade
6  sp_hitpoints(&current_sprite, 20);
7 sp_brain(&current_sprite, 16);
8 }
9 
10 
talk(void)11 void talk(void )
12 
13 {
14 &hi = random(4, 1);
15 
16 if (&hi == 1)
17 say("`3Isn't this wonderful?", &current_sprite);
18 
19 if (&hi == 2)
20 say("`3Not a very long parade was it...", &current_sprite);
21 if (&hi == 3)
22 say("`3This was even better than last year!", &current_sprite);
23 
24 if (&hi == 4)
25  say("`3What a great parade!", &current_sprite);
26 
27 
28 }
29 
30 
hit(void)31 void hit(void )
32 
33 {
34 
35 &hi = random(4, 1);
36 
37 if (&hi == 1)
38 say("`3Help!  This man is going crazy!", &current_sprite);
39 
40 if (&hi == 2)
41 say("`3Guards!!! Over here!!!", &current_sprite);
42 if (&hi == 3)
43 say("`3Help!! This Dink guy is no hero, he was behind the attack!", &current_sprite);
44 
45 if (&hi == 4)
46 say("`3Please sir... please...no!!!  Come on, help me fight this guy!", &current_sprite);
47 sp_frame_delay(&current_sprite, 50);
48 sp_brain(&current_sprite, 9);
49 sp_touch_damage(&current_sprite, 5);
50 sp_speed(&current_sprite, 2);
51 sp_target(&current_sprite, 1);
52 }
53 
die(void)54 void die( void )
55 {
56 if (get_sprite_with_this_brain(16, &current_sprite) == 0)
57  {
58 
59 if (get_sprite_with_this_brain(9, &current_sprite) == 0)
60   {
61   //no more brain 9 monsters here, lets unlock the screen
62 wait(1000);
63  say("Now, THAT'S entertainment!", 1);
64   }
65  }
66 
67 &save_x = sp_x(&current_sprite, -1);
68 &save_y = sp_y(&current_sprite, -1);
69 external("emake","medium");
70 
71 
72 }
73 
74