Snake game from YouTube- Help please

Hello everybody! Im trying to create Snake Game according to your tutorial in you tube. And i’m trying to make starting position of Shake Head with 2 cells const gridSize = 20; let snake =**[{ x: 10, y: 10 }, { x: 9, y: 10 }];** let food = generateFood(); let highScore = 0; let direction = 'right'; let gameInterval; let gameSpeedDelay = 200; let gameStarted = false;

but when Im starting to move snake -only one cell starts to move. Question: What to code to make these two cells would move together in one direction? now it looks like that====>

P.S I’m also trying to code in OOP , but idea, I believe , the same…

post your code, post a link to the code, there is not enough information to know what’s going on in your post

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.