Add game framework and whitebox level

This commit is contained in:
2026-06-08 23:47:32 +08:00
parent 5525343656
commit e52cf94336
24 changed files with 778 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include "../actor/player_actor.h"
#include "../data/level_definition.h"
#include <frostbite2D/scene/scene.h>
#include <frostbite2D/types/type_math.h>
namespace ns_game {
class WhiteboxScene : public frostbite2D::Scene {
public:
void onEnter() override;
void OnUpdate(float deltaTime) override;
void Render() override;
private:
void drawWhitebox() const;
void updateCamera();
LevelDefinition level_;
frostbite2D::Ptr<PlayerActor> player_;
};
} // namespace ns_game