Very impressive for a vanilla HTML, CSS, and Javascript game! I'm curious as to how you approached optimizing it, since theres quite a bit of input delay when gravity switching. Is that intended?
Thanks! There's actually no input lag—the tap flips gravity immediately, but it doesn't reset the current vertical velocity, so momentum carries you briefly before reversing. I wanted the movement to feel smooth rather than an instant snap!