box.h

来自「非常经典的小游戏代码, 推球的,for WindowsCE」· C头文件 代码 · 共 56 行

H
56 行
字号

#define SPACE               0
#define BUG                 1
#define BOX					2
#define WALL				3
#define TERM                4
#define TERM1               5
#define	BUGDN				6
#define BUGLF				7
#define BUGRH				8
#define NEW					9
#define NEXT				10
#define PREV				11
#define UNDO				12

#define COLUMN              20
#define ROW                 10
#define CARR_WI             19
//#define CARR_HE             19

#define Dn			 0
#define Up			 1
#define Lt			 2
#define Rt			 3

#define MENUTOP		23
//#define ROOMMAX     18
#define ROOMMAX     17

typedef struct {
     unsigned char x;           //coordinates of the carr in one page;
     unsigned char y;
     unsigned char last_x;
     unsigned char last_y;
     unsigned char direction;
     unsigned char action_num_U;
     unsigned char action_num_D;
     unsigned char action_num_L;
     unsigned char action_num_R;
     unsigned char undo_flag;
  } CARR;














⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?