Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.
This repository was archived by the owner on May 24, 2018. It is now read-only.

Allow "frozen" and layers with accessible tiles #52

Description

@johnhattan

As I understand it, an openfl-tiled map (at least in Flash) consists of a single big bitmap containing all layers flattened together. While that's great for terrain or walls or other immutable tiles, it's not friendly for stuff that can change, like open-able doors or collect-able objects or monsters. Putting something in a map that can move or change would require (a) some kind of "refresh a single square" command that I don't think exists or (2) a hack like putting all move-able objects on invisible layers so you can manually add individual sprites for all movable objects or (3) never adding a map to the stage and just writing my own map-builder using the underlying layer/tile data.

Not sure if there's a layer property for it, but it'd be nice if I could say "these layers are frozen" which would make one big flattened bitmap of those layers or "these layers are dynamic" which will make a sparse array of individual sprites.

Apologies in advance if I'm futzing with the design. I've been using openfl-tiled for all of one day and am just looking how things would interact with my design :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions