Back to index

freedink-data  1.08.20080920
S1-H3-5.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &man;
00004  &man = sp(23);
00005   if (&farmer_quest > 1)
00006   {
00007    sp_active(&current_sprite, 0);
00008    return;   
00009   }
00010  sp_touch_damage(&current_sprite, -1);
00011 
00012 }
00013 
00014 void touch( void )
00015 
00016 {
00017   freeze(1);
00018   //move him a bit?
00019   if (sp_dir(1, -1) == 8)
00020   {
00021    move_stop(1, 2, 177, 1);
00022   }
00023   if (sp_dir(1, -1) == 7)
00024   {
00025    move_stop(1, 2, 177, 1);
00026   }
00027   if (sp_dir(1, -1) == 4)
00028   {
00029    move_stop(1, 6, 166, 1);
00030   }
00031   say("`7Not so fast, Smallwood!", &man);
00032   unfreeze(1);
00033 }