Coding Challenge #46.2: Asteroids with p5.js – Part 2
This video is Part 2 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 “laser” functionality and examine collision detection with 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 1: https://youtu.be/hacZU523FyM
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)
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/1ZnZ/
source