From: Neil Date: Thu, 18 Apr 2013 12:05:19 +0000 (+0200) Subject: Validate levels during gameplay X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=d2b86a7f0e4769f2de802018250474e2eb1a0821;p=erdslangetjie.git Validate levels during gameplay --- diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 71ef53b..5cd9b7f 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -25,6 +25,7 @@ class GameWindow(RelativeLayout): def __init__(self, level_list, app): self.level_list = level_list self.level_obj = self.level_list.get_current_level() + self.level_obj.validate() self.level_obj.load_tiles() self.tiles = {} self.view = app.root @@ -206,6 +207,7 @@ class GameWindow(RelativeLayout): self.remove_widget(self.nemesis_tile) self.nemesis.reset_pos() if self.level_obj: + self.level_obj.validate() self.level_obj.load_tiles() self.player.pos = self.level_obj.enter_pos self.remove_widget(self.player_tile)