modify assets structure and add sounds
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 473 B |
|
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 614 B |
|
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
|
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 495 B |
|
Before Width: | Height: | Size: 81 B After Width: | Height: | Size: 81 B |
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 550 B |
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 113 B |
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -11,13 +11,13 @@ void Game::run() {
|
||||
ResourceManager resources;
|
||||
MazeMap map;
|
||||
|
||||
resources.loadTexture("all_textures", "assets/all_textures_transparent.png");
|
||||
resources.loadTexture("all_textures", "assets/textures/all_textures_transparent.png");
|
||||
// resize all_textures to 32px
|
||||
resources.resizeTexture("all_textures", 32);
|
||||
// Collision data: 1=wall, 0=path
|
||||
resources.loadMap("mazeMap", "assets/maze.txt");
|
||||
resources.loadMap("mazeMap", "assets/game/maze.txt");
|
||||
// Pellet data: 0=none, 1=pellet, 2=power
|
||||
resources.loadMap("pelletMap", "assets/pellets.txt");
|
||||
resources.loadMap("pelletMap", "assets/game/pellets.txt");
|
||||
|
||||
// Texture layout: [Pellet Maze Image] + gap (16px) + [Base Maze Image]
|
||||
// Original: 224px (28*8) + 4px gap at 8px tiles
|
||||
|
||||