SDL2 Map Editor
About
== SDL2 Map Editor ==
A simple little editor / platform game written in SDL2.
The goal of the game is to guide the little green slime around a map, and collect lollipops. New maps can be created using the editor. This game is based on the SDL2 Strategy tutorial, by Parallel Realities.
== How to use / play ==
The editor / game must be run from the command line. See below for how to use each.
=== Editor ===
Run with sdl2Editor -edit
Example:
./sdl2Editor -edit example
This will start the game in editor mode, editing a map called "example" (saved to data/maps). When in editor mode, the following controls are in effect:
WASD: Move camera around
1: Enter tile edit mode
2: Enter entity edit mode
3: Enter entity "pick" mode
0: Toggle mini map on and off
Space: Save map
Mouse controls depend on the current mode (tile / entity / pick):
Left mouse button: Place tile / place entity / pick or place entity
Right mouse button: - Remove title / remove entity
Mouse wheel: Scroll through tiles / entities
Certain entities cannot be removed, such as the player character, the red flag, or the green flag. Attempting to place another instance will move the existing one. They can be moved around in pick mode.
(on Windows, using sdl2Editor.exe -edit
=== Game ===
Run with sdl2Editor -map
Example:
./sdl2Editor -map example
This will start the game in game mode, playing a map called "example" (loaded from data/maps). When in editor mode, the following controls are in effect:
AD: Move left / right
W: Swim up
S: Swim down
I: Jump
It is also possible to double jump by pressing I again while in the air.
The goal of the game is to collect all the lollipops and make it to the green flag. If you touch spikes, you will die, and be restarted by the red flag.
Grey doors will open when they are touched. Bronze doors require a bronze key to open. Blue doors require a blue door to open.
When the green flag is touched and all the lollipops have been collected, the game will automatically exit.
(note - there are no sound effects or music)
(on Windows, using sdl2Editor.exe -map
== Links ==
www.parallelrealities.co.uk
parallelrealities.itch.io