Moat has been added to level 1.
This commit is contained in:
@@ -31,7 +31,7 @@ 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):
|
||||
movable=False, blocking=True, is_moving=False, visible=True):
|
||||
self.__dict__.update(locals())
|
||||
|
||||
self.init_x = self.move_x = self.x = x - (x % self.tile_x)
|
||||
@@ -41,6 +41,8 @@ class WorldObject(object):
|
||||
self.holding = None
|
||||
self.holder = None
|
||||
|
||||
self.is_currently_opaque = True
|
||||
|
||||
if hasattr(self, 'img'):
|
||||
self.img = copy.copy(self.img)
|
||||
|
||||
@@ -98,6 +100,9 @@ class WorldObject(object):
|
||||
def activate(self, setting):
|
||||
pass
|
||||
|
||||
def update_alpha(self):
|
||||
pass
|
||||
|
||||
def set_alpha(self, value):
|
||||
"""
|
||||
Set the relative translucency of the per-pixel-alpha image.
|
||||
|
||||
Reference in New Issue
Block a user