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
Get Captain Tokusatsu's Social Football Conflict
Captain Tokusatsu's Social Football Conflict
Soccer! Golf! 4-Player! Explosions! RPG Elements!
Status | Released |
Author | Safety Stoat Studios |
Genre | Action |
Tags | Football, Homebrew, Local Co-Op, Local multiplayer, Mega Drive, Sega Genesis, Soccer |
More posts
- CTSFC Now FreeNov 26, 2023
- Day 1 PatchOct 28, 2023
- Ship it 🤷Oct 28, 2023
- Songs!Oct 27, 2023
- Making Dashing Feel FunOct 26, 2023
- MORE ART!Oct 25, 2023
- Animations!Oct 24, 2023
- Good News Everyone!Oct 21, 2023
- RestlessnessOct 19, 2023
- Rotating the ellipseOct 17, 2023
Leave a comment
Log in with itch.io to leave a comment.