Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to recreate the classic 1979 Atari game Asteroids from scratch using vanilla JavaScript in this comprehensive tutorial. Begin by creating the spaceship, then move on to generating asteroids and implementing collision detection with explosions. Develop the shooting mechanics for lasers and asteroid destruction, followed by adding levels, lives, and game over functionality. Implement a scoring system with local data saving, and finally, enhance the gaming experience by incorporating sound effects and background music. Access provided code snippets and resources for each section to follow along step-by-step, covering everything from basic game mechanics to advanced features in approximately 2-3 hours.
Syllabus
) Spaceship creation.
) Astroids creation.
) Collision Detection and Explosions.
) Shooting Lasers and Asteroid Destruction.
) Levels, Lives, and Game Over.
) Scoring and Saving Data Locally.
) Sound Effects and “Music”.
Taught by
freeCodeCamp.org