game: fix: w up, s down

This commit is contained in:
starnakin 2024-03-04 13:28:31 +01:00 committed by AdrienLSH
parent 766585c4d0
commit 8a7866aefa

View File

@ -38,7 +38,7 @@ class MyPlayer extends Player
}
if (rail.start.y != rail.stop.y)
{
if (rail.start.y > rail.stop.y)
if (rail.start.y < rail.stop.y)
{
this.upKeys.push("w");
this.downKeys.push("s");