This is an interesting idea. There's a lot of little things I could nitpick, such as the snake's behavior if you throw the apple directly at it is really bizarre, but that's honestly really minor. The two big suggestions I have is a) add a final score screen that says "you got XXX points", as I won't necessarily see what my points counter was at when I die, and b) you need to have the difficulty ramp up more. I kinda overwhelmed the game with my strategy of "walk in a large circle", and ended up giving up instead of losing. Having something in there to act as a soft cap (eg, the enemy spawn rate becomes ridiculous) can help make this sort of game rather addicting to grind out high scores in.