Wire engine services into game skeleton

This commit is contained in:
2026-06-09 21:47:07 +08:00
parent 562f9618c4
commit 45a8712b00
11 changed files with 381 additions and 0 deletions
+13
View File
@@ -1,8 +1,21 @@
#include "level_definition.h"
#include "stage_map_resource.h"
#include <SDL2/SDL.h>
namespace ns_game {
LevelDefinition CreateWhiteboxLevel() {
if (auto mapResource = LoadStageMapResource("map/stage_01.map")) {
SDL_Log("CreateWhiteboxLevel: loaded %s map resource: %s",
mapResource->source == StageMapResourceSource::AssetText ? "asset"
: mapResource->source == StageMapResourceSource::PvfText ? "pvf-text"
: mapResource->source == StageMapResourceSource::PvfBinaryScript
? "pvf-script"
: "unknown",
mapResource->path.c_str());
}
LevelDefinition level;
level.worldWidth = 3200.0f;
level.worldHeight = 720.0f;