📄 bughunt.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 + -