Cube Road is an endless runner-style game developed in Unity 2022.3.4f1. The player controls a moving cube, avoiding obstacles and progressing through levels. The game includes audio management, UI interactions, level progression, and a scoring system.
- Player Movement: Control the cube with arrow keys.
- Obstacles: Randomly positioned obstacles to avoid.
- Game Manager: Handles level transitions and game over logic.
- Score System: Tracks and displays score based on distance.
- Audio Manager: Plays background music and sound effects.
- Camera Follow: Smoothly follows the player.
- UI Elements: Includes a main menu, game over screen, and level complete UI.
- Unity Engine (2022.3.4f1)
- C# Scripting
- Unity Scene Management
- Unity Audio System
- Physics-based Rigidbody Controls
Cube Road Game/
│── Assets/
│ ├── Scripts/ # C# Scripts for game mechanics
│ ├── Audio/ # Sound effects and background music
│ ├── Prefabs/ # Reusable game objects
│ ├── Scenes/ # Game levels
│ ├── UI/ # UI elements (buttons, menus)
│ └── Materials/ # Textures and materials
│── Packages/
│── ProjectSettings/
│── README.md # Project documentation
- Moves the cube forward.
- Allows side movement using arrow keys.
- Detects falling off the platform and triggers game over.
- Stops movement when colliding with obstacles.
- Plays a death sound effect.
- Calls the Game Manager to handle game over.
- Manages game over state.
- Loads next levels.
- Handles UI interactions.
- Manages game music and sound effects.
- Stops/plays music based on game state.
- Ensures the camera follows the cube smoothly.
- Handles menu navigation.
- Manages scene transitions.
- Uses
AudioManager.cs
to handle background music and effects. - Stops theme music upon game over or level completion.
- Plays
PlayerDeath
sound on collision.
- Run the game in Unity.
- Use Right Arrow (→) to move right.
- Use Left Arrow (←) to move left.
- Avoid obstacles to keep running.
- Reach the end goal to progress.
git clone https://github.com/medro25/Cube-Road-game.git
- Open Unity Hub.
- Click Open and select the cloned project folder.
- Load Level1.scene to start.
- Go to File > Build Settings.
- Select your target platform (Windows, macOS, WebGL, etc.).
- Click Build and Run.
-
Add power-ups (speed boost, invincibility, etc.).
-
Improve obstacle generation.
-
Implement multiplayer support.
-
Add more levels and themes.
-
change the colour while swtiching between the levels





