Hi, I'm a bit new... I am making a snake game, and am trying to do it so that everytime a key is pressed, it creates a new variable and puts the x or y coordinate in it. How do I do this without creating like a thousand variables?
I would be really grateful if you could help me.
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)