Skip to content

This is a simple Mario-style platformer built with Java 11 and JavaFX. Enjoy classic gameplay, collect coins, avoid enemies, and reach the flag!

Notifications You must be signed in to change notification settings

mende237/simple-mario-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Mario JavaFX Game

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!


๐ŸŽฎ Features

  • 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

๐Ÿ–ผ๏ธ Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

๐Ÿš€ Getting Started

Prerequisites

  • Java 11+
  • Maven

Build & Run

mvn clean javafx:run

The game window will open. Use your keyboard to play!


๐ŸŽน Controls

  • Numpad 6: Move Right
  • Numpad 4: Move Left
  • Space: Jump

๐Ÿ“ Project Structure

  • src/main/java/com/game/mario/ โ€” Main game logic and classes
  • src/main/resources/com/game/mario/ โ€” FXML layouts and resources
  • screenshot/ โ€” Game screenshots

๐Ÿ› ๏ธ Technologies

  • Java 11
  • JavaFX 13
  • Maven

๐Ÿ“œ License

This project is for educational purposes.

๐Ÿ”ฎ Perspectives

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.

About

This is a simple Mario-style platformer built with Java 11 and JavaFX. Enjoy classic gameplay, collect coins, avoid enemies, and reach the flag!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages