📄 define.h
字号:
//this file define all the macros:
#ifndef _DEFINE_H
#define _DEFINE_H
//#define ALL_BMP "all.bmp"
#define MAX_LOADSTRING 100
#define TIMER_ID 1
#define TIMER_RATE 10
#define START_X 0 //the start point of the background of x;
#define START_Y 1200
#define SCREEN_HEIGHT 600
#define SCREEN_WIDTH 800
#define COLOR_DEPTH 16
#define SPIRIT_HEIGHT 80
#define SPIRIT_WIDTH 80
#define SPIRIT_HEIGHT_2 40
#define SPIRIT_WIDTH_2 40
#define SPIRIT_HEIGHT_4 20
#define SPIRIT_WIDTH_4 20
#define SPIRIT_HEIGHT_8 10
#define SPIRIT_WIDTH_8 10
//Game Data
#define STAGE_MAX_NUM 20
#define MAX_FIRE_NUM 80 //子弹最大缓冲区值;
#define MAX_STONE_COLUMN 7 //飞石的列数;
#define LOTUS_NUM 6
//Message Macro
//#define MYM_MOUSEMOVE 0
//#define MYM 1
//#define MYM_LBUTTONDOWN 2
//Direct Input
#define DI_MOUSE_LEFT_DOWN 1
#define DI_MOUSE_LEFT_UP 2
#define DI_MOUSE_MIDDLE_DOWN 3
#define DI_MOUSE_MIDDLE_UP 4
#define DI_MOUSE_RIGHT_DOWN 5
#define DI_MOUSE_RIGHT_UP 6
#define DI_MOUSE_MOVE_X 7
#define DI_MOUSE_MOVE_Y 8
#define DI_KB_ESC 1
#define DI_KB_ENTER 0x1C
//Mathmetics:
#define PI 3.14 // 常数π
#define RADIAN(angle) ((angle)*PI/180.0) //角度到弧度转化的宏
//
#define MAX_WORDS_LENGTH 20
#define TOP_TEN 10
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -