Sword's End r/roguelikedev 6
Unnamed Cursed Sword RL #6 #
originally posted on Reddit in the r/roguelikedev subreddit
Hey there! I didn't have a ton of time this week, but I managed to do a bunch of refactoring I needed to prep the game for generating entities. I needed to move a lot of logic-related code out of the Node objects (visuals). I had written the generic random data table system (defining functional loot tables from the inspector) months ago, and it was nice to just shove my entity aspects into it without much fuss and have it work. There was a quick post last night of some progress in these regards.
What are Aspects? #
Aspects are the building blocks of the game's entities. each Entity is composed of 2 or more aspects (just 2 right now). Each aspect has a list of Primary, Secondary and Static abilities, which will be granted to an entity depending on whether its a primary or secondary Aspect of the entity. I call them Aspects because it leaves it open to be classes, races or even weirder stuff that wouldn't conform to a category as such.
An aspect's visuals are the Primary Aspect's icon, palette swapped with the color set from the secondary aspect. each Aspect has 2 strings: a name and a descriptor. so a Crab and a Human could generate both a Chitinous Human
and a Fleshy Crab
, depending on which is primary.
The Aspect system is inspired by Solitairica's deck system, and I'm hoping the generated enemies give the player an abundance of options when choosing whether to engage, possess or avoid certain entities.
- Previous: Sword's End r/roguelikedev 4
- Next: Sword's End 2022 Outlook