Add game framework and whitebox level
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user