An open source reimplementation of Super Mario Bros. 2 written in Lua and LÖVE.
Install LÖVE Engine on your computer.
Download zip file with this project by clicking on the green button called Code
, then Download ZIP
, and extract files to some folder on your computer (Alternatively execute git clone git://github.com/Matriks404/openSMB2.git
command in the desired directory, if you have git installed).
Download gamepack(s) from either:
openSMB2-ExampleGamepack project for an example openSMB2 game;
This Google Drive link (select them and click Download
button) and extract the appropriate <gamepack name>.pack.zip
contents to the following directory:
%appdata%\LOVE\openSMB2\games\
~/.local/share/love/openSMB2/games/
/Users/user/Library/Application Support/LOVE/openSMB2/games
love .
in the console (you might need to change directory to game path first).
This project uses modified 3rd party Dogica fonts by Roberto Mocci for the launcher (in /resources/images/font/
directory), the license for the font can be found here.
Stuff that is working:
Controls:
-
or =
- Scale graphics down or up (only integer scaling)ALT+ENTER
or F11
- Enable or disable fullscreen modeCTRL+F
- Enable FPS counterCTRL+M
- Mute the gameF3
- Enable debugging info (that displays game version, FPS counter and other debug stuff)ESC
- Quit the gameA
- Select optionX
or S
- Execute selected optionS
- Enter character select screenCTRL+L
- Enter level editor (see section below)Left
or Right
- Move the characterZ
- RunS
- PauseS
on pause screen - UnpauseIn the level editor main menu:
Q
to quit to the title screen.In the level editor proper:
L
to reload the level.V
to save the level.P
to play the level (Note that it automatically saves the level and game doesn't return to level editor afterwards).[
or ]
to switch between level areas.Tab
to change editor mode (normal one or starting position movement tool).C
to change editor view type (normal or detailed, where the latter is showing hexadecimal values of tiles on top of them).CTRL
+ arrow keys to move the view by one tile.Page up
or Page down
to move the view by one screen up or down.CTRL
+ (Page up
or Page down
) to move the view by one screen left or right.Home
or End
to jump view to the vertical start or end.CTRL
+ (Home
or End
) to jump view to the horizontal start or end.Q
to quit to the main level editor menu.MODE-N
):
T
to change area type (horizontal or vertical).B
to change background color.M
to change music.R
to resize the area to valid size (that is height of maximum 240 pixels for horizontal levels and width of exact 256 pixels for vertical levels).CTRL
+ -
to remove current area.CTRL
+ =
to add new empty area after current one.4
or 6
on keypad to shrink or stretch area width.8
or 2
on keypad to shrink or stretch area height.W
, S
, A
, D
keys to change selected tile.X
to place tile.Z
to remove tile.MODE-S
):
SHIFT
+ arrow keys to move starting position by 16 pixels each time.You can enable debug mode by pressing CTRL+D
in the launcher or on the title screen.
When enabled, the usual debugging info (which is usually displayed when you press F3
key) will be permanently shown unless you disable this mode.
You will also gain access to these additional debugging features inside the game:
Pause Break
to pause the application by not advancing ticks.
Space
to advance single timer tick.CTRL+A
to ascend the player character.CTRL+D
for the character to die.