?? 撲捉蟲子.cpp
字號:
/***********************
軟件工程2002級3班
靳國榮
學號:20026235
***********************/
#include <assert.h>
#include "GameControler.h"
GameController *BugGame;
int TimerCallBack(void) {
BugGame->TimerTick();
return 1;
}
int MouseCallBack(const Position &MousePosition) {
BugGame->MouseClick(MousePosition);
return 1;
}
int ApiMain() {
BugGame = new GameController();
(BugGame->GetWindow())->SetTimerCallback(TimerCallBack);
(BugGame->GetWindow())->SetMouseClickCallback(MouseCallBack);
BugGame->Play(Slow);
return 0;
}
int ApiEnd() {
delete BugGame;
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -