From 409ea3517b46440f447e35280f399fb5c95e8d9d Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Fri, 15 Mar 2024 10:57:06 -0600 Subject: stone texture --- src/gameScreen.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/gameScreen.c') 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); } -- cgit v1.2.3