HaxeFlixel / HaxeFlixel/flixel-addons
Enhancing FlxScene ?
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 196
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
as I was trying to work with FlxScene, which is an excellent idea, I felt I lacked some specific purpose. Especially on the "entity" tag where I would like to declare specific variables, more than just FlxSprites properties.
I was thinking of two different ways to do that :
1/ the first is really simple, we add a "data" attribute to the "entity" tag and if the data property exists we just transfert it after the creation. it could be from simple short text to complex json if needed. Simple and i believe quite short to code.
2/ the second one is more complex but maybe more interesting. Actually the list of properties transfered from the tags of the XML to the objects is fixed. Maybe it's possible to make this transfer more dynamic by just looking at the attributes, verifiying their existence in the target object and transfering it... automatically ?
I think it wouldn't change the usage of the current code and be more flexible if the objects, even those that already exists (FlxText, FlxSprite, etc...), have to change in the future.
Before starting to code this for myself, I was wondering... what do you think ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing FlxScene's handling of XML entity tags and the fixed properties transferred to FlxSprites. Compare the proposed data attribute with dynamic attribute transfer, then confirm the intended behavior and scope in the existing discussion before defining what completion means.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100