PokeyGame Entities

Over the past two weeks I’ve spent some time getting the WorldGenerator integrated with the PokeyGame framework, and level templates are now able to be automatically generated and tested for a valid path from point to point.  A template is returned as a dictionary to the game and the logic behind creating a dungeon can be built.

Is it living?

The next step in generating the dungeon will be filling the template with tiles, mobs, chests, traps, doors (some with locks) and more.  I decided to refactor the Player class and extract some of the core methods that will be implemented in a more general Entity class – Players, Mobs, and ultimately NPCs will all be children to this Entity class.

As such, I had to consider which attributes and methods will need to be available to all three of these categories.  Among shared attributes are :

Players and Mobs will actively use these attributes, NPCs will be protected/immune/invincible so that no status effects or damage can be applied.  The methods available require a bit more explanation.

Methods

proc_dmg_effect
proc_status_effect
process_effects
living_check
dead
turn_upkeep
turn_initialize
resist_roll

Leave a Reply

Your email address will not be published. Required fields are marked *