Whack A Food 2D Game

Image of coding environment  featuring Unity and Visual Studio
Working in Unity with Visual Studio Integration Development Environment

In this Unity learning challenge I put my 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. I was required to debug buttons, mouse clicks, score tracking, restart sequences, and difficulty setting to get to the bottom of this one. I tested theĀ  application, made a log of any errors/bugs in the code and gameplay. Using C# scripting andĀ  utilizing various Unity APIs, I completed the debugging, diagnosing and fixing code that compiles but fails to perform as expected.

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

https://meta.dwdenney.com/whackafood/

Leave a Reply