problem with my code
Posted: Sat Mar 07, 2020 10:01 am
Hey there! I'm fairly new to LOVE and lua. To get started I've been following a tutorial on how to create the game 'snake'. I tweaked the code here and there to change the properties of the game more in my liking. Following that tutorial I added a collision detection if the snake is still alive or has died. However after adding the collision detection the snake refuses to move which it did before. Since I'm new to LOVE and lua I coulnd't figure out what's wrong with my code.
What is wrong with my code so that the snake doesn't move? I would be grateful if you could look into the code and tell me what I have to edit in order for the code to work properly
Thanks in advance!
(the (German) tutorial I followed along: https://www.youtube.com/playlist?list=P ... YPtfBVTFT8)
the main.lua file containing the code should be attached to this thread
What is wrong with my code so that the snake doesn't move? I would be grateful if you could look into the code and tell me what I have to edit in order for the code to work properly
Thanks in advance!
(the (German) tutorial I followed along: https://www.youtube.com/playlist?list=P ... YPtfBVTFT8)
the main.lua file containing the code should be attached to this thread