Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect tiled properties as an array #682

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

f0rdP3rf3ct
Copy link

This PR

  • changes documentation

Please include a summary in Change Log: Unreleased and thank yourself.

Describe the changes below:

Adaptation of:
phaserjs/phaser@fea6598

Tiled objects have properties as an array of objects like:

{ name: ..., type: ..., value: ...}

Update the parser to load these using the name/value properties instead
of just treating it as an array and loading properties named '0', '1',
etc.

sprite.setData does not exist in PhaserCE. therefore the property is set directly on the sprite.

Tiled objects have properties as an array of objects like:

  { name: ..., type: ..., value: ...}

Update the parser to load these using the name/value properties instead
of just treating it as an array and loading properties named '0', '1',
etc.

the difference is, that sprite.setData does not exist in PhaserCE. therefore the property is set directly on the sprite.
@samme samme merged commit f666100 into phaserjs:master Feb 18, 2021
samme added a commit that referenced this pull request Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants