Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

It doesn't really look and feel like I've made a lot of progress (especially in comparison to some people [*cough*cough* Twinbeard]), but then again I probably really have. I mean, check this out.

That chicken is on the move! It can jump twice. It can fall into the abyss and nothing happens because I'm not there yet.

But at least it's only falling into the abyss when it falls off a line, rather than straight through it. That was some fun investigation and debugging for me to try out, and really in the end I found out what's going on but not really why, and I patched it with a hack. A temporary one, I'm sure. And something that will never come back to bite me.

As I mentioned on le Discord, my biggest issue with this sort of event-loop programming (which I honestly only do with things like PICO-8 or p5.js) is that I don't have any good ideas about how to test it other than "let's run it and see", with a smattering of "let me set up state and jump right to the part I care about". I'm not so much testing as I am trying. And sure, I have plenty of experience in various modes of debugging, including the time-honored tradition of "print out a bunch of stuff to a log file" (yay `printh`), but it's still a whole process.

Btw, you should've seen what this looked like with my early attempts to extend the playing area to the left. It was really something. Long story short, `rnd` does some unexpected stuff if you give it a negative number, most especially if you're not thinking about the fact that you're giving it a negative number.

Stats:

  • 17 commits
  • 1640 tokens
  • 7839 chars
  • 2981 compressed