Log In  


Day 1

Cart #pobujusego-0 | 2025-09-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Starting a small snake game as a (hopefully) short first project. Hoping to do a series of classic games (snake, pong, flappy bird, etc) and make a blog post about each, maybe going into design decisions, what I learned, what I'd do differently next time. Or maybe the blog posts mentioning them would just link to here, idk 😆

I'll be using this post to save my day-to-day progress, and keep plugging away at it until it's done! Hopefully tomorrow, or maybe the next day! 😆

Right now it does absolutely nothing except initialize the grid and the snake's head though. 😆



spr() can flip on axis x/y, so you can draw only 1 head and flip it with your needs.

SPR(N, X, Y, [W, H], [FLIP_X], [FLIP_Y])

I was thinking about that, but I'd still need two sprites, one to flip horizontally, and the other to flip vertically; A snake facing right couldn't be flipped vertically for example, it would still be facing right 😅
If I'm ever concerned with sprite space I'll just delete the first four, then use the 5th as the body and the head, drawing the eyes individually in code. Should only be two pset()s after all 😆



[Please log in to post a comment]