tzed

Simple story-driven open world 2D CRPG.
Log | Files | Refs | README | LICENSE

commit 68de58157df92d177f66cfdde80f4acac6ca7570
parent 5381564f6356842276438f388719433242cf209e
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Mon, 14 Jun 2021 13:24:50 -0500

setup and fixes

Diffstat:
Msrc/envvars.py | 1+
Msrc/game.py | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/envvars.py b/src/envvars.py @@ -22,6 +22,7 @@ FRAMERATE = 60 BASE_TILE_WIDTH = 16 BASE_TILE_HEIGHT = 16 TILE_SCALE_FACTOR = 4 +VIEWPORT_SIZE = (640, 480) COLORKEY = (255, 0, 255) # File paths diff --git a/src/game.py b/src/game.py @@ -71,7 +71,7 @@ class Game(object): if new_mode == STATE_MODES.Location_Mode: self.board_manager.load_board(data["boardname"]) self.entity_manager.load_board_entities_from_file(data["boardname"]) - self.camera.load_camera_surface(self.board_manager.current_board.pixel_dimensions) + self.camera.load_camera_surface(VIEWPORT_SIZE) def shift_frames(self, framerate = FRAMERATE): """