
Coding Challenge #115: Snake Game Redux
The Coding Train
Views: 152852
Like: 3136
Snake Game!?!? Again!? Now with the p5.js Web Editor!
💻Code:
Links discussed in this challenge:
🔗 p5.js Web Editor:
🔗 Hello p5.js Web Editor!:
🎥 Coding Challenge #3 – Snake Game:
🎥 ES6 Classes:
🚂Website:
💡Github:
💖Membership:
🛒Store:
📚Books:
🖋️Twitter:
Video editing by Mathieu Blanchette.
🎥Coding Challenges:
🎥Intro to Programming using p5.js:
🔗 p5.js:
🔗 Processing:
📄 Code of Conduct:
🌐Help us caption and translate:
🚩Suggest Topics:
👾Share your contribution:
03.01.2022
Great video! I made an A* based snake AI: https://editor.p5js.org/WilliamP5/full/MJ4bcGoKr 🙂
Man, is a switch that terrible ?? C'on !
That's the last time I show you, you brat !
switch(key){
case LEFT_ARROW:
blablabla….
break;
case RIGHT_ARROW:
blablabla….
break;
case UP_ARROW:
blablabla….
break;
case DOWN_ARROW:
blablabla….
break;
default:
}
Just started coding and found your vids! Can you tell me what the cloudflare.com in the HTML are for? I tried it without them and it wouldn't work, so what vital function do they server how would I make this without sourcing Cloudflare?
try to play it blindfolded 😉
Your coding practises are so bloody bad
i live the channel but i really don like how this tutorial is basically useless outside of p5
I created Snake in Processing (the external joystick feature only works w/ my joystick)
https://pastebin.com/d7CJ0KH4
i dont know javascript language 🙁 but I know python language 🙂
hey guys, this is mine code for the Snake game : https://editor.p5js.org/thien/full/AiI8LqpG-
"aw i forgot how to do this already" 8:04 i died
I’ve currently been learning JS!
I love your videos !
Is this javascript or another type of javascript cuz I don't feel like it's javascript.
Oh okey i had done preatty the same game in P5 3 months ago, and after that i get to this video today 😀
https://editor.p5js.org/miudi12732/full/61PU-fTkk
Why #Redux in the title ?
This is better!
THANK YOU SO MUCH BROOO
How can I make a "game over text"
He predicted Endgame
Him: *advanced coding
Me: Print('hello world');
Amazing.
As usual.
If anyone's snake is dying when it eats food make sure the order you call them is "check for food eat", "update", "show" and then "check for d̶e̶a̶t̶h̶ sorry 𝒐𝒖𝒕
"
Took me a while to figure that out.
Can you do a video showing how to add a scoreboard? I cant find any tutorials on this…
Uncaught ReferenceError: Snake is not defined (sketch: line 5)
it is writen there
I cannot control my snake and I followed your code carefully. I will get creative later, I'm just getting the basics first.
its not letting me create a snake.js file it says it can not contain extension meaning i can't use .js
12:48 Left food😂😂
Very interesting but so much complication
14:25 FoolLocation 😂😂😂😂😂😂
27:54 Please don't you're a legend!!
You did the whole snake game again and still not fixed that going backwards problem. I don't know how I feel about that. XD
"don't at me. somebody taught me that who's younger than me." lol this was by far the most entertaining js tutorial I've seen!! thank you!!
i m new coder of 10 year old and sorry for watching this video very late .
but i love your coding technique.
not working
Hey Vsauce, Michael here! 27:54 ?
Hey Daniel, when I write a while loop in the p5.js web editor, it crashes.
28:13 end game
제껀 작동이 전혀 앙돼욥.
Coding Challenge #115 :
Snake Game Redux인데욥,
코드를 제대로 썼는데도 작동이
앙돼용.
@shiffman you could define a getter for the head eg. like this:
get head () [
return this.body[this.body.length – 1];
}
Then you could replace all your other this.body[this.body.length – 1] calls with just this.head 😉
Check out latest video: https://www.youtube.com/watch?v=ttGxFB3wbxk&list=UUq0RcOsT1RIhq64nfZ_-pqQ&index=1
4:09 bruh it's called method not function
Method is function but in a class, BTW I am not a heater I love the way he teaches
avengers: we need another name for our movie??
Coding train: 28:00
that's it !
How did you get the console tab
Gm
Hi is there a way to use p5.js in a react native app? If its possible, could you please show us an example?
What are the odds of the intro 😅 I'm starting grade 9 on Tuesday 😅
Still the best coding channel on youtube. So much positive energy and humor =)))
You are The Best!!
34:00 "A bug or a feature?"
When you code I feel that you are at mu home and teaching me for fun without taking any fees just like free coaching or free tuitions