The gist of this game is that it is a basic snake game with a twist. Your tail actually gains on you and you lose when it catches you. Collecting dots makes your tail longer so that you will have more time before your tail catches you. It works perfectly as it is but i do not like the way it runs.
Problem 1: Your score is based on time. A timer is started when you begin the game and is stopped when you lose. The problem is that you can pause the game but the timer does not pause. As of now when you pause, a second timer starts and then stops when you resume and then that amount of time will be subtracted from your final time. Is there a more efficient way to do this? because it takes up a lot of variables
Problem 2: It gets VERY slow on the higher levels. Every 30 seconds the level goes up and your tail gains on you faster. I did this using a for( loop. It will delete X amount of points off of your tail for every time your head moves one point. X being the level you are on. So when you get up to lets say level 5 it runs through and erases 5 points then moves your head then does it again. this results in a jerky head motion that become kind of hard to control. As i said… it works perfectly but it is very annoying. If someone could help me find a more efficient way to do this that would be a life saver to this program