Bonus Features 2 - Share your Work
Exercise
·
Beginner
·
+60XP
·
60 mins
·
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 Feed the Animals Prototype at varying levels of difficulty:
- Easy: Vertical player movement
- Medium: Aggressive animals
- Hard: Game user interface
- Expert: Animal hunger bar
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: Vertical player movement
Allow the player to move forward and backwards within a certain range.
This makes the game a bit more dynamic and allows for the addition of other features.
3. Medium: Aggressive animals
Have animals that also spawn from the left and right side of the screen. If one of them hits you, “Game Over” should be logged to the console.
This will make the game much more exciting and requires the player to stay on their toes, especially if vertical movement is also implemented.
4. Hard: Game user interface
At the start of the game, display in the console that the player’s Lives = 3 and Score = 0. If the player feeds an animal, increase and display the Score. If the player misses an animal or is hit by one, decrease and display the Lives. When the number of Lives reaches 0, log “Game Over” in the console.
5. Expert: Animal hunger bar
Display a “hunger bar” on top of each of the animals. Then, each time you feed one of them, the hunger bar fills up a little. Each animal should require different amounts of food to successfully “feed” them. They should only disappear after their hunger bars are full.
6. Hints and solution walkthrough
Hints:
- Easy: Vertical player movement- Look at how we are doing the left and right movement range.
 
- Medium: Aggressive animals- Look at how we are currently spawning animals and doing collisions.
 
- Hard: Game user interface- You will need to update the score and lives in the DetectCollisions script, and update the lives in the DestroyOutOfBounds script.
 
- Expert: Animal hunger bar- You will need to add a UI Slider object in World space Render Mode as a prefab for each animal, then set the slider’s value through a script every time the animal is fed.
 
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
Submission Gallery

Food Boost
In this project, I initially attempted to complete the tasks independently, without following a step-by-step walkthrough. However, I eventually referred to the guide while working on the user interface (UI) implementation. During the process, I reviewed my previous approach to spawning objects on the left and right sides and noticed that it differed significantly from the recommended method. In my earlier version, both sides were implemented similarly to the top spawn, which resulted in a slightly longer script. On the positive side, this approach allowed the flexibility to use alternative Animal prefabs if needed. Ultimately, I decided to use the same prefabs provided in the original setup. The next challenge arose while developing the Game Manager script. I initially tried to implement the functionality without the walkthrough but encountered difficulties ensuring that the required Debug.Log messages—such as point updates, remaining lives, and the “Game Over” notification—appeared correctly. In the end, I relied on the step-by-step guide to complete this part successfully. Despite these challenges, the process was valuable for my learning experience. While researching and troubleshooting, I created a personal reference library that will serve as a helpful resource for future development projects.

Bonus Challenge 2
This challenge was to test my skills through progressive levels of game development! Easy: Implement smooth vertical player movement. Medium: Add aggressive animal behaviour for dynamic interactions. Hard: Design a functional game user interface (UI). Expert: Introduce an animal hunger bar system for advanced gameplay realism. Build, play, and master each level to become a true Unity pro!

Prototype2 with bonus features
I used everything that was asked in my own way, i forgot to show the console but it works. I used dogs and meat instead tho

Watermelon64 Feeds Animals Energy Drinks
I feed wildlife energy drinks (That's healthy for them I'm sure) that makes them magically disappear.

Food vs. Animals
This challenge was really fun, I learned a lot. I've changed up somethings, added food types, particle effects for when the game is over, and a UI for the the stats. Overall I'm pretty happy with the results!

Bonus Lesson
I made all for tasks: Easy: Vertical player movement Look at how we are doing the left and right movement range. Medium: Aggressive animals Look at how we are currently spawning animals and doing collisions. Hard: Game user interface You will need to update the score and lives in the DetectCollisions script, and update the lives in the DestroyOutOfBounds script. Expert: Animal hunger bar You will need to add a UI Slider object in World space Render Mode as a prefab for each animal, then set the slider’s value through a script every time the animal is fed.

Bonus Features 2
Finished

Feeding action
I tried to implement there everything what i know