Code Asteroids in JavaScript (1979 Atari game) - tutorial

Опубликовано: 10 September 2026
на канале: freeCodeCamp.org
94,843
1.9k

In this JavaScript tutorial, you will learn to create the 1979 Atari game Asteroids from scratch using vanilla JavaScript.

❤️ Try interactive JavaScript courses we love, right in your browser: https://scrimba.com/freeCodeCamp-Java... (Made possible by a grant from our friends at Scrimba)

⭐️Contents⭐️

⌨️1. (0:00) Spaceship creation
💻JavaScript Template: https://drive.google.com/file/d/1W8vb...
💻Part 1 Code: https://drive.google.com/file/d/1Gpws...

⌨️2. (33:55) Astroids creation
💻Part 2 Code: https://drive.google.com/file/d/1Pw4_...

⌨️3. (58:40) Collision Detection and Explosions
💻Part 3 Code: https://drive.google.com/file/d/1G7uw...

⌨️4. (1:19:09) Shooting Lasers and Asteroid Destruction
💻Part 4 Code: https://drive.google.com/file/d/1xJj9...

⌨️5. (1:48:13) Levels, Lives, and Game Over
💻Part 5 Code: https://drive.google.com/file/d/1Wbq9...

⌨️6. (2:10:10) Scoring and Saving Data Locally
💻Part 6 Code: https://drive.google.com/file/d/1tcdb...

⌨️7. (2:20:24) Sound Effects and “Music”
💻Part 7 Code: https://drive.google.com/open?id=1tmj...

🔈 Sounds: https://drive.google.com/file/d/1iSyk...


Tutorial from Mt. Ford Studios. Check out their channel for more great tutorials:    / @mtfordstudios  

--

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com