Wire engine services into game skeleton
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user