
Bonus Features 5 - Share your Work
Exercise
Beginner
+60XP
1h
Unity Technologies

In this tutorial, you can go way above and beyond what you learned in this Unit and share what you’ve made with your fellow creators.
There are four bonus features presented in this tutorial marked as Easy, Medium, Hard, and Expert. You can attempt any number of these, put your own spin on them, and then share your work!
This tutorial is entirely optional, but highly recommended for anyone wishing to take their skills to a new level.
Languages available:
1. Overview
This tutorial is entirely optional. If you are not interested in this extra challenge, simply scroll to the bottom of the page above the Submission Gallery and select "Skip submission and continue". You can still successfully complete the course without attempting any of these bonus features.
This tutorial outlines four potential bonus features for the Quick Click Prototype at varying levels of difficulty:
- Easy: Lives UI
- Medium: Music volume
- Hard: Pause menu
- Expert: Click-and-swipe
Here’s what the prototype could look like if you complete all four features:
The Easy and Medium features can probably be completed entirely with skills from this course, but the Hard and Expert features will require some additional research.
Since this is optional, you can attempt none of them, all of them, or any combination in between.
You can come up with your own original bonus features as well!
Then, at the end of this tutorial, there is an opportunity to share your work.
We highly recommend that you attempt these using relentless Googling and troubleshooting, but if you do get completely stuck, there are hints and step-by-step solutions available below.
Good luck!
2. Easy: Lives UI
Create a "Lives" UI element that counts down by 1 when an object leaves the bottom of the screen and triggers Game Over when Lives reaches 0.
3. Medium: Music volume
Add background music and a UI Slider element to adjust the volume.
Background music adds a lot of energy to a game, but not everyone likes it, so it’s good to give people the option to lower the volume.
4. Hard: Pause menu
During gameplay, allow the user to press a key to toggle between pausing and resuming the game, where a pause screen comes up while the game is paused.
5. Expert: Click-and-swipe
Program click-and-swipe functionality instead of clicking, generating a trail where the mouse has been dragged. This does make the game easier, so you might also want to increase the gameplay difficulty on all levels if you implement this.
6. Hints and solution walkthrough
Hints:
- Easy: Lives UI
- Try using a Text GameObject like we did for the score
- Medium: Music volume
- Try using the event on the Slider element
- Hard: Pause menu
- Try using Time.timeScale
- Expert: Click-and-swipe
- Camera.ScreenToWorldPoint will help convert a screen space position to world position
Solution walkthrough
If you are really stuck, download the step-by-step solution walkthrough.
Note that there are likely many ways to implement these features - this is only one suggestion.
7. Share your work
Have you implemented any of these bonus features? Have you added any new, unique features? Have you applied these new features to another project?
We would love to see what you've created!
Please take a screenshot of your project or do a screen-recording walking us through it, then post it here to share what you’ve made.
We highly recommend that you comment on at least one other creator's submission. What do you like about the project? What would be a cool new feature they might consider adding?
Please login to submit
Complete this Tutorial
Submission Gallery
Click Clack
Weclome to Click Clack, a project I made with the help of the Junior Programming course. The aim of the game is to swipe through as many flying balls as you can without losing all of your lives or hitting too many bombs. Swipe Away! This game was made to focus on builiding UI skills as well as continuing to develop programming skills and getting familiar with the Unity Engine.
Clicky Crates
Clicky Crates is a fast-paced clicker game where popping crates earns points, but one wrong click on a bomb ends your run immediately.
Binge or Die
Challenge 5 game with all the bonus features added.
Prototype5_User Interface
Ninja Crates is a fast-paced arcade game where quick reflexes and precise timing are the key to survival. Smash incoming crates, avoid dangerous obstacles, and challenge yourself to achieve scores.
Ninja Cut
In this challenge, we upgraded a target-based Unity game by adding multiple gameplay features to improve the player experience. The game now includes a difficulty selection system, lives system, background music with volume control, pause and resume functionality, and an advanced click-and-swipe mechanic with a visual trail effect. Players must destroy targets using clicks or swipes while avoiding missed targets, as losing all lives will trigger the game over state.
Food Ninja
What I added: - Each object has their own hitbox, point value, and explosion color. - Medium has 2 more objects. Sandwich and Skull. Skull deducts 2 lives. - Hard adds another 2 objects, Apple and Nuclear Bomb. Apple has the smallest hitbox but adds lives. The Bomb reduces 5 lives, 50 points, and will lose the game when struck. - Trail has a yellow and orange gradient. - Each screen (Title/Gameplay/Gameover) has their own background music. - Volume control is also present in the pause menu. I forgot to show it in the video. It still needs work with the hit register, volume control, and point system. Sometimes it needs to be clicked or sliced more than once it order for it to hit. The volume resets at 50% everytime a new game is started. It is also easy to reach negative points. But, I won't fix it. It is already playable enough and it will not get shipped anyway. The prototype reminds me a lot of Fruit Ninja.