def get_wall_tile(self, x, y):
# Is the neighbour in this direction also a wall?
- left = right = top = bottom = False
+ left = right = top = bottom = False
if x == 0:
left = True
elif self.data[y][x - 1] == WALL:
return load_image('tiles/end_left.png')
return load_image('tiles/pillar.png')
-
def blocked(self, pos):
if pos[0] < 0:
return True
def advance_to_next_level(self):
self._cur_level += 1
return self.get_current_level()
+
+ def reset(self):
+ self._cur_level = 0