This game is a 2D platformer created using Unity, integrating class concepts such as character animations, keyboard controls, platform design with 2DSpriteShape, interactive objects animated using the Timeline, and custom game logic implemented in C# scripts. These scripts manage character behavior, camera dynamics, accessory interactions, and core gameplay mechanics.
- Platforms designed using
2DSpriteShapefor dynamic and visually appealing level design. - Interactive objects (
accessories) with unique animations and behaviors.
- A dynamic camera that follows the character while staying within the game boundaries.
-
Controls:
- Movement:
- Use the arrow keys (
←,→) to move left and right. - Press
Wto jump.
- Use the arrow keys (
- Roll:
- Press the
Xkey to perform a roll animation.
- Press the
- Crouch:
- Press
Sto crouch, reducing the character's movement speed by half. - Release
Sto return to normal movement speed.
- Press
- Double Jump:
- Jump a second time while airborne (limited to two consecutive jumps).
- Movement:
-
Behavior:
- Background music plays when the character is present in the scene.
- Bonus Accessories:
- Increase the number of lives by 1, with a configurable maximum.
- Malus Accessories:
- Decrease the number of lives by 1. The character dies if lives reach zero.
- Mortem Accessories:
- Trigger a death animation and replace the background music with a death theme. The game restarts after a set duration.
- Accessories are animated using the
Timelineand include:- Two single-Timeline animations.
- One animation combining two Timelines.
- Animations using interpolation, frame-by-frame, particles, and sound effects.
- Start Screen:
- Features a graphical start screen with background music. The game starts upon clicking a button.
- Lives Display:
- Displays the character's remaining lives using visual icons that reflect the character's current state.
- The project includes custom C# scripts that manage:
- Camera Controls:
- A script ensures the camera dynamically tracks the character and stays within the game boundaries.
- Character Behavior:
- Handles character movement, animations (rolling, crouching, and jumping), and interactions with accessories.
- Accessory Interactions:
- Manages collision detection and specific behaviors for bonus, malus, and mortem accessories.
- Game Logic:
- Implements game mechanics such as life tracking, game restart logic, and background music management.
- Camera Controls:
- Unity Version:
LTS 2022.3.40f1 - Free or personally created assets (no copyrighted media).
-
Clone the repository:
git clone https://github.com/yonahcodes/LavaLeap.git
-
Install Prerequisites:
- Download and install
Unity Hubfrom the official Unity website - Install Unity version
LTS 2022.3.40f1through Unity Hub - Ensure you have a graphics card driver that supports Unity's requirements
- Download and install
-
Opening the Project:
- Launch Unity Hub
- Click
Addand browse to the cloned repository folder - Select the project folder and open it in Unity Editor
