Welcome to the Mario JavaFX Game!
This is a simple Mario-style platformer built with Java 11 and JavaFX.
Enjoy classic gameplay, collect coins, avoid enemies, and reach the flag!
- Classic Mario platformer mechanics
- Smooth character movement and jumping
- Enemies: Champignons (mushrooms) and Turtles
- Collectible coins with animated sprites
- Score and timer display
- Level restart and game over transitions
- Responsive controls (keyboard)
- Custom pixel-art graphics
![]() |
![]() |
![]() |
|---|
- Java 11+
- Maven
mvn clean javafx:runThe game window will open. Use your keyboard to play!
- Numpad 6: Move Right
- Numpad 4: Move Left
- Space: Jump
src/main/java/com/game/mario/โ Main game logic and classessrc/main/resources/com/game/mario/โ FXML layouts and resourcesscreenshot/โ Game screenshots
- Java 11
- JavaFX 13
- Maven
This project is for educational purposes.
A future prospect for this project is to train a reinforcement learning model to play this game automatically. This will enable us to explore artificial intelligence applied to video games and improve the performance of agents in interactive environments.
Enjoy playing!
Feel free to contribute or suggest improvements.


