📄 gameh.h
字号:
// |//////////////////////////////梦幻水晶游戏程序 V1.0/////////////////////////|
// || ****** * ;; ;; ;,;; ;; ;; ;; ;; ||
// || * * ;, ;; ;, ,; ;; ;, ;; ||
// || ****** * ; ;. ;; ;.;; ; ;. ||
// || * * ;. ;; .;;; ;. ||
// || * * ,; ,. ;; ;; ,; ||
// || * ****** ., ;;;, ;; ;; ., ||
// |////////////////////////////////////////////////////////////////////////////|
#pragma once
#include "stdafx.h"//常用不改变的
#include "resource.h" //资源文件
#include "Main.h"//主程序
#include "Game.h"//游戏程序
#include "Message.h"//消息程序
#include "GameZ.h"//状态机程序
#define _DebugMode //游戏调试模式
//#define _NoAsmMode //不允许反编译模式
#define _FreeMode //游戏免费模式
#include "VarP.h" //所有的游戏常量定义
//变量声明
extern int NowTick,OldTick,DelayTick; //控速Tick
extern COLORREF colorkey;
extern char tmpc[255]; //临时全局变量
extern char tmpc1[255]; //临时全局变量
extern char tmpc2[255]; //临时全局变量
extern int tmpi,tmpi1;
extern bool LDown; //游戏左键
extern bool RDown; //游戏右键
extern bool IsMouse; //是否显示鼠标
extern RECT tmpr,tmpr1; //两个Rect
extern POINT curpos; //鼠标的X,Y
extern bool IsDebug;
extern char SMessage[255];
extern bool IsNextLine; //是否一直读文件
extern bool RunGame;
extern int frame; //实际统计FPS
extern int frameS; //显示的FPS
extern int frameSM; //FPS最大值
extern int frameST; //用函数算出来的
//游戏引擎库(低端)
#include "GameLib\ClibS.h"
//游戏窗体等UI库
#include "Menu\MenuLib.h"
//游戏引擎库(接口)
#include "interface\GameLIB.h"
#include "CTalk.h"//对话程序
//类的示例化
extern CSound sound; //声音引擎
extern CMap map;
extern CSpety spety; //特效引擎
extern CRole role;
extern CScript cscript;
extern CTile tile;
extern CMenuTop menu; //菜单
extern CEngine engine;
extern CVideo video;
//#define 函数
#define _FREE(X) { if( (X) != NULL ) { free(X); (X)=NULL; } }
#define _DELETE_ARRAY(X) { if( (X) != NULL ) { delete[] (X); (X) = NULL; } }
#define _DELETE(X) { if( (X) != NULL ) { delete (X); (X) = NULL; } }
#define _ERROR(X,Y) { if( (X) !=true) { OutputDebugString(Y);OutDebugFile(Y);MessageBox(NULL,Y,"错误",MB_OK);PostQuitMessage(0);}}
#define _ERROR_OK(X) { OutputDebugString(X);OutDebugFile(X);MessageBox(NULL,X,"错误",MB_OK);PostQuitMessage(0);}
#define KEYSTATE(vknum) ((GetAsyncKeyState(vknum) & 0x8000) ? TRUE : FALSE) //一个键是否被按下
#define ShowCopyRight(X) (LoadString(hInstance,105,X,strlen(X));) //导出版权,X必须为开辟好的指针或数组
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -