Coding Challenge #46.1: Asteroids with p5.js – Part 1



This video is Part 1 of a new Coding Challenge: the classic Atari video game Asteroids! In this video, I use JavaScript and HTML5 canvas with the p5.js library to program the ship and the asteroids.

This video is also part of a collaboration with YouTuber Siraj from Sirajology (https://goo.gl/tmFNre). He will program a machine learning bot to play the Asteroids game.

Asteroids Part 2: https://youtu.be/xTTuih7P0c0
Link to Sirajology’s video: COMING SOON

Support this channel on Patreon: https://patreon.com/codingtrain

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics

Contact: https://twitter.com/shiffman

Asteroids original code: https://github.com/CodingTrain/Rainbow-Code/tree/master/CodingChallenges/CC_46_Asteroids
Asteroids Code with community submitted features:
https://github.com/CodingTrain/Asteroids
Play the game!
https://codingrainbow.github.io/Asteroids/

Links discussed in this video:
Asteroids on Wikipedia: https://en.wikipedia.org/wiki/Asteroids_(video_game)
My Trigonometry and Polar Coordinates video: https://youtu.be/znOBmOrtz_M
Sirajology’s channel: https://goo.gl/tmFNre

Source Code for the all Video Lessons: https://github.com/CodingTrain/Rainbow-Code

For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
For an Introduction to Programming and p5.js: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

Help us caption & translate this video!

http://amara.org/v/1XkE/

source

Reply


Build A Site Info