Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Make JavaScript Asteroids Game

Derek Banas via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course builds an Asteroids game from scratch in pure JavaScript. It covers canvas rendering, event handling, movement and rotation, trigonometry, animation, object creation, scoring, lives, and collision detection.

Syllabus

Intro
Required Files
Writing the JavaScript
Event Listener
Setup Canvas
Render Function
Update Function
Trigonometry
Moving the ship
Rotating the ship
Adding bullets and asteroids
Adding bullets
Drawing the nose
Draw
Create Asteroid
Create Arrays
Render
Collisions
Life Ships
Display Score
Collision
Collision with Bullets

Taught by

Derek Banas

Reviews

Start your review of Make JavaScript Asteroids Game

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.