HaxeFlixel / HaxeFlixel/flixel-addons

Enhancing FlxScene ?

Open
#142 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.