mirror of
https://github.com/libretro/lutro-platformer.git
synced 2024-11-23 16:19:46 +00:00
Fix booleans, fix compatibility with LOVE
This commit is contained in:
parent
d968db3fb1
commit
0447001e3b
@ -102,8 +102,8 @@ function ninja:update(dt)
|
||||
self.x = self.x + self.xspeed * dt;
|
||||
|
||||
-- decelerating
|
||||
if not (JOY_RIGHT == 1 and self.xspeed > 0)
|
||||
and not (JOY_LEFT == 1 and self.xspeed < 0)
|
||||
if not (JOY_RIGHT and self.xspeed > 0)
|
||||
and not (JOY_LEFT and self.xspeed < 0)
|
||||
and self:on_the_ground()
|
||||
then
|
||||
if self.xspeed > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user