Coding Challenge #115: Snake Game Redux

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=OMoVcohRgZA



Duration: 35:04
176,136 views
3,606


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







Tags:
programming
daniel shiffman
tutorial
coding
the coding train
snake game
snake game html5
snake game canvas
snake game browser
snake game js
snake game javascript
js game
javascript game
snake game p5.js
snake game p5
snake game shiffman
snake game coding
game coding
game programming
video game
coding challenge
coding train
creative coding
live stream
code challenge