You are browsing as a guest. Sign up (or log in) to start making projects!

9h 36m 2s logged

t h i n s n a k e

Devlog #6

Thin Snake!

Finally made the snake thin so it doesn’t turn into a blob.

It should NOT have taken 9 hours, but it really does take a long time to program in assembly. In order to figure out how to bend the snake, it checks the segment in front of the snake, packs the info into 2 bits, and then does the same thing for the segment behind the snake. Then, it does a switch statement (At least, the closest thing to a switch statement in assembly) of the 16 possible values from those 4 bits packed together and then hardcodes drawing the segment. This implementation is definitely a bit strange and not the best way to do it, but it was the first one that worked and I didn’t want to keep trying different methods (doing anything in assembly isn’t very pleasant)

(If the video looks super blurry, that’s because I recorded it at the original 320*240 resolution)

0
10

Comments 0

No comments yet. Be the first!