Coding Challenge #115: Snake Game Redux
Snake Game!? Again!? Now with the p5.js Web Editor! Code: https://thecodingtrain.com/challenges/115-snake-game-redux
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/HkDVpSvDm
π₯ Previous video: https://youtu.be/67k3I2GxTH8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/--6eyLO78CY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π p5.js: https://p5js.org/
ποΈ The p5.js Web Editor: https://editor.p5js.org/
π Hello p5.js Web Editor!: https://medium.com/processing-foundation/hello-p5-js-web-editor-b90b902b74cf
Videos:
π OOP with ES6: https://youtu.be/xG2Vbnv0wvg
π₯ Livestream Archive: https://youtu.be/wTDDsOZwdQY
Related Coding Challenges:
π #3 The Snake Game: https://youtu.be/AaGK-fj-BAM
π #173 AppleSoft Basic Snake Game: https://youtu.be/7r83N3c2kPw
Timestamps:
0:00 Introducing the p5.js Web Editor!
1:18 What is the snake game?
2:01 Creating the Snake class
7:55 Adding the keyboard controls
10:56 Scaling the snake by a variable resolution
12:50 Adding the food
16:03 Eating the food!
18:30 Making the snake grow on eating food
27:48 Adding conditions for the game over state
32:50 Playing the game and things you could do!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#beginners #snake #games #vectors #arrays #objectorientedprogramming #p5js #javascript