Skip to content

Original SNES Super mario bros made with C++ / OpenGL / SDL

Notifications You must be signed in to change notification settings

ieyjzhou/super-mario-bros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Mario Bros

Made for educational porpuses. No game-engine, only C++ and SDL2.

I've used an ECS architecture taking cues from: https://github.com/redxdev/ECS

  • Author: Fernando Raviola
  • Twitter: @fernandoraviola

Contributions are welcomed!

Controls

  • AWSD to move
  • LSHIFT to sprint
  • E to enter the level editor

Build

I've only tested this on macOS Catalina but should work in Windows and Linux as well.

Prerequisites:

$ brew install cmake sdl2 sdl2_image sdl2_ttf sdl2_mixer 
$ make build run

# or

$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ../bin/  
$ ./smb-

Screenshots

Game screenshot Loading screenshot Editor screenshot

Level editor

alt text

About

Original SNES Super mario bros made with C++ / OpenGL / SDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.0%
  • CMake 6.8%
  • C 0.2%