A 2D level-based arcade game built in Java where the player controls a fox navigating through busy roads, developed as part of the GUI Programming and Mobile Devices course.
FoxOnTheRoad is a multi-level arcade game inspired by the classic road-crossing genre. The player guides a fox across increasingly challenging roads filled with obstacles and traffic. The game features a camera system that follows the character, smooth level progression, and escalating difficulty.
- 🦊 Control a fox character trying to cross multiple roads
- 🚗 Avoid traffic and obstacles to survive
- 📈 Progress through levels with increasing difficulty
- 🎥 Dynamic camera that follows the player character
- 🏆 Level-based structure with distinct challenges
| Course | GUI Programming and Mobile Devices |
| Degree | BSc in Computer and Electronic Engineering |
| University | University of Perugia (UNIPG) |
| Year | 2020 – 2023 |
- Designing and implementing graphical user interfaces in Java
- Working with game loops, rendering, and real-time input handling
- Implementing a scrolling camera system that tracks the player
- Managing game states (menu, playing, game over, level transitions)
- Applying object-oriented design patterns to game architecture (entities, levels, collision detection)
| Technology | Usage |
|---|---|
| Java | Core language |
| Java Swing / AWT | Graphics rendering and input handling |
- Java JDK 8 or higher
git clone https://github.com/fmanc23/FoxOnTheRoad.git
cd FoxOnTheRoad
javac *.java
java Main
⚠️ Adjust the main class name if different. Check the source files for the correct entry point.
FoxOnTheRoad/
├── src/
│ ├── ... # Game engine (loop, rendering, camera)
│ ├── ... # Entities (fox, obstacles, vehicles)
│ ├── ... # Level management and progression
│ └── ... # Input handling and collision detection
├── assets/ # Sprites, textures, audio (if any)
└── README.md
- Game Loop: fixed-timestep update cycle for consistent gameplay
- Camera System: viewport that tracks the fox's position across the level
- Level Manager: handles level loading, difficulty scaling, and transitions
- Collision Detection: determines interactions between the fox and obstacles
Coming soon — screenshots and gameplay GIFs will be added here.
Academic project — University of Perugia (UNIPG).