add TODO about setting ySpeed = 0 in head-bonk
GitOrigin-RevId: 657d92ebbd303e3da4375ad23dfaf403025622cf
This commit is contained in:
parent
2f75847615
commit
ea07fc146b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user