Commit Graph

96 Commits

Author SHA1 Message Date
Matteo Benedetto cbb60a19d9 Implement Score API Client and User Profile Integration
- Added ScoreAPIClient for communication with the Mice Game Score API, including methods for user signup, score submission, and leaderboard retrieval.
- Developed a simple profile manager demo to showcase user profile management and API integration.
- Created a test script for the Score API to validate all endpoints and functionality.
- Introduced UserProfileIntegration to manage user profiles, including local storage and API synchronization.
- Added a JSON file for user profiles with sample data for testing and demonstration purposes.
2025-08-21 17:02:41 +02:00
Matteo Benedetto 265af1832d Fix unit position retrieval in Rat class to use correct game state 2025-08-20 16:57:58 +02:00
Matteo Benedetto 17e5abc7df Final 2.0 2025-08-20 16:43:16 +02:00
Matteo Benedetto 0141063baa Add keybindings configuration in JSON and YAML formats; remove obsolete YAML file 2025-08-20 00:48:27 +02:00
Matteo Benedetto 8451ac7913 Refactor keybindings configuration and remove obsolete JSON files 2025-08-19 23:21:37 +02:00
Matteo Benedetto 1269913275 Refactor key handling and add keybindings configuration for game actions 2025-08-19 18:59:06 +02:00
Matteo Benedetto 4099b6f72e Add joystick hat motion handling in KeyLogger 2025-08-19 16:37:04 +02:00
Matteo Benedetto 302d454783 Enhance joystick handling in KeyLogger by adding button release and axis motion events 2025-08-19 16:30:52 +02:00
Matteo Benedetto 3fa678507c Fix window display by enabling window show and presenting the renderer in GameWindow 2025-08-19 16:23:06 +02:00
Matteo Benedetto 5e0f375948 Fix joystick initialization and update button press handling in KeyLogger 2025-08-19 16:19:59 +02:00
Matteo Benedetto f5b910a305 Add joystick button press handling and update message display in KeyLogger 2025-08-19 16:08:31 +02:00
Matteo Benedetto 947d464afd Fix window display initialization in KeyLogger and MiceMaze 2025-08-19 16:04:38 +02:00
Matteo Benedetto 0468b216c0 Display event type in KeyLogger during key events 2025-08-19 15:55:55 +02:00
Matteo Benedetto 06c5c84b06 Initialize SDL2 with joystick, video, and audio options in KeyLogger 2025-08-19 15:45:28 +02:00
Matteo Benedetto 9bc6f161d2 Refactor KeyLogger to use a single FontManager instance for rendering text 2025-08-19 13:29:36 +02:00
Matteo Benedetto 3c5307c0ef Enhance KeyLogger to display key press/release messages on the window 2025-08-19 13:25:12 +02:00
Matteo Benedetto 1ea8db735f Refactor KeyTester to KeyLogger for improved key event logging and SDL2 integration 2025-08-19 13:09:10 +02:00
Matteo Benedetto 79eb8c2de6 Log keycodes to a file on key press events 2025-08-19 12:34:06 +02:00
Matteo Benedetto 30c592e138 Add KeyTester class for key press and release handling 2025-08-18 23:25:17 +02:00
Matteo Benedetto 3bd2d9269f Add Mice! game and associated tools
- Created gameinfo.xml for the Mice! game, detailing its description, release date, developer, and genre.
- Added mice.sh script to activate the conda environment and run the game.
- Implemented colorize_assets.py as a placeholder for future asset colorization functionality.
- Developed convert_audio.py to convert audio files to 8-bit unsigned format at 22100 Hz.
- Introduced maze.py for generating mazes using Depth First Search (DFS) with a graphical interface.
- Created resize_assets.py to resize PNG assets to 18x18 pixels and center them on a 20x20 canvas.
2025-08-18 00:20:40 +02:00
Matteo Benedetto 8a32aad877 OK 2025-08-17 18:49:07 +02:00
Matteo Benedetto a910c8f74a Fix spawn_mine keybinding: change second key from "Control_R" to 2 for consistency 2025-08-14 17:41:23 +02:00
Matteo Benedetto f4ca5bba5b Enhance rendering system: improve screen resolution handling, add audio system initialization, and refine blood surface generation and blending 2025-08-14 17:29:58 +02:00
Matteo Benedetto c35fc9f1f7 mine implementation 2025-08-14 16:53:15 +02:00
Matteo Benedetto a4b6703d12 Enhance blood stain handling: combine existing and new blood surfaces for better accumulation and add surface management 2025-08-13 23:50:21 +02:00
Matteo Benedetto 243bb6d9bd Enhance blood stain mechanics: add dynamic blood surface generation and integrate blood stains into game rendering 2025-08-13 23:30:43 +02:00
Matteo Benedetto 689b21bf65 Add unit tests for UnitFactory functionality and initialize units package 2025-08-13 20:36:51 +02:00
Matteo Benedetto 088ae02080 Refactor unit classes to reduce code duplication and improve maintainability
- Updated the Unit base class to include common attributes and methods for all units.
- Refactored Bomb, Point, and Rat classes to inherit from the new Unit class structure.
- Implemented a consistent die method across units for better cleanup.
- Removed redundant code in unit initialization and added specific attributes where necessary.
- Deleted obsolete configuration file and added a comprehensive architecture guide for future reference.
2025-08-13 17:42:45 +02:00
Matteo Benedetto 3266ce8209 Initialize SDL and load graphics assets in GameWindow constructor 2025-08-12 15:30:45 +02:00
Matteo Benedetto aa907ed80a optimus-l1 2025-08-12 14:48:57 +02:00
Matteo Benedetto 89812d3ed8 Added full-screen toggle option in start menu.
- Added 'toggle_full_screen' key binding to json file.
- Implemented full-screen functionality in rats.py.
v1.0
2025-01-04 16:11:50 +01:00
Matteo Benedetto d31de92758 Rimuovi parametri non necessari dalla riproduzione audio e semplifica la gestione delle posizioni del testo 2024-12-28 12:03:01 +01:00
Matteo Benedetto 6dc871db54 Aggiorna la gestione dei tasti e aggiungi nuovi file di configurazione per le schermate di pausa e menu di avvio 2024-12-28 00:34:48 +01:00
Matteo Benedetto 69940890ec Aggiungi implementazione di EGL per la gestione del contesto OpenGL 2024-12-27 22:23:05 +01:00
Matteo Benedetto 98a9e5fb8b Aggiungi file di configurazione per i binding dei tasti e implementa la gestione degli input nel gioco 2024-12-27 19:03:04 +01:00
Matteo Benedetto ccf7769979 Semplifica la gestione audio rimuovendo il supporto per più dispositivi e centralizzando l'uso di un singolo dispositivo audio 2024-12-26 01:14:26 +01:00
Matteo Benedetto 3e7056e23f Rimuovi chiamate non necessarie ai metodi di riproduzione e arresto audio 2024-12-26 00:50:27 +01:00
Matteo Benedetto 8b3ad61047 Correggi la variabile di ambiente RESOLUTION e aggiorna il disegno dello sfondo per considerare gli offset 2024-12-26 00:33:23 +01:00
Matteo Benedetto ebfe9dcceb Aggiungi supporto per la creazione e il disegno di texture di sfondo nel gioco 2024-12-26 00:12:00 +01:00
Matteo Benedetto cb25866754 Aggiungi supporto per audio e migliora la gestione delle dipendenze nel progetto 2024-12-25 02:15:25 +01:00
Matteo Benedetto 1964ad87f9 Aggiungi il file README.md con dettagli sul gioco, funzionalità, installazione e struttura del progetto 2024-12-23 23:12:05 +01:00
Matteo Benedetto fb1f2cd7a0 Aggiungi .env e rats.spec al file .gitignore 2024-12-23 19:37:11 +01:00
Matteo Benedetto 1730538792 Rimuovi il file .env non più necessario 2024-12-23 19:36:53 +01:00
Matteo Benedetto 3aa9c84b54 Aggiorna la gestione della risoluzione nel file .env e modifica la funzione win_screen per supportare la visualizzazione dei punteggi 2024-12-23 18:31:50 +01:00
Matteo Benedetto 9553b4b4e2 Rimuovi il file scores.txt contenente i punteggi precedenti 2024-12-23 17:21:15 +01:00
Matteo Benedetto 8b213761e4 Aggiungi la funzione count_rats per contare i ratti e aggiorna la logica di gioco; modifica la risoluzione nel file .env e gestisci eccezioni nel metodo pop di Timer 2024-12-23 17:16:05 +01:00
Matteo Benedetto 3ee958b235 Aggiungi supporto per la pausa tramite un nuovo tasto nella classe KeyBindings 2024-12-23 17:03:23 +01:00
Matteo Benedetto 3eecc98304 Migliora la logica di scrolling degli assi nella classe KeyBindings 2024-12-23 16:56:36 +01:00
Matteo Benedetto f3fe91ca36 Aggiungi supporto per lo scrolling degli assi nella classe KeyBindings e integra la gestione degli eventi di movimento degli assi nella classe GameWindow 2024-12-23 16:53:37 +01:00
Matteo Benedetto f473265df7 Aggiorna la gestione dei tasti rilasciati nella classe KeyBindings per includere tasti aggiuntivi 2024-12-23 16:42:30 +01:00