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

Tmx 1.10 #803

Merged
merged 46 commits into from
Dec 28, 2023
Merged

Tmx 1.10 #803

merged 46 commits into from
Dec 28, 2023

Conversation

steffen-wilke
Copy link
Contributor

No description provided.

We don't want to expose all the Tiled specific stuff like `editorsettings` on the LITIENGINE API but still the serialization layer should keep the information.

#464
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
We don't want to expose all the Tiled specific stuff like `editorsettings` on the LITIENGINE API but still the serialization layer should keep the information.

#464
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
We don't want to expose all the Tiled specific stuff like `editorsettings` on the LITIENGINE API but still the serialization layer should keep the information.

#464
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
We don't want to expose all the Tiled specific stuff like `editorsettings` on the LITIENGINE API but still the serialization layer should keep the information.

#464
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
- Support repeat properties for image layers.
- Support double values for layer offset
- Support parallax factors for layers
- Support tintcolor property for layers
- Add test for image layers

Fixes #462
Also apply some minor code improvements.
#462
- Cleanup implementation and add some tests

#468
Also remove unnecessary API surface to access custom property type.

#468
To retrieve custom property values, there are three options:
1. Get the value and expect it to be there - this will throw if no property with the specified name is present
2. Get the property and define a default which will be returned if it is not present
3. Check via hasCustomProperty first and then retrieve the property.

#468
# Conflicts:
#	litiengine/src/main/java/de/gurkenlabs/litiengine/environment/tilemap/MapRenderer.java
#	utiliti/src/main/java/de/gurkenlabs/utiliti/renderers/MapObjectsRenderer.java
#	utiliti/src/main/java/de/gurkenlabs/utiliti/swing/dialogs/MapPropertyPanel.java
#	utiliti/src/main/java/de/gurkenlabs/utiliti/swing/panels/LightSourcePanel.java
- Reimplement tile terrain support against the Wang implementation (We no longer support the deprecated Tiled terrain which was deprecated with Tiled 1.5)
- Some of the newly introduced properties are just mapped to ensure compatibility when serializing (e.g. objectalignment, fillmode, ...). These settings are not supported by the engine but are kept for informational purposes.

Fixes #465
Fix some style issues

Fixes #465
No need to throw because most features should still work. It's enough to log a warning.

Fixes #456
@steffen-wilke
Copy link
Contributor Author

The specification has been updated. The following implementations need to be done separately to take advantage of the now available information.

  • Support parallax rendering (take GroupLayer multiplication into account)
  • Support repeatx and repeaty for ImageLayer when rendering
  • Support rendering tintcolor for layers
  • Support setting new properties in Utiliti

@steffen-wilke steffen-wilke merged commit 3139c33 into main Dec 28, 2023
1 check passed
@steffen-wilke steffen-wilke deleted the tmx-1.10 branch December 28, 2023 15:50
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.

None yet

1 participant