Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

feresr/super-mario-bros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-

Webassembly (thanks @parwenaker!)

Either installemsdk and run

$ mkdir build$ cd build$ emcmake cmake ..$ make

or build withDocker

$ docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk emcmake cmake -S . -B build$ docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk cmake --build build

Start a webserver in the bin folder

$ cd bin$ python -m SimpleHTTPServer 8000$ open http://localhost:8000/smb-.html

Screenshots

Game screenshotLoading screenshotEditor screenshot

Level editor

alt text

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp