From a5b8ea449bbb6fe30a6bf27843eab1df6a21ccef Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 4 Jul 2025 08:06:42 -0600 Subject: Started getting walking on heightmap working --- src/game.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game.c') 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(); } -- cgit v1.2.3