📄 cgame.h
字号:
#ifndef CGAME_H
#define CGAME_H
#include <time.h>
#include <hge.h>
#include "CResource.h"
#include "CSplash.h"
#include "CGameArea.h"
#include "resource.h"
#include "g_info.h"
enum e_GameState
{
GAME_STATE_SPLASH = 0,
GAME_STATE_MENU,
GAME_STATE_CHOOSE,
GAME_STATE_PLAY,
GAME_STATE_SCORE,
GAME_STATE_EXIT
};
class CGame
{
public:
CGame();
bool Init( bool (*frameFunc )() );
bool Start();
bool MainLoop();
bool GameSplash();
bool GamePlay();
void Release();
private:
HGE *m_hgeEngine;
CResource *m_resource;
CSplash *m_splash;
CGameArea *m_gameArea;
e_GameState m_GameState;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -