aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-04 14:06:42 +0000
committernathan <nathansmith@disroot.org>2025-07-04 14:06:42 +0000
commita5b8ea449bbb6fe30a6bf27843eab1df6a21ccef (patch)
tree1be8416daa7a089b058a351bf8abd29f636c09c5 /src/game.c
parent2b2b69ee31f00aa46ab6baa967e12437ce7334d1 (diff)
downloadFindThings-a5b8ea449bbb6fe30a6bf27843eab1df6a21ccef.tar.gz
FindThings-a5b8ea449bbb6fe30a6bf27843eab1df6a21ccef.tar.bz2
FindThings-a5b8ea449bbb6fe30a6bf27843eab1df6a21ccef.zip
Started getting walking on heightmap working
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 778d05e..15e54e5 100644
--- a/src/game.c
+++ b/src/game.c
@@ -27,6 +27,9 @@ void initGame(Game* game)
game->heightmap.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture =
game->assets.textures[HEIGHT_MAP_TEXTURE];
+ game->heightmapColors = LoadImageColors(
+ game->assets.images[HEIGHT_MAP_IMAGE]);
+
DisableCursor();
}
@@ -73,5 +76,6 @@ void closeGame(Game* game)
{
closeAssets(&game->assets);
UnloadModel(game->heightmap);
+ UnloadImageColors(game->heightmapColors);
CloseWindow();
}