Summary
I tried to recreate a classic snake game in p5. Which used arrow keys to move, the snake moves at a fixed speed, grow +1 every time it reaches the food, the food spawns at a random location and the game's over when the snake eat itself.
Here's my code: https://editor.p5js.org/haichau2k/sketches/-7Z_2mfzt


