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



Duration: 18:13
865 views
11


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


2015-09-06Fix: Windows cannot be installed to this disk
2015-09-06Magic Monk's new desktop microphone: Razer Seiren
2015-08-28How to speed up Windows 10 step 3 - Clean Install Windows 10
2015-08-28How to speed up Windows 10 step 2 - Install a new SSD
2015-08-27Windows 10 tips - how to schedule computer to sleep automatically
2015-08-26How to speed up Windows 10 step 1 - create windows 10 bootable disc
2015-08-23Recycle bin won't empty in Windows fix
2015-08-20Shut down computer automatically after copying / moving files
2015-08-17How to install an external microphone to your video camera
2015-08-16Upgrade to Windows 10 from Windows 8.1
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 8 - Randomly generating enemies
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 7 - Firing bullets
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 6 - Groups of Objects
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 5 - Collision Detection
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 3 - Moving object with arrow keys
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 4 - Animation with spritesheets
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 2 - Importing Sprites
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 1 - Setting up game dimensions
2015-08-02Lego Mindstorms EV3 Space Challenge Mission 3 tutorial
2015-08-02Lego Mindstorms EV3 Space Challenge Mission 2 tutorial
2015-07-27Lego Mindstorms EV3 Space Challenge Mission 1 tutorial



Tags:
html5 collision detection
javascript game enemies
phaser enemies
phaser randomly generating enemies