diff --git a/assets/PressStart2P.ttf b/assets/fonts/PressStart2P.ttf similarity index 100% rename from assets/PressStart2P.ttf rename to assets/fonts/PressStart2P.ttf diff --git a/assets/maze.txt b/assets/game/maze.txt similarity index 100% rename from assets/maze.txt rename to assets/game/maze.txt diff --git a/assets/pellets.txt b/assets/game/pellets.txt similarity index 100% rename from assets/pellets.txt rename to assets/game/pellets.txt diff --git a/assets/sounds/credit.wav b/assets/sounds/credit.wav new file mode 100644 index 0000000..38d46bd Binary files /dev/null and b/assets/sounds/credit.wav differ diff --git a/assets/sounds/death_0.wav b/assets/sounds/death_0.wav new file mode 100644 index 0000000..7fdd9b3 Binary files /dev/null and b/assets/sounds/death_0.wav differ diff --git a/assets/sounds/death_1.wav b/assets/sounds/death_1.wav new file mode 100644 index 0000000..228c080 Binary files /dev/null and b/assets/sounds/death_1.wav differ diff --git a/assets/sounds/eat_dot_0.wav b/assets/sounds/eat_dot_0.wav new file mode 100644 index 0000000..305ce53 Binary files /dev/null and b/assets/sounds/eat_dot_0.wav differ diff --git a/assets/sounds/eat_dot_1.wav b/assets/sounds/eat_dot_1.wav new file mode 100644 index 0000000..3aa4937 Binary files /dev/null and b/assets/sounds/eat_dot_1.wav differ diff --git a/assets/sounds/eat_fruit.wav b/assets/sounds/eat_fruit.wav new file mode 100644 index 0000000..fe3035f Binary files /dev/null and b/assets/sounds/eat_fruit.wav differ diff --git a/assets/sounds/eat_ghost.wav b/assets/sounds/eat_ghost.wav new file mode 100644 index 0000000..e2040ad Binary files /dev/null and b/assets/sounds/eat_ghost.wav differ diff --git a/assets/sounds/extend.wav b/assets/sounds/extend.wav new file mode 100644 index 0000000..9cf27aa Binary files /dev/null and b/assets/sounds/extend.wav differ diff --git a/assets/sounds/eyes.wav b/assets/sounds/eyes.wav new file mode 100644 index 0000000..f918b54 Binary files /dev/null and b/assets/sounds/eyes.wav differ diff --git a/assets/sounds/eyes_firstloop.wav b/assets/sounds/eyes_firstloop.wav new file mode 100644 index 0000000..e856922 Binary files /dev/null and b/assets/sounds/eyes_firstloop.wav differ diff --git a/assets/sounds/fright.wav b/assets/sounds/fright.wav new file mode 100644 index 0000000..45fde41 Binary files /dev/null and b/assets/sounds/fright.wav differ diff --git a/assets/sounds/fright_firstloop.wav b/assets/sounds/fright_firstloop.wav new file mode 100644 index 0000000..bb7a59a Binary files /dev/null and b/assets/sounds/fright_firstloop.wav differ diff --git a/assets/sounds/intermission.wav b/assets/sounds/intermission.wav new file mode 100644 index 0000000..a8028ae Binary files /dev/null and b/assets/sounds/intermission.wav differ diff --git a/assets/sounds/siren0.wav b/assets/sounds/siren0.wav new file mode 100644 index 0000000..2ce8173 Binary files /dev/null and b/assets/sounds/siren0.wav differ diff --git a/assets/sounds/siren0_firstloop.wav b/assets/sounds/siren0_firstloop.wav new file mode 100644 index 0000000..1be885a Binary files /dev/null and b/assets/sounds/siren0_firstloop.wav differ diff --git a/assets/sounds/siren1.wav b/assets/sounds/siren1.wav new file mode 100644 index 0000000..926ce9b Binary files /dev/null and b/assets/sounds/siren1.wav differ diff --git a/assets/sounds/siren1_firstloop.wav b/assets/sounds/siren1_firstloop.wav new file mode 100644 index 0000000..3ff19ee Binary files /dev/null and b/assets/sounds/siren1_firstloop.wav differ diff --git a/assets/sounds/siren2.wav b/assets/sounds/siren2.wav new file mode 100644 index 0000000..2e7f933 Binary files /dev/null and b/assets/sounds/siren2.wav differ diff --git a/assets/sounds/siren2_firstloop.wav b/assets/sounds/siren2_firstloop.wav new file mode 100644 index 0000000..36e61bd Binary files /dev/null and b/assets/sounds/siren2_firstloop.wav differ diff --git a/assets/sounds/siren3.wav b/assets/sounds/siren3.wav new file mode 100644 index 0000000..f918c12 Binary files /dev/null and b/assets/sounds/siren3.wav differ diff --git a/assets/sounds/siren3_firstloop.wav b/assets/sounds/siren3_firstloop.wav new file mode 100644 index 0000000..80224b9 Binary files /dev/null and b/assets/sounds/siren3_firstloop.wav differ diff --git a/assets/sounds/siren4.wav b/assets/sounds/siren4.wav new file mode 100644 index 0000000..3db307d Binary files /dev/null and b/assets/sounds/siren4.wav differ diff --git a/assets/sounds/siren4_firstloop.wav b/assets/sounds/siren4_firstloop.wav new file mode 100644 index 0000000..5ef2af3 Binary files /dev/null and b/assets/sounds/siren4_firstloop.wav differ diff --git a/assets/sounds/start.wav b/assets/sounds/start.wav new file mode 100644 index 0000000..b222b54 Binary files /dev/null and b/assets/sounds/start.wav differ diff --git a/assets/all_textures.png b/assets/textures/all_textures.png similarity index 100% rename from assets/all_textures.png rename to assets/textures/all_textures.png diff --git a/assets/all_textures_transparent.png b/assets/textures/all_textures_transparent.png similarity index 100% rename from assets/all_textures_transparent.png rename to assets/textures/all_textures_transparent.png diff --git a/assets/all_textures_transparent_entities.png b/assets/textures/all_textures_transparent_entities.png similarity index 100% rename from assets/all_textures_transparent_entities.png rename to assets/textures/all_textures_transparent_entities.png diff --git a/assets/cherry.png b/assets/textures/cherry.png similarity index 100% rename from assets/cherry.png rename to assets/textures/cherry.png diff --git a/assets/clear.png b/assets/textures/clear.png similarity index 100% rename from assets/clear.png rename to assets/textures/clear.png diff --git a/assets/enter.png b/assets/textures/enter.png similarity index 100% rename from assets/enter.png rename to assets/textures/enter.png diff --git a/assets/game_over.png b/assets/textures/game_over.png similarity index 100% rename from assets/game_over.png rename to assets/textures/game_over.png diff --git a/assets/maze.png b/assets/textures/maze.png similarity index 100% rename from assets/maze.png rename to assets/textures/maze.png diff --git a/assets/maze32.png b/assets/textures/maze32.png similarity index 100% rename from assets/maze32.png rename to assets/textures/maze32.png diff --git a/assets/maze64.png b/assets/textures/maze64.png similarity index 100% rename from assets/maze64.png rename to assets/textures/maze64.png diff --git a/assets/pac_man_death.png b/assets/textures/pac_man_death.png similarity index 100% rename from assets/pac_man_death.png rename to assets/textures/pac_man_death.png diff --git a/assets/pac_man_life_counter.png b/assets/textures/pac_man_life_counter.png similarity index 100% rename from assets/pac_man_life_counter.png rename to assets/textures/pac_man_life_counter.png diff --git a/assets/pac_man_movement.png b/assets/textures/pac_man_movement.png similarity index 100% rename from assets/pac_man_movement.png rename to assets/textures/pac_man_movement.png diff --git a/assets/pill.png b/assets/textures/pill.png similarity index 100% rename from assets/pill.png rename to assets/textures/pill.png diff --git a/assets/pink_pac_man_movement32.png b/assets/textures/pink_pac_man_movement32.png similarity index 100% rename from assets/pink_pac_man_movement32.png rename to assets/textures/pink_pac_man_movement32.png diff --git a/assets/pink_pac_man_movement48.png b/assets/textures/pink_pac_man_movement48.png similarity index 100% rename from assets/pink_pac_man_movement48.png rename to assets/textures/pink_pac_man_movement48.png diff --git a/assets/power_pill.png b/assets/textures/power_pill.png similarity index 100% rename from assets/power_pill.png rename to assets/textures/power_pill.png diff --git a/assets/ready.png b/assets/textures/ready.png similarity index 100% rename from assets/ready.png rename to assets/textures/ready.png diff --git a/assets/tileset.png b/assets/textures/tileset.png similarity index 100% rename from assets/tileset.png rename to assets/textures/tileset.png diff --git a/src/Game.cpp b/src/Game.cpp index a307cba..0bcd737 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -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