AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Javascript snake9/2/2023 Also, you check for game over inside your draw call. It is probably better (and easier to maintain), if you seperate these. That might improve readability in some places.Ĭurrently your update logic seems to be mixed with your draw logic. You can help me out by mentioning bad practices, giving code improvements and suggesting anything else. Now it's time to improve the coding practice. I have not considered best practices when doing this, I just wanted to finish it first. I created a classic snake game in the canvas element.
0 Comments
Read More
Leave a Reply. |