aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameScreen.c
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-03-15 16:57:06 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-03-15 16:57:06 +0000
commit409ea3517b46440f447e35280f399fb5c95e8d9d (patch)
tree73e4455d434776f07ae99d72139b2461a63400b7 /src/gameScreen.c
parent9d14163ea278171f96d0be0aa4e911f485befaf9 (diff)
downloadPenguinYippies-409ea3517b46440f447e35280f399fb5c95e8d9d.tar.gz
PenguinYippies-409ea3517b46440f447e35280f399fb5c95e8d9d.tar.bz2
PenguinYippies-409ea3517b46440f447e35280f399fb5c95e8d9d.zip
stone texture
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index 28e114a..f9594f0 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -130,9 +130,20 @@ void updateGameScreen(GameScreen* gameScreen, Game* game)
}
// Stones.
+ Texture stoneTexture = game->assets.textures[STONE_TEXTURE];
+
+ DrawTexturePro(
+ stoneTexture,
+ (Rectangle){5.0, 5.0, stoneTexture.width, stoneTexture.height},
+ (Rectangle){0.0, 0.0, 35.0, 35.0},
+ (Vector2){0.0, 0.0},
+ 0.0,
+ WHITE
+ );
+
char stonesBuf[30];
- snprintf(stonesBuf, sizeof(stonesBuf), "Stones: %d", game->stones);
- DrawText(stonesBuf, 10, 10, 20, BLACK);
+ snprintf(stonesBuf, sizeof(stonesBuf), "%d", game->stones);
+ DrawText(stonesBuf, 40.0, 5.0, 30, BLACK);
//DrawFPS(0, 0);
}