Skip to content

feresr/super-mario-bros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Mario Bros

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

It uses an ECS architecture, I took some cues from: https://github.com/redxdev/ECS although my implementation is probably less efficent, I'm not as confident with C++ as I'd like to be.

Contributions are welcomed!

DEMO: https://youtu.be/HkLZ9ESYxCU

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 alt text