Skip to content

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