aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/clicky.c3
-rw-r--r--src/gameScreen.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/clicky.c b/src/clicky.c
index 64e5645..4f901b0 100644
--- a/src/clicky.c
+++ b/src/clicky.c
@@ -28,9 +28,10 @@ Clicky createPenguinLolClicky(Game* game)
Clicky clicky;
clicky.animation = createAnimation(&game->assets.animations[PENGUIN_LOL_ANIMATION], ANIMATION_DEFAULT_DELAY);
+ setAnimationFrame(&clicky.animation, clicky.animation.frameCount - 1);
clicky.animation.repeat = false;
clicky.texture = NULL;
- clicky.rect = (Rectangle){0.0, 0.0, 256.0, 256.0};
+ clicky.rect = (Rectangle){0.0, 0.0, 512, 512};
clicky.data = NULL;
clicky.updateCB = updatePenguinLol;
diff --git a/src/gameScreen.c b/src/gameScreen.c
index d949343..179eabd 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -70,8 +70,8 @@ void initGameScreen(GameScreen* gameScreen, Game* game)
// Clickies.
gameScreen->penguinLol = createPenguinLolClicky(game);
- gameScreen->penguinLol.rect.x = WINDOW_WIDTH / 2.0 - 128.0;
- gameScreen->penguinLol.rect.y = WINDOW_HEIGHT / 2.0 - 128.0;
+ gameScreen->penguinLol.rect.x = WINDOW_WIDTH / 2.0 - 256.0;
+ gameScreen->penguinLol.rect.y = WINDOW_HEIGHT / 2.0 - 256.0;
}
void updateGameScreen(GameScreen* gameScreen, Game* game)