< back to index

SproingPads

When I first added the giant fan, there was a little bug in the player movement code:

If the player was grounded, they wouldn’t be blown upward by the fan. The updraft zone would affect the player’s Y velocity, but the players “grounded” state just ignores the velocity.

Then when you step off a platform, the player goes into “freefall” state which starts applying the proper velocity and…

… sproiiiiiing!

It was easy enough to fix.

But it made me laugh. It was really fun to see the cat getting flung up into the air like that. So I decided to turn it into a proper game feature.

Thus, sproingpads.