change tile structure
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 164 B |
|
Before Width: | Height: | Size: 160 B |
|
Before Width: | Height: | Size: 546 B |
|
Before Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 308 B |
|
Before Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 357 B |
|
Before Width: | Height: | Size: 486 B |
|
Before Width: | Height: | Size: 295 B |
|
Before Width: | Height: | Size: 176 B |
BIN
assets/tiles/empty.png
Normal file
|
After Width: | Height: | Size: 133 B |
BIN
assets/tiles/error.png
Normal file
|
After Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
|
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
BIN
assets/tiles/water_2.png
Normal file
|
After Width: | Height: | Size: 111 B |
BIN
bin/pokemon.exe
BIN
bin/pokemon.pdb
10
src/main.cpp
@ -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");
|
SDL_GPUTexture *player_texture = create_shader_texture_array(SDL_arraysize(player_texture_array), player_texture_array, "player_textures");
|
||||||
if (!player_texture) {
|
if (!player_texture) {
|
||||||
log_error("Failed to create shader texture. Exiting.");
|
log_error("Failed to create shader texture. Exiting.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_GPUTexture *quad_texture = create_shader_texture("../assets/tile_grass_2.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" };
|
||||||
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" };
|
|
||||||
SDL_GPUTexture *tile_texture = create_shader_texture_array(SDL_arraysize(tile_texture_array), tile_texture_array, "tile_textures");
|
SDL_GPUTexture *tile_texture = create_shader_texture_array(SDL_arraysize(tile_texture_array), tile_texture_array, "tile_textures");
|
||||||
if (!player_texture) {
|
if (!player_texture) {
|
||||||
log_error("Failed to create shader texture array. Exiting.");
|
log_error("Failed to create shader texture array. Exiting.");
|
||||||
|
|||||||