![]() Important note: I will answer questions about the code but will not add more features or answer questions about adding more features. Improve it so it only spawns in empty grid locations Currently the apple spawns in any random grid in the game, even if the snake is already on that spot. ![]() Allow the game to be scaled down to a phone size.Use context.fillText() to display the score to the screen When the snake eats an apple, the score should increase by one.This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader. Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |