⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imager.h

📁 智力小游戏
💻 H
字号:

#include "hge.h"
#include "hgesprite.h"
#include "hgefont.h"
#include "game.h"


class CImager
{
public:
	CImager(CGame* _game);
	~CImager();

	void LoadGraphics(HTEXTURE* tex);
	void DrawScene(int mousex, int mousey);
	void Click(int mousex, int mousey);
	void SetXY(int _x, int _y) { x = _x; y = _y; };
	void IncScale() { if (scale >= 5) return; scale = scale + 0.05f; };
	void DecScale() { if (scale <= 0) return; scale = scale - 0.05f; };

private:
	CGame* Game;

	HTEXTURE*	cells_tex;
	hgeSprite*	cell_sprs[ROWS*COLUMNS-1];
	hgeFont*	fnt;

	int		x, y;
	int		curx, cury;
	float	scale;
	float	angle;
	float	rot_time;

};

⌨️ 快捷键说明

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