From e7563be943667b6aad5813090989b9e28424b052 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Wed, 14 May 2025 12:30:20 +0200 Subject: feat/view-manager (#20) * feat(View & Controller): Added screens for game, main menu and pause menu Added screens: - MainMenuView & MainMenuController. - GameView & GameController. - PauseView & PauseController. * refactor(MainMenuController): MainMenuController constructs game MainMenuController constructs games and allows the creation of a new game without terminating the process: * feat(View): Resource Manager for loading game textures Add ResourceManager for centralized texture loading. Implemented a singleton ResourceManager to handle loading of game textures. Ensures each texture is loaded only once, improving performance and memory efficiency. Includes fallback logic to return a default "missing texture" image when a resource cannot be found. Prevents accidental instantiation by enforcing the singleton pattern. --- .../view/src/main/resources/gameAssets/missingTexture.png | Bin 0 -> 216 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 pacman/view/src/main/resources/gameAssets/missingTexture.png (limited to 'pacman/view/src/main/resources') diff --git a/pacman/view/src/main/resources/gameAssets/missingTexture.png b/pacman/view/src/main/resources/gameAssets/missingTexture.png new file mode 100644 index 0000000..7317870 Binary files /dev/null and b/pacman/view/src/main/resources/gameAssets/missingTexture.png differ -- cgit v1.2.3-70-g09d2