add TODO about setting ySpeed = 0 in head-bonk

GitOrigin-RevId: 657d92ebbd303e3da4375ad23dfaf403025622cf
This commit is contained in:
Colin McMillen 2020-01-17 21:43:44 -05:00
parent 2f75847615
commit ea07fc146b

View File

@ -60,6 +60,7 @@ namespace SemiColinGames {
if (oldPosition.Y > position.Y) { if (oldPosition.Y > position.Y) {
int diff = playerBbox.Top - rect.Bottom; int diff = playerBbox.Top - rect.Bottom;
position.Y -= diff; position.Y -= diff;
// TODO: set ySpeed = 0 here so that bonking our head actually reduces hangtime?
} else { } else {
standingOnGround = true; standingOnGround = true;
int diff = playerBbox.Bottom - rect.Top; int diff = playerBbox.Bottom - rect.Top;