www.pudn.com > SuperMario.zip > MARIO.H


#define G           2 
#define V0          -38 
#define V1          -1 
#define DIR_LEFT    0x01 
#define DIR_RIGHT   0x02 
#define DIR_UP      0x04 
#define DIR_DOWN    0x08 
 
typedef struct _MARIO{ 
      int x,y; 
      int X,Y; 
      int jump; 
      int land; 
      int top; 
      int x_speed,y_speed; 
      int frame; 
      int delay; 
      int dir; 
      BITMAP *mario[7]; 
      BITMAP *curr_frame; 
      }MARIO; 
 
 
typedef struct _WORLD 
    { 
      int screen_x; 
      char BackGround[255][15]; 
      BITMAP *block[9][19]; 
      }WORLD;