Get 20% off all career paths from fullstack to AI
AI, Data Science & Cloud Certificates from Google, IBM & Meta
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