unity Tutorial
View on GitHubMultiplayer Local Platformer โ Unity 2D
๐น๏ธ Multiplayer Local Platformer โ Unity 2D
This is a Local Multiplayer Platformer template for Unity 2D. It is designed to be a starting point for creating 2-player co-op or competitive games on the same screen (Shared Screen or Split Screen).
๐ Key Features
- Local Multiplayer System: Support for 2 simultaneous players (Keyboard + Gamepad or 2 Gamepads).
- Input System: Configured with the new Unity Input System.
- Player Controller: Movement, jumping, and basic physics.
- Camera System: Dynamic camera that follows players or Split Screen.
- Level Manager: Basic system to manage scenes and respawns.
๐ ๏ธ Installation
- Clone the repository:
git clone https://github.com/BurningAl15/LocalMultiplayer2dPlatformer.git- Open the project in Unity 2022.3 LTS or higher.
- Open the scene
Scenes/Game. - Press Play!
๐ฎ Controls
| Action | Player 1 (Keyboard) | Player 2 (Gamepad) |
|---|---|---|
| Move | WASD | Left Stick |
| Jump | Space | Button South (A/X) |
| Interact | E | Button West (X/Square) |
๐ฆ Project Structure
Scripts/Player: Logic for movement and input.Scripts/Managers: GameManager, LevelManager.Prefabs: Ready-to-use Player and Environment prefabs.
[!TIP] This project is perfect for Game Jams or learning how to handle multiple inputs in Unity.