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

GymLife gameplay screenshot 1
GymLife gameplay screenshot 1

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

Other bits we added

The main loop needed a few distractions so that earning money and training did not feel like updating a spreadsheet:

Built with

Language: Java.
Architecture: MVC.
Testing: JUnit.
Build Tool: Gradle.

Source: GitHub