Code Monkey home page Code Monkey logo

mega-mario-world's Introduction

SuperMarioWorld

An amazing 2D Mario game made with C++ and SFML

Installation

The project requires SFML 2.x to be compiled. If you don't have it installed yet, you can follow this link or do the commands bellow :

git clone [email protected]:SFML/SFML.git SFML
cd SFML
cmake . && make && sudo make install
cd .. && rm -fR SFML

To build the application, you can use cmake :

cd bin
cmake ..
make

Then run ./SuperMarioWorld.

Commands

  • Left and Right arrows to move Mario
  • C to run
  • Space to jump
  • Escape to bring Mario back from the dead

What has been done ?

  • Mario can walk, run, jump, fall, and die if he falls into the hole
  • A debug mode that displays extra information (can be disabled by commenting #define DEBUG_MODE in Debug.hpp)
  • Sprite management: a .rect file indicates which textures to use for static sprites and for animations (with any number of frames)
  • Physics: friction between Mario and the floor / air
  • Sound and music management
  • Level stored in an XML file (background, characters, floor, foreground items). Foreground items can be animated.
  • Collisions (first stable version, to be improved) between the player, the enemies and the foreground items and appropriate reaction
  • Enemies spawn automatically inside the pipe
  • Scrolling

What next ?

  • Death animations
  • Level editor
  • Better graphics ?

mega-mario-world's People

Contributors

sqatx avatar nhacsam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.