summaryrefslogtreecommitdiff
path: root/pacman/controller/src/main/java (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-05-14docs/model-module (#13)mithe241-0/+63
* docs(model/entities): Documentation for entities and items Adds documentation to the following entity and item classes - Entity - EntityUtils - Items Did not add documentation for Ghost entity and Pacman entity, since the class is not done yet. * fix/small-fixes (#14) * fix(model/entities): entites start in center of tile * style(pacman): It should be width and height, not height and width. * refactor(view): Changing setting of background color
2025-05-14uupsmithe241-1/+1
2025-05-14feat/view-manager (#20)mithe246-80/+171
* 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.
2025-05-08refactor(module-info): Removed transitivity for importsmithe241-1/+4
2025-05-07fix/small-fixes (#14)mithe241-2/+0
* fix(model/entities): entites start in center of tile * style(pacman): It should be width and height, not height and width. * refactor(view): Changing setting of background color
2025-05-07Feature/json parser (#18)mithe241-9/+10
* chore(model/json-parser): Added maven dependency * chore(model): Removed old test JSON file * refactor(model/GameState): List better then map, entities should be able to overlap * feat(Pacman): Added GameState builder to initiate GameState with given paramters. Added a short example JSON-file, more key-value pairs needs to be added as the game progresses. Likewise the builder won't parse for any other key-value pair automatically.
2025-05-07refactor/pacman-movement (#19)mithe241-1/+1
* refactor(model/Direction): Put Direction enum in Entity class * refactor(model/pacman-movement): Refactored pacman movement
2025-04-29Initial commitmithe244-27/+114
2025-04-29Initial commitMikkel2-0/+30
squashed all previous commits to one.