Return to repo list

heart-of-gold

Tactical RPG written in python, using pygame.
Return to HMagellan.com

commit 8f414b86a4048487b7b68fe4b6a866f805d9dcfe
parent 22eae06261d551cbcc65fce382bfc86e48be38cc
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Fri, 21 Aug 2020 15:26:07 -0500

Import constants into game

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

diff --git a/src/game.py b/src/game.py @@ -1,13 +1,14 @@ import pygame from . import interface +from .constants import SCREEN_WIDTH, SCREEN_HEIGHT, FRAMERATE class Game(object): def __init__(self): - self.screen = pygame.display.set_mode((1024, 768)) + self.screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) self.frame_clock = pygame.time.Clock() - self.framerate = 60 + self.framerate = FRAMERATE self.on = True # Subsystems