JS Asteroids Game Part 4 (Shooting Lasers and Asteroid Destruction)
Mt. Ford Studios
In the fourth part of this JavaScript Asteroids Game tutorial series, we allow the player to press the space bar to shoot a laser from the nose of the ship! As per the original game, the asteroids split in two until they become small enough to break apart completely. We also add a cool blast radius effect when the laser strikes an asteroid!
If you liked the original 1979 Atari game, Asteroids, go ahead and download the code below and create your own cool web-browser game!
CODE Previous tutorial (Asteroids Part 3 – Collision Detection and Explosions): https://drive.google.com/open?id=1G7uwqyL1rMUHYUN_ogH7Zx3oHr0jZIs9 This tutorial (Asteroids Part 4 – Shooting Lasers and Asteroid Destruction): https://drive.google.com/open?id=1xJj9OnoXm1kuZyDVnmO9JyMB6e9CSGje
USEFUL LINKS Coderwall – Remove items from Array while iterating over it: https://coderwall.com/p/prvrnw/remove-items-from-array-while-iterating-over-it Visual Studio Code: https://code.visualstudio.com/
FIND US ON FACEBOOK https://www.facebook.com/MountfordStudios/ ... https://www.youtube.com/watch?v=4BA2NkmcmhY
78934612 Bytes