Fixed blit_area bug.

This commit is contained in:
Niels Serup 2012-08-13 21:47:15 +02:00
parent c402c342b8
commit 5235112424
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,8 @@ class Block(worldobject.WorldObject):
width=1, height=1, blit_area=None):
self.__dict__.update(locals())
worldobject.WorldObject.__init__(self, level, x, y,
movable=movable, visible=visible)
movable=movable, visible=visible,
blit_area=blit_area)
for i in range(width):
for j in range(height):

View File

@ -31,7 +31,8 @@ import copy
class WorldObject(object):
def __init__(self, level, x, y, z=0, direction=(1, 0), speed=4,
tile_x=64, tile_y=48,
movable=False, blocking=True, is_moving=False, visible=True):
movable=False, blocking=True, is_moving=False, visible=True,
blit_area=None):
self.__dict__.update(locals())
self.init_x = self.move_x = self.x = x - (x % self.tile_x)