"elif'ed" the movement keys for the player.
This commit is contained in:
@@ -36,7 +36,7 @@ class WorldObject(object):
|
||||
|
||||
self.init_x = self.move_x = self.x = x - (x % self.tile_x)
|
||||
self.init_y = self.move_y = self.y = y - (y % self.tile_y)
|
||||
self.init_direction = self.direction
|
||||
self.init_direction = self.move_direction = self.direction
|
||||
|
||||
self.holding = None
|
||||
self.holder = None
|
||||
@@ -91,6 +91,8 @@ class WorldObject(object):
|
||||
if self.holding:
|
||||
self.holding.move(move_x, move_y)
|
||||
|
||||
self.move_direction = self.move_x, self.move_y
|
||||
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user