Unity Learn home
View Tutorial Content

Challenge 4 - Scripting Soccer

+10 XP
1 Hour
Challenge Overview:
Use the skills you learned in the Sumo Battle prototype in a completely different context: the soccer field. Just like in the prototype, you will control a ball by rotating the camera around it and applying a forward force, but instead of knocking them off the edge, your goal is to knock them into the opposing net while they try to get into your net. Just like in the Sumo Battle, after every round a new wave will spawn with more enemy balls, putting your defense to the test. However, almost nothing in this project is functioning! It’s your job to get it working correctly. As you do so, you will combine what you have learned about test scripts, exploratory testing, and bug reporting and practice all three throughout the challenge.
Challenge Outcome:
  • Enemies move towards your net, but you can hit them to deflect them away
  • Powerups apply a temporary strength boost, then disappear after 5 seconds
  • When there are no more enemy balls, a new wave spawns with 1 more enemy
Select your Unity version
Last updated: July 17, 2020
Challenge 4 - Scripting Soccer