I've spent a lot of time improving this program. Please show appreciation by liking the project. In case you have any suggestions please reply in the comments... Is there a way I can stop the game if the snake goes through itself? I tried using the touching colour and the colour touching colour blocks, none of them worked. Please reply in the comments... Controls: Use Arrow Keys to move your snake Eat the apple to increase your score Don't touch the edges Updates Log: v1. Basic Snake Game v2. The speed of the snake will increase by 0.1 every time the snake eats the apple v3.1. Added greetings in the start v3.2. The snake now tells you your score in the end v4.1. Added the GAME OVER screen once the player touches the edge v4.2 Animated the GAME OVER screen v5. The snake won't tell you the score anymore, you can see it in the variable though. v6.1. You can now press space to play again v6.2 You can only restart the game once the GAME OVER screen shows up v7.1. Added World Record Cloud Variable v7.2. Added World Record Holder Cloud Variable v7.3 Tested the Cloud Variables - FAILED! The Cloud Variables reset every time the Green Flag is clicked or the page is refreshed :/ v7.4. Problem solved! The cloud variables are working properly now! You can see the (☁ World Record) and the (☁ World Record Holder) variables when the game is over :D v7.5 Well, the (☁ World Record Holder) wasn't working as cloud variables can't store texts. I've removed the cloud variable for now.
Thanks to @XMEGALUCARIOX for helping me with how to restart the game when the user presses the space key!