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

📄 bughunt.cpp

📁 一个同学用C++写的小游戏
💻 CPP
字号:
// bughunt.cpp: the implement of the bughunt

#include "Control.h"

GameController *BugHunt;

int TimerCallback()
{
	BugHunt ->TimerTick();
	return 1;
}

int MouseCallback( const Position &MousePosition )
{
	BugHunt ->MouseClick(MousePosition);
	return 1;
}

int ApiMain()
{
	EzRandomize();
	BugHunt = new GameController();
	(BugHunt ->GetGameWindow()) ->SetTimerCallback(TimerCallback);
	(BugHunt ->GetControlWindow()) ->SetMouseClickCallback(MouseCallback);
    
	BugHunt ->Play(Slow);
	return 0;
}

int ApiEnd()
{
	delete BugHunt;
	return 0;
}

⌨️ 快捷键说明

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