Return to repo list

heart-of-gold

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

commit 8f6298c285cd620136b9e6575d891f812494dad1
parent ec2f55a9c13a6417c429b308151ee66eefb342e7
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Thu, 20 Aug 2020 17:25:07 -0500

added constants.py

Diffstat:
Asrc/constants.py | 10++++++++++
Msrc/entity.py | 5++++-
2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/constants.py b/src/constants.py @@ -0,0 +1,10 @@ +############################################ +# Constants to be included across the game # +############################################ + +SCREEN_WIDTH = 1024 +SCREEN_HEIGHT = 768 +FRAMERATE = 60 + +TILE_WIDTH = 64 +TILE_HEIGHT = 64 diff --git a/src/entity.py b/src/entity.py @@ -23,6 +23,9 @@ class Entity(pygame.sprite.Sprite): class Tile(Entity): - def __init__(self, image, pos): + def __init__(self, image, pos, passable, occupant = None): super().__init__(image, pos) + + self.passable = passable + self.occupant = occupant