* 迁移dl_snake到dl_test

This commit is contained in:
2026-03-18 10:14:48 +08:00
parent cc6c363686
commit 7ba53ef58d
19 changed files with 1 additions and 78 deletions
-7
View File
@@ -1,7 +0,0 @@
cmake_minimum_required (VERSION 3.12)
project ("dl_snake")
set (PATH_SRC ${PROJECT_SOURCE_DIR}/src)
set (PATH_RES ${PROJECT_SOURCE_DIR}/res)
set (USE_RENDER ON)
include ("../project.cmake")
-11
View File
@@ -1,11 +0,0 @@
/log
/*.ilk
/*.pdb
/*.exe
/memory_leak_report.txt
/vld.ini
/temp
/binary
/dl
/Microsoft.DTfW.DHL.manifest
/out
Binary file not shown.
View File
Binary file not shown.
Binary file not shown.
-5
View File
@@ -1,5 +0,0 @@
{
"path": "sound/",
"whitelist": []
}
-39
View File
@@ -1,39 +0,0 @@
#include "head.h"
#include "game.h"
Game* g_Game;
void Init() {
g_Game = new Game;
}
void Run() {
g_Game->Update();
g_Game->Render();
}
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);
delete g_Game;
dl::Engine::Release();
return 0;
}
-7
View File
@@ -1,7 +0,0 @@
#pragma once
#include <dl.h>
using namespace dl;
int Main();
class Game;
extern Game* g_Game;
-1
View File
@@ -1 +0,0 @@
#include <dl_main.h>

Before

Width:  |  Height:  |  Size: 673 KiB

After

Width:  |  Height:  |  Size: 673 KiB

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+1 -8
View File
@@ -1,11 +1,4 @@
{
"path": "sound/",
"whitelist": [
"swt_over",
"qimeidi",
"music_0",
"music_1",
"btn_click",
"bgm"
]
"whitelist": []
}