Skip to content

How to set up Tiled in Angular #2434

Answered by eonarheim
KrzyZyb asked this question in Q&A
Jul 27, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @KrzyZyb thanks for opening a discussion!

Do you have a small example repo you can share?

My first guess is the angular CLI is maybe moving files around such that the path resolution isn't working at runtime. If that's the case you can work around the Tiled plugin's path resolution by overriding the convertPath function similar to this #2370 (reply in thread)

My other guess based on the first set of symptoms without modifying the tmx/tsx, is it's also possible the angular cli is mangling names, we've had problems with some bundlers mangling the constructor name or function names (this causes an internal instanceof check to fail and not actually add entities to the scene). excaliburjs/e…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@KrzyZyb
Comment options

@eonarheim
Comment options

@eonarheim
Comment options

@KrzyZyb
Comment options

@eonarheim
Comment options

Answer selected by KrzyZyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants