Return to repo list

heart-of-gold

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

commit 45cce6b6c4bc40b32b5aa890bc30cf8f91bab1d0
parent 8f6298c285cd620136b9e6575d891f812494dad1
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Thu, 20 Aug 2020 17:30:20 -0500

added battlefield.py

Diffstat:
Asrc/battlefield.py | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/battlefield.py b/src/battlefield.py @@ -0,0 +1,17 @@ +import pygame + +class Battlefield(object): + """ + Class that represents the area that battles take place + in. + """ + + def __init__(self, tilemap_def, entities_def, meta_def): + + self.tilemap_definition = tilemap_def + self.entities_definition = entities_def + self.meta_definition = meta_def + + self.tilemap = {} + self.tile_group = pygame.sprite.Group() + self.entity_group = pygame.sprite.Group()