/mario-game

A clone of Super Mario Bros 16-bit version. Written in Java and using the LibGdx game engine.

Primary LanguageJavaMIT LicenseMIT

Super Mario Bros. Clone

image

A clone of Super Mario Bros. 16-bit version game.

About

This game is based of the Super Mario Bros. 16-bit version featured on Super Mario All-Starts for the Super Nintendo (SNES). The game is written in Java an using the LibGdx engine.

Features of the game:

  • Mini Mario turns into big Mario with the help of mushrooms.
  • If you walk of the platform into the deep, you will die.
  • Goomba's (enemies) will kill Mario, Mario can kill the Goomba's by jumping on their heads.
  • Jump up against bricks, they will be destroyed if you are big Mario.
  • Bonus bricks which can contain multiple Mushrooms.
  • At the end of the level you can slide down the flag, you will then walk automatically to the castle. The game will then restart.
  • Sound effects and music.

The project is updated to work with the new LibGdx release (1.4.1) which uses Gradle and has a different structure..

I am no longer adding new features to the game. Though, if you still find some bugs, just let me know (I might fix it)!

Here is a video demo:

Youtube video

Download

Click here to download the game. You need Java to be able to run it.

Development setup

  1. Install Java JDK. Make sure JAVA_HOME is in your environment variables.
  2. Install the Android SDK and setup an Android platform. Make sure to set ANDROID_HOME in your environment variables.
  3. Install Gradle.
  4. Clone this repository. Open the project in your IDE. If you are using IntlliJ the Gradle plugin should be installed by default. The gradle project settings should popup. Accept the default settings. If it is missing the Android SDK or JAVA_HOME make sure to setup Java and Android SDK in your environment variables.
  5. Edit your run configuration. Make sure android/assets is set as your working directory!
  6. When running in IntelliJ it should automatically compile.

Setting up the project can be a pain, which I have experienced myself, even when I tried to set up my own project again. Please let me know if you are having trouble!