Unity Learn home
View Tutorial Content

Challenge 5 - Whack-a-Food Game

Tutorial
Beginner
+10 XP
1 Hour
(19)
Overview
For Educators
Summary
Challenge Overview:
Put your User Interface skills to the test with this whack-a-mole-like challenge in which you have to get all the food that pops up on a grid while avoiding the skulls. You will have to debug buttons, mouse clicks, score tracking, restart sequences, and difficulty setting to get to the bottom of this one.
Challenge Outcome:
  • All of the buttons look nice with their text properly aligned
  • When you select a difficulty, the spawn rate changes accordingly
  • When you click a food, it is destroyed and the score is updated in the top-left
  • When you lose the game, a restart button appears that lets you play again
Select your Unity version
Last updated: June 10, 2020
2018.4
Language
English
Challenge 5 - Whack-a-Food Game