Back to index

freedink-data  1.08.20080920
S4-DUCKS.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 
00004 if (&s4-duck == 0)
00005         {
00006          &vision = 1;
00007         return;
00008         }
00009 
00010 if (&s4-duck == 2)
00011         {
00012                 &vision = 2;
00013                 return;
00014         
00015         }
00016 if (&s4-duck == 1)
00017 {
00018                  &vision = 1;
00019         wait(1);
00020          //the wait allows the screen to be drawn before we continue
00021           //remove rocks hardness and sprite
00022            int &rcrap = sp(15);
00023           sp_hard(&rcrap, 1);
00024           draw_hard_map(&current_sprite);
00025           sp_active(&rcrap, 0);
00026           //remove the cracks as well, as they would look silly now
00027           &rcrap = sp(16);
00028           sp_active(&rcrap, 0);
00029           &rcrap = sp(26);
00030           sp_active(&rcrap, 0);
00031 
00032  }
00033 
00034 
00035 }