0

Snake game, basic need to know; and basic functionality needed......USING JAVASCRIPT

i know basic javascript, but I want to develop a snake game, I just need concept and functions to be used, I want to connect them by myself, so all those who can provides tips, hints , concept, function or related detail, are welcomes.....thanx for ur great help....

1st Jul 2017, 6:12 PM
ASHISH PANDEY
ASHISH PANDEY - avatar
3 odpowiedzi
+ 2
You can use the Udemy course already mentioned, it's http://code-your-first-game.com That also helped me with my first JavaScript game, https://code.sololearn.com/Wo6A070fm13c/?ref=app For snake, you just need to create a grid and store the position of the head (you could first start with only the head --> only one point) then, you create an array and store the last x positions in it (e.g. the last 5 positions if the length of the snake is 5) I hope this helps (The guy who made the Udemy course also uploaded a video on snake in JavaScript, his YouTube channel is "Gamkedo")
2nd Jul 2017, 9:23 AM
JtheDroid
JtheDroid - avatar
+ 1
You need to know html5 canvas. You can study about in in MDN. Also, there's a free course on html5 canvas game programming in udemy. Maybe check that out?
1st Jul 2017, 9:32 PM
Salekin
Salekin - avatar
0
OK , that's fine...
2nd Jul 2017, 12:38 AM
ASHISH PANDEY
ASHISH PANDEY - avatar