Add simple rectangles to represent the game

Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
2025-09-06 20:44:49 -05:00
parent 9414eb530d
commit 5e922d5c8a
3 changed files with 17 additions and 2 deletions

2
external/craft vendored

View File

@@ -4,4 +4,5 @@
class PongWorld : public craft::World { class PongWorld : public craft::World {
void Begin() override; void Begin() override;
void Tick(float deltaTime) override; void Tick(float deltaTime) override;
void FixedTick() override;
}; };

View File

@@ -7,4 +7,18 @@ void PongWorld::Begin() {
LOG("The PongWorld has BEGUN!"); LOG("The PongWorld has BEGUN!");
} }
void PongWorld::Tick(float deltaTime) { World::Tick(deltaTime); } void PongWorld::Tick(float deltaTime) {
World::Tick(deltaTime);
GetEngine().GetGraphics().DrawFilledRectangle({15, 150}, {20, 300 - 75});
GetEngine().GetGraphics().DrawFilledRectangle({15, 150},
{800 - 15 - 20, 300 - 75});
GetEngine().GetGraphics().DrawFilledRectangle({15, 15},
{400 - 15 / 2, 300 - 15 / 2});
//
//
//
}
void PongWorld::FixedTick() { World::FixedTick(); }