* 迁移dl_snake到dl_test
This commit is contained in:
@@ -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")
|
||||
@@ -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.
Binary file not shown.
Binary file not shown.
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"path": "sound/",
|
||||
"whitelist": []
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
#include <dl.h>
|
||||
using namespace dl;
|
||||
|
||||
int Main();
|
||||
class Game;
|
||||
extern Game* g_Game;
|
||||
@@ -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,11 +1,4 @@
|
||||
{
|
||||
"path": "sound/",
|
||||
"whitelist": [
|
||||
"swt_over",
|
||||
"qimeidi",
|
||||
"music_0",
|
||||
"music_1",
|
||||
"btn_click",
|
||||
"bgm"
|
||||
]
|
||||
"whitelist": []
|
||||
}
|
||||
Reference in New Issue
Block a user