加入 Node节点类 还未测试新框架
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
Global_Game::Global_Game()
|
||||
{
|
||||
}
|
||||
Global_Game::~Global_Game()
|
||||
{
|
||||
}
|
||||
|
||||
void Global_Game::InitFont()
|
||||
{
|
||||
@@ -65,11 +62,6 @@ void Global_Game::InitFont()
|
||||
void Global_Game::Init()
|
||||
{
|
||||
InitFont();
|
||||
|
||||
// TTF_Font *FontBuf = TTF_OpenFont("Fonts/NotoSansSC-Regular.otf", 24);
|
||||
// TTF_Font *FontBuf = TTF_OpenFont("Fonts/calibri.ttf", 24);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Global_Game::InitGame()
|
||||
@@ -83,9 +75,11 @@ void Global_Game::InitGame()
|
||||
|
||||
// 初始化松鼠脚本管理器
|
||||
SquirrelManager::GetInstance().Init();
|
||||
|
||||
// 读取存档
|
||||
SavaManager::GetInstance().Init();
|
||||
|
||||
//创建摄像机
|
||||
_GameCamera = new GameCamera();
|
||||
// 游戏初始化完成标志
|
||||
InitFlag = true;
|
||||
}
|
||||
@@ -109,4 +103,9 @@ GlobalMonsterScript::MonsterConfig Global_Game::GetMonsterInfo(int id)
|
||||
MonsterConfig.id = id;
|
||||
MonsterInfoMap[id] = MonsterConfig;
|
||||
return MonsterConfig;
|
||||
}
|
||||
}
|
||||
|
||||
RefPtr<GameCamera> Global_Game::GetCamera()
|
||||
{
|
||||
return _GameCamera;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user