PolyMarsDev / Flappuccino

A Pygame game made in 48 hours
355 stars 123 forks source link

Make camera stop on death #45

Open CaptainChicky opened 1 year ago

CaptainChicky commented 1 year ago

Since you'd just infinetely fall on death, I figured it would be better to stop the camera on death.

I've seperated the camera and player calculations (and improved some formatting) so when you die, the camera stops and you just drop below the screen, but the background stays there.

Note that afaik the player's still being rendered so ig this might be a slight nuance but whatever

Also added some standard fixes of the imports and a gitignore

JacobKnox commented 1 year ago

Interesting that you chose to separate the camera and the player to accomplish this. On my fork, as far as I remember, I simply made the player stop if they hit a certain point so basically you hit the ground and just lay there lol.