Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Waves

Published 2 years ago

When we run out of enemies (whether they've all been shot at or they've reached the end of the path), we need a way to bring more into the game. With some simple collision detection code and enemy count monitoring, we can spawn more enemies whenever a certain set of conditions are met.

  • 0:00 Refactor enemy spawn into function

  • 3:41 Spawn more enemies each round

Comments

Want to participate?

Create a free Chris Courses account to begin

Login

No comments yet, be the first to add one

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.