Return to repo list

tzed

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

commit 05e39c10f3fc47b0364367a6788d5e9891185e49
parent cb3bda8f9e7ae5dce0339ae649421d06ba919300
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Tue, 15 Jun 2021 12:29:04 -0500

complete exits and cleanup

Diffstat:
Mdata/img/overlay.png | 0
Msrc/entity.py | 6++++++
Msrc/envvars.py | 4++--
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/data/img/overlay.png b/data/img/overlay.png Binary files differ. diff --git a/src/entity.py b/src/entity.py @@ -107,6 +107,12 @@ class EntityManager(manager.Manager): cb = self.bus.fetch("board_manager", "current_board") if entity.overlay_type == "exit_north": self.game.switch_mode(STATE_MODES.Overworld_Mode, {"overworld_tile_pos" : cb.overworld_tile_pos, "direction" : (0, -1)}) + elif entity.overlay_type == "exit_south": + self.game.switch_mode(STATE_MODES.Overworld_Mode, {"overworld_tile_pos" : cb.overworld_tile_pos, "direction" : (0, 1)}) + elif entity.overlay_type == "exit_east": + self.game.switch_mode(STATE_MODES.Overworld_Mode, {"overworld_tile_pos" : cb.overworld_tile_pos, "direction" : (1, 0)}) + elif entity.overlay_type == "exit_west": + self.game.switch_mode(STATE_MODES.Overworld_Mode, {"overworld_tile_pos" : cb.overworld_tile_pos, "direction" : (-1, 0)}) def move_player_by_tile_offset(self, tile_offset): """ diff --git a/src/envvars.py b/src/envvars.py @@ -16,7 +16,7 @@ import os, enum, json, pathlib # Game settings SCREEN_WIDTH = 1024 SCREEN_HEIGHT = 768 -FRAMERATE = 60 +FRAMERATE = 30 OVERWORLD_BOARD = "test_ow" # Tile settings @@ -34,7 +34,7 @@ FONT_PATH = os.path.join(DATA_PATH, "font") TILE_PATH = os.path.join(DATA_PATH, "tsx") BOARD_PATH = os.path.join(DATA_PATH, "boards") JSON_PATH = os.path.join(DATA_PATH, "json") -SAVE_PATH = os.path.join(str(pathlib.Path.home), ".local", "share", "heart-of-gold", "savegames") +SAVE_PATH = os.path.join(str(pathlib.Path.home), ".local", "share", "tzed", "savegames") # Stats constants # TODO: Could be totally changed going forward