Return to repo list

heart-of-gold

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

commit 7893889d9558e03129c71e0797e3a85731a06a6a
parent 04a12b28880194ae97de3019d3bb63b9479ab553
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Wed, 11 Nov 2020 14:00:02 -0600

anything that sources constants should take it all

Diffstat:
Mmain.py | 6------
Msrc/board.py | 2+-
Msrc/images.py | 2+-
Msrc/sound.py | 2+-
4 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/main.py b/main.py @@ -10,12 +10,6 @@ from src import game # the game would be in a loaded state. This seems the ideal solution, and it can be put off a bit. # 3. Implement the "draw()" functionality of DirtySprite for all VGOs, which will be done in anything that manages a LayeredDirty group, e.g. in the # EntityManager object. -# 5. There should be a "Bus" subsystem object that is initialized by Game and that is passed to all managers. The bus should be able to handle internal -# errors that arise in inter-manager communication. Additionally, all managers should have an "expose()" method run each frame that exposes their -# important values to the bus (what these specific values are will be particular to the manager, and the actual exposed data should be a dict). Other -# manager objects could access the exposed values by talking to the bus. Additionally, the bus could enumerate all the managers that have been given -# bus access, and could expose these managers to other managers as part of a public list/dict. These features would eliminate the ugly "so-and-so.game" -# calls that are popping up all over the code here. # 6. Implement the pre-rendered cutscene playing methodology using Pyglet as described here: http://www.sbirch.net/tidbits/pygame_video.html # Initialization of pygame and submodules diff --git a/src/board.py b/src/board.py @@ -1,6 +1,6 @@ import pygame, pytmx, os, queue from . import manager, entity -from .constants import BOARD_PATH, TILE_WIDTH, TILE_HEIGHT +from .constants import * ############ # board.py # diff --git a/src/images.py b/src/images.py @@ -1,6 +1,6 @@ import pygame, os, json from . import manager -from .constants import IMAGE_PATH, JSON_PATH, COLORKEY +from .constants import * ############# # images.py # diff --git a/src/sound.py b/src/sound.py @@ -1,6 +1,6 @@ import pygame, os, json from . import manager -from .constants import SOUND_PATH, JSON_PATH +from .constants import * ############ # sound.py #