A simple 2D platformer game developed in Unity 2021.3.6f1.
Engine: Unity 2021.3.6f1
Target platform: Windows
Resolution: 848x480 (Windowed)
Read more about the code documentation here.
- Use the arrow keys to move and space to jump.
- Win by reaching the checkpoint, or lose if all lives are lost.
- Collect fruits for points.
- Hit tiles from beneath for points. Some tiles are 'hidden', appearing only after being hit.
- Avoid spikes and falling out of the map, which causes the player to lose 1 life and to restart from the beginning of the map.
- Map loaded from text file (StreamingAssets)
- Platformer mechanics implemented using Rigidbody2D
- InputManager for player controls
- Tagalong camera
- User interface for displaying game state
- User feedback (visual, audio)
Launch the project in Unity 2021.3.6f1.
Open SampleScene (Assets/Scenes/SampleScene.unity).
The game can be built for Windows platforms.
Launch the project in Unity 2021.3.6f1. Open MapEditorScene (Assets/MapEditor/Scenes/MapEditorScene.unity).
Before playing the scene, specify the map width and map file to load (if it does not exist) in the Map Editor Component.
Controls:
- Left click on an object from the top bar to select it.
- Left click on a tile space to place it on the map.
- Select the empty grid (top left) to erase existing tiles.
Click on the Save button (bottom right) to save to the file. It creates a new file if it does not exist yet.
- Animated Pixel Slime by rvros
- Dino Characters by @ArksDigital on Twitter
- Pixel Adventure by Pixel Frog
- Mountain Dusk Parallax Background by ansimuz
- Smoke Effect 01 by pimen
- Spikes by omniclause
- [Music Assets] FREE Music Loop Bundle by Tallbeard Studios
- 8-bit/16-bit Sound Effects (x25) Pack
- Press Start 2P Font by codeman38