Add simple rectangles to represent the game
Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
16
src/Pong.cpp
16
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(); }
|
||||
|
||||
Reference in New Issue
Block a user