millertime-homework / Emergency-Response

Emergency Response Game
0 stars 2 forks source link

Order-dependent props #50

Open millertime-homework opened 11 years ago

millertime-homework commented 11 years ago

Some props need to be defined in a specific order, e.g. the door handle and window shade on a door. Depending on where they're listed in the JSON, it's possible that they will not render correctly.

Adjust the order in the room file as a temporary fix (fragile, any further edits could break the props).

Possibly come up with a sub-prop mechanism (this would fix issue #44):

_props: {
    propA: {
        <attributes>
        propB: {
        /* child of propA, gets added/removed with propA, always has higher Z value than propA */
    }
}