Bee Physics

Tonight, in our third Game Jam Friday (Friday Night Jam? Whatever it was called) Sara finished the graphics for the kitchen! Which is really exicting, and I’ll publish the updated game tomorrow!

But that’s not all - I spent like four hours working on bee physics. I’ve clearly been away from the mathy side of game development for a while, and after a few rough attempts at getting a bee to fly around correclty, I figured out an approach that should seem pretty natural: The bee has a point he wants to go, and an angle he’s currently travelling in. Each step, he takes figures out the angle he wants to be travelling, then turns as far as he can in that direction. His velocity increases if he’s not turning much, but decreases the harder the turn was. The point he wants to reach is fixed, but he’ll avoid your mouse if possible unless you’re holding the item he wants, in which case he’ll travel toward your mouse instead.

That sounds pretty reasonable, but I think I’m doing something wrong geting the angle between two points, as it isn’t working like I expect.

I also got an issue opened on github earlier this week asking for a license to be added to the game’s repo, which is wild; I didn’t realize anyone would care to look at the source. So that’s coming soon too I guess.

It’s now after midnight, my energy drink (bang! if you were wodnering) is wearing off, and I’m turning in. Update should be published tomorrow.