diff --git a/external/craft b/external/craft index d71f3bf..a45c954 160000 --- a/external/craft +++ b/external/craft @@ -1 +1 @@ -Subproject commit d71f3bfab71baa9c86c100b63c6e798dbd69d5c9 +Subproject commit a45c9542f89becb4f96df819744817898ab5ac70 diff --git a/include/Pong.h b/include/Pong.h index de2f3d8..eaf420a 100644 --- a/include/Pong.h +++ b/include/Pong.h @@ -4,4 +4,5 @@ class PongWorld : public craft::World { void Begin() override; void Tick(float deltaTime) override; + void FixedTick() override; }; diff --git a/src/Pong.cpp b/src/Pong.cpp index e3c2d31..aa36b6b 100644 --- a/src/Pong.cpp +++ b/src/Pong.cpp @@ -7,4 +7,18 @@ void PongWorld::Begin() { 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(); }