game: fix: w up, s down

This commit is contained in:
starnakin 2024-03-04 13:28:31 +01:00
parent 96aba81e23
commit f3bbad9eb9

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) if (rail.start.y < rail.stop.y)
{ {
this.upKeys.push("w"); this.upKeys.push("w");
this.downKeys.push("s"); this.downKeys.push("s");