JavaScript Asteroids

JavaScript AsteroidsIn this one video I make Asteroids using pure JavaScript. I structured everything so you will completely understand every line of code.

If you want to make games you have to know how to make Asteroids! It requires you to understand moving in a 3D space, collision detection, inertia, velocity, rotating shapes using math instead of rotating the canvas, reacting immediately to user input, animating polygons, creating and destroying objects, trigonometry, and numerous other related topics!

Unlike most everyone I take the time to edit my videos. That means I cover the same amount in 1/3rd of the time. I provide all the heavily commented code below. For best results print it out and pause your way through the video while taking notes. The Asteroids game is available here to play.

If you value these videos consider donating $1 on Patreon. I promote my Patreon supporters in my descriptions and provide many videos only available Patreon to thank them for their support.

Code from Video
I added the homework solutions to the code below

Leave a Reply

Your email address will not be published.

Google+