mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
modify map to use 32 bit tiles
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
+2
-2
@@ -11,14 +11,14 @@ int main()
|
||||
// Load tilemap data from JSON
|
||||
TileMapData tilemapData;
|
||||
try {
|
||||
tilemapData = TileMapLoader::loadFromJSON("util/pacmantiles.json");
|
||||
tilemapData = TileMapLoader::loadFromJSON("util/pacmantiles32.json");
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "Error loading tilemap: " << e.what() << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
TileMap map;
|
||||
if (!map.load("assets/maze.png",
|
||||
if (!map.load("assets/maze32.png",
|
||||
{tilemapData.tileSize, tilemapData.tileSize},
|
||||
tilemapData.tiles.data(),
|
||||
tilemapData.width,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user