change tile structure

This commit is contained in:
2025-02-25 19:16:18 +01:00
parent 2d5b36bbef
commit 97ff0726c9
30 changed files with 2 additions and 8 deletions
+2 -8
View File
@@ -681,20 +681,14 @@ int main(int argc, char **argv) {
}
}
const char *player_texture_array[] = { "../assets/strawberry.png" };
const char *player_texture_array[] = { "../assets/decorations/strawberry.png" };
SDL_GPUTexture *player_texture = create_shader_texture_array(SDL_arraysize(player_texture_array), player_texture_array, "player_textures");
if (!player_texture) {
log_error("Failed to create shader texture. Exiting.");
return 1;
}
SDL_GPUTexture *quad_texture = create_shader_texture("../assets/tile_grass_2.png");
if (!player_texture) {
log_error("Failed to create shader texture. Exiting.");
return 1;
}
const char *tile_texture_array[] = { "../assets/tile_empty.png", "../assets/tile_grass_2.png" , "../assets/tile_dirt.png" , "../assets/tile_water.png", "../assets/tile_error.png" };
const char *tile_texture_array[] = { "../assets/tiles/empty.png", "../assets/tiles/grass_1.png" , "../assets/tiles/ground_1.png" , "../assets/tiles/water_1.png", "../assets/tiles/error.png" };
SDL_GPUTexture *tile_texture = create_shader_texture_array(SDL_arraysize(tile_texture_array), tile_texture_array, "tile_textures");
if (!player_texture) {
log_error("Failed to create shader texture array. Exiting.");