Skip to content

A color switch clone πŸ”΄πŸ”΅πŸŸ’πŸŸ‘

Notifications You must be signed in to change notification settings

NoeBrt/Color-Ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Color Ball (an inspiration of Color Switch)

output

Requirements

  • Windows or WebGL
  • Unity Package Universal Pipeline Renderer
  • Unity Package Splines

How To Run?

On The Windows Build

Run colorBall.exe

On The WebGL Build

Open the index.html file in a web browser.

Game Presentation

Obstacles

The game is composed of 3 obstacles: a circular one made by the arc asset, a horizontal one made by the triside asset, and the last one made with multiple circles following a spline trajectory.

Levels

All the levels are generated randomly.

Game Loop

The player has to jump until reaching the "Finish!" where they can change levels. If the player collides with an obstacle, they respawn at the initial position and have to redo the level. If the player is out of bounds, they die and respawn at the initial position.

Collectibles

Stars that increment a stars count and a color switcher that changes the player's color.

Gameplay Choice

I wanted to make the game fast to launch and play, without an overwhelming UI. I made the choice to integrate the UI into the player's environment (except for the collectible count). The communication between the UI & Sound and the player is handled with Event Action. A minimalistic choice was made for the sound design by not using sound when jumping, as it could become annoying repetitively. The input is very limited, so I decided to use the Input.Get method for rapid implementation.

Project Structure

Scripts

  • UiManager.cs Manages the UI elements such as the finish text and button, and updates the collectible count.

  • globalColor.cs Defines a set of colors used in the game.

  • SceneManager.cs Handles scene management, such as restarting the scene.

  • PlayerAction.cs Defines player actions as static events.

  • SoundManager.cs Manages the sound effects for different player actions.

  • LevelGenerator.cs Generates the level by placing obstacles, collectibles, and the finish line.

  • CameraBehaviour.cs Controls the

What To Add More

  • What I could add is a completion percentage value in the UI so the player see his progression (but I forgor ☠️)

  • We can add more obstacle, maybe playing with verticality. Maybe change the jump orientation of the ball or add new game mechanics.

About

A color switch clone πŸ”΄πŸ”΅πŸŸ’πŸŸ‘

Resources

Stars

Watchers

Forks

Packages

No packages published