Skip to content

A simple 2D platformer game based off Super Mario Bros. (1985) developed in Unity 2021.3.6f1.

Notifications You must be signed in to change notification settings

djtfoo/PlatformerGame2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlatformerGame2D

A simple 2D platformer game developed in Unity 2021.3.6f1.

Development

Engine: Unity 2021.3.6f1
Target platform: Windows
Resolution: 848x480 (Windowed)

Read more about the code documentation here.

Gameplay

Gameplay Demo

How to Play

  • 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.

Technical Features

  • 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)

Making Changes

Launch the project in Unity 2021.3.6f1.

Open SampleScene (Assets/Scenes/SampleScene.unity).

Build

The game can be built for Windows platforms.

Map Editor

Gameplay Demo

How to Run

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.

Gameplay Demo

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.

Credits

Sprites

Audio

Fonts

About

A simple 2D platformer game based off Super Mario Bros. (1985) developed in Unity 2021.3.6f1.

Resources

Stars

Watchers

Forks

Packages

No packages published