New Snake Habitats near You
Devlog #2
Drawing the grid
I drew a grid for the snake to move on.
The code for the nested loop is not readable at all, but then again, it’s in assembly, no matter how you write it it’s unreadable.
CAUTION: Please do not touch or feed snakes, or the DX register.
I had an issue with the rectangle size being 0, because the size is passed to the drawing function through the DX register and I forgot that the MUL instruction doesn’t just store the result in AX, but also the DX register. This part sounds a bit weird but the stardance devlog guide says to “Include the friction”
Dull Devlogs
I know these devlogs may seem uneventful or dull, but writing anything in assembly is a hard task. It took me over an hour to draw a grid!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.