The Turf Warrior


Today's release has some yummy changes (which I think is what the kids say these days)!

I fixed a number of bugs; most importantly I think I fixed a nondeterministic address error that crashed the game every 8 kicks or so. Debugging memory access in C is hard. In fact, it's so hard that most newer languages are specifically designed to protect the coder from memory access errors. But SGDK lives in the C ecosystem, so we must be careful of our pointers.

I don't even know specifically what was causing the problem; I tried to figure it out logically, but the non-deterministic nature of the bug made it really hard to find. Ultimately, the fact that the bug was non-deterministic suggested that the issue either had to do with running out of memory or utilizing uninitialized memory. It turned out to be the latter because the problem went away when I switched every malloc call to a calloc. I thought I was a hot-shot problem who could save a few cycles with malloc, but alas, I am not yet 1337.

Also, I started implementation on the boss fight. Check it out: scrolling! Ooooh!

Files

ctsfc0.0.21.bin 1.2 MB
Oct 06, 2023

Get Captain Tokusatsu's Social Football Conflict

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.