An HTML5 remake of the original Super Mario Brothers - expanded for wide screens.
Find a file
Diogenesthecynic 8f9e0adc44 Platform-independent sounds
Both .mp3 and .ogg files are included, so all major browsers should be
able to play all audio.
2013-10-19 01:55:59 -04:00
Fonts FontSquirrel for fonts 2013-10-10 14:46:06 -04:00
Maps Fixed exit point of Underworld in 8-1 2013-10-16 12:13:19 -04:00
parser Engine & Performance Update 2013-09-02 12:03:28 -04:00
Sounds Platform-independent sounds 2013-10-19 01:55:59 -04:00
Theme FontSquirrel for fonts 2013-10-10 14:46:06 -04:00
.gitattributes Engine & Performance Update 2013-09-02 12:03:28 -04:00
.gitignore Engine & Performance Update 2013-09-02 12:03:28 -04:00
data.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
editor.js Actually fixed editor(.js) scrolling 2013-10-17 02:38:21 -04:00
events.js Engine & Performance Update 2013-09-02 12:03:28 -04:00
generator.js Engine & Performance Update 2013-09-02 12:03:28 -04:00
library.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
load.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
maps.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
mario.css FontSquirrel for fonts 2013-10-10 14:46:06 -04:00
mario.html FontSquirrel for fonts 2013-10-10 14:46:06 -04:00
mario.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
quadrants.js Engine & Performance Update 2013-09-02 12:03:28 -04:00
README.md Update README.md 2013-10-15 11:02:04 -04:00
sounds.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
sprites.js Allow JIT optimization. 2013-10-10 19:10:35 -04:00
things.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
toned.js Engine & Performance Update 2013-09-02 12:03:28 -04:00
triggers.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
upkeep.js Platform-independent sounds 2013-10-19 01:55:59 -04:00
utility.js Platform-independent sounds 2013-10-19 01:55:59 -04:00

FullScreenMario

An HTML5 remake of the original Super Mario Brothers - expanded for modern browsing.

Here's a quick set of cheat codes you can use during the game. If you're using this through the fullscreenmario.com UI, you'll have to reference everything as a member of 'game' (which is a link to the frame containing FSM).

Game Powerups

Command Result
marioShroom(mario) The equivalent of Mario touching a Mushroom or FireFlower item.
marioStar(mario) The equivalent of Mario touching a Star item. Note that if you want Mario to be invincible for the rest of the current map, use ++mario.star.
scrollMario(X) Scrolls the window horizontally by X, keeping Mario in the same spot relative to the screen.
scrollTime(T) Floats Mario through the rest of the level (beware, this is best used on the Random worlds!).
fastforward(T) Sets the game speed to 1+T. T=1 results in double the speed, and T=0 is normal speed.

Adding Things

Command Result
addThing(ThingFunction, xloc, yloc)
or
addThing(new Thing(ThingFunction, arg1, arg2), xloc, yloc)
Creates a new instance of a Thing, such as Goomba or Koopa, at the specified location. Thing functions are located as separate in things.js; in the future they will be stored as JSON objects.
killNormal(MyThing) Kills a specified Thing. You may find them listed under window.characters, window.solids, and window.scenery.

Map Shifting

Command Result
setMap(A,B)
or
setMap([A,B])
Starts the World A-B map immediately. If it doesn't exist (such as when maps aren't loaded via AJAX yet), it will log a complaint gracefully.
setMapRandom()
or
setMapRandom("Overworld")
Starts the corresponding random map immediately, similar to setMap. Named options are (Overworld by default):
  • Overworld
  • Underworld
  • Underwater
  • Sky
  • Castle
shiftToLocation(N) Shifts to the Nth location in the current map. For example, setMap(1,1); shiftToLocation(2); brings the user to the Underworld section of World 1-1. Note that maps are stored under Maps/WorldAB.js as function bodies.

Developers

This is released under the Attribution Non-Commercial Share-Alike license. Full Screen Mario is meant to be both a proof of concept and an entertaining pasttime, not a source of income.