craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

tiled content pipeline bugfixes & new fields #841

Open KatDevsGames opened 7 months ago

KatDevsGames commented 7 months ago

added support for reading type field from TiledMapPropertyContent (Tiled lets you set it...) added support for repeatX/repeatY fields from Tiled image layers property (renderer still does not support this yet)

value read bugfix @TiledMapProperties.cs:10 - this got introduced when you pulled my previous pr (sorry)

tigurx commented 7 months ago

Hi @KatDevsGames ,

Your timing is absolutely impeccable. The RepeatX and RepeatY for the image layer in tiled is actually something I started looking into last night when trying to implement a parallax image layer for my project. Do you have any idea on how to approach this in regard to the renderer?

Please let me know if I can be of any assistance. I am not exactly sure how to approach it, but wouldn't mind helping tackle that if it is something that proves difficult.

Gandifil commented 7 months ago

Hi @KatDevsGames and @tigurx !

I have watched PR.

In future, please, make PR separately by theme.

tigurx commented 7 months ago

@Gandifil , For RepeatX & RepeatY -- Yes, it just repeats the image N times along the respected axis like you suggested.

https://github.com/craftworkgames/MonoGame.Extended/assets/16768537/ddffcdb6-4957-4b7b-9a36-2668e6605db1