Closed ramazansancar closed 1 year ago
The around4 const is used to iterate over all directions. It's used in several places to traverse the grid. I don't think it does what you think.
What do you want to achieve ?
The around4 const is used to iterate over all directions. It's used in several places to traverse the grid. I don't think it does what you think.
What do you want to achieve ?
I want to make the square shape of the snake triangular.
Ok, then you might want to look at https://github.com/Platane/snk/blob/main/packages/svg-creator/snake.ts ( for svg rendering )
I created the code for the triangle svg drawing. However, I have no idea how to proceed. Can you help me?