#include "head.h" #include "game.h" Game* g_Game; void Init() { g_Game = new Game; } void Run() { g_Game->Update(); } int Main() { dl::Engine::Init(); log_msg("snake start"); g_factory->SetPath("img/","model/","out/","temp/"); // 设置音频路径 g_audio->SetPath("sound/"); g_system->SetFuncInit(Init); g_system->SetFuncRun(Run); ParamWindow pw; pw._strTitle = "snake"; pw._size = { 800,600 }; g_system->Start(pw); dl::Engine::Release(); return 0; }