Game overview

Game goal

The player needs to control a character and collect as many gold coins as possible in different levels within a specified time.

How to play

Players use the WASD key or direction key to move characters through keyboard operation. Characters can move and jump in the game scene to get gold coins. When a character collides with a gold coin, the gold coin is collected and disappears, and the player's score is increased.

Game component

Character

It is a Rigidbody component for basic movements, and it also has a collider for detecting collisions with gold coins and other objects.

Gold coin

It is represented by a circle made of gold. The gold coin is placed in a specific position, and it has a rotating animation to make it more visually attractive.

Scene

The game scene includes the ground plane and various obstacles or platforms. Scripting

Mobile script

Control the movement of the character according to the player's input. It uses Unity's Input.GetAxis method to get horizontal and vertical input, and applies force to the Rigidbody to move the character.

Collision detection script

Detect when a character collides with a gold coin. If the collided object has a "gold coin" label, the gold coin object is destroyed and the score is updated.

Scoring script

Manage players' scores. Every time a gold coin is collected, it will increase the score and display the updated score on the screen using UI text elements.

Other functions

Camera following

The script attached to the main camera makes it follow the movement of the character and always keeps the character in view.

Sound effects

Adding sound effects to gold coin collection and other actions can enhance the game experience.

Level progress

In some versions, after collecting all the gold coins in one level, the player will enter the next level, which may contain more challenging obstacles and more gold coins.

Leave a comment

Log in with itch.io to leave a comment.