GymLife
A Java game about going to the gym, eating, and keeping your character in a good mood.
The game
We made GymLife for our Object-Oriented Programming course, using Java without a game engine. You train your character's legs, chest, and back while managing energy, food, money, and mood. We drew the sprites and wrote the game loop and collision handling ourselves.
How it plays
- Stat Balancing: Manage Stamina, Humor, and Muscle Mass.
- Resource Management: Earn money via minigames to afford food and gym access.
- Training System: Diverse workout routines targeting specific muscle groups.
- Inventory: Store and manage food and supplements.
More screenshots (5)
Project context
This project was developed for the Object-Oriented Programming course at the University of Bologna. We split the work across the team, wrote the game logic in Java, and learned quickly which abstractions helped and which ones only looked tidy on a diagram.
How we built it
- MVC (Model-View-Controller) architecture
- Extensive JUnit testing for game balance
- Gradle for dependency and build management
Other bits we added
The main loop needed a few distractions so that earning money and training did not feel like updating a spreadsheet:
- Action-based minigames for income
- Varied gym equipment with unique mechanics
- Progressive difficulty and goal tracking
Built with
Language: Java.
Architecture: MVC.
Testing: JUnit.
Build Tool: Gradle.
Source: GitHub