I finished the player physics lab, and while it’s still rough around the edges, I think it’s a good place to stop for now. There are a lot of things to keep track of code-wise, but I think I was able to get a hold of it eventually.
I was able to add a double-jump (although there’s likely a better way) and here’s how I went about it:



The jump_count resets every time you touch the ground.
And 1 is subtracted from jump_count everytime you jump.
So, here is everything together. I also added the arm to the player (doesn’t follow the mouse yet) and changed how gravity and jump height is calculated so I could get more consistent jumps.
Thanks!