Javascript games programming using Phaser in Dreamweaver lesson 8 - Randomly generating enemies
Channel:
Subscribers:
65,900
Published on ● Video Link: https://www.youtube.com/watch?v=-YChVEIW10U
In this lesson we show you how to generate enemies periodically (i.e. every 3 seconds) at random locations on the screen, and how to prevent enemies from being generated at the same location as your player (using a while loop). We then talk about how to check for collisions between your bullet and the enemy so when your bullet hits any of the enemies, that particular enemy and the bullet will both destroy.
Other Videos By Magic Monk
Tags:
html5 collision detection
javascript game enemies
phaser enemies
phaser randomly generating enemies