Files
dl_old/project/dl_snake/src/head.cpp
T
2026-03-16 18:13:33 +08:00

39 lines
483 B
C++

#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;
}