aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 49fb4f8..0a688a0 100644
--- a/src/game.c
+++ b/src/game.c
@@ -17,8 +17,10 @@ void initGame(Game* game)
initClickies(&game->clickies);
// Test clickies.
- Clicky testClicky = createPenguinLolClicky(game);
- addClickyToClickies(&game->clickies, testClicky);
+ Clicky firstClicky = createPenguinLolClicky(game);
+ firstClicky.rect.x = WINDOW_WIDTH / 2.0 - firstClicky.rect.width / 2.0;
+ firstClicky.rect.y = WINDOW_HEIGHT / 2.0 - firstClicky.rect.height / 2.0;
+ addClickyToClickies(&game->clickies, firstClicky);
game->screenTexture = LoadRenderTexture(WINDOW_WIDTH, WINDOW_HEIGHT);