"elif'ed" the movement keys for the player.

This commit is contained in:
Sakse Dalum
2012-08-09 14:04:50 +02:00
parent 781573dd9d
commit 9fe46b6f44
2 changed files with 10 additions and 8 deletions

View File

@@ -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