Return to repo list

tzed

Simple story-driven open world 2D CRPG.
Return to HMagellan.com

commit 585e05ac6c88003ca0f8ad3bdbf9e8ac226fa55a
parent 38b0cee05e7c23d8b44cf60f0943b6a5a8e9b938
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Sat,  2 Oct 2021 21:34:33 -0500

loading from encount file

Diffstat:
Msrc/dungeon.py | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/dungeon.py b/src/dungeon.py @@ -74,9 +74,6 @@ class Dungeon(object): if workcell["pass"] and newcell[1] >= 0 and newcell[1] < self.maze_height and newcell[0] >= 0 and newcell[0] < self.maze_width and self.layout_definition[self.current_floor][newcell[1]][newcell[0]] != None: self.current_cell = newcell - # Refresh the view - self.construct_dungeon_view() - def rotate_direction(self, mod = 1): """ Rotate in a left or right motion. @@ -87,8 +84,6 @@ class Dungeon(object): elif self.direction > 3: self.direction = 0 - self.construct_dungeon_view() - def construct_dungeon_view(self): """ Construct a visual display of the current @@ -121,6 +116,9 @@ class Dungeon(object): be called by the Interface or perhaps by the Game object. """ + # Refresh the view + self.construct_dungeon_view() + # Post-refresh game method calls self.game.pass_time() self.game.generate_party_graphics()