Skip to content

Trying to use TileMap with LDTK Plugin but I can't get the map to appear! #3318

Answered by eonarheim
icarito asked this question in Q&A
Discussion options

You must be logged in to vote

I tweaked the vite config, you in theory don't need the ldtkPlugin (the TSX version was becasue react typescript file extension collides with the Tiled Tileset extension, both have .tsx)

export default defineConfig({
  plugins: [preact()],
  base: "/roke/",
  optimizeDeps: {
    exclude: ['excalibur']
  },
  build: {
    assetsInlineLimit: 0, // excalibur cannot handle inlined xml in prod mode
    sourcemap: true,
    rollupOptions: {
      output: "umd",
    },
  },
});

Then I ran a bake layers on the IntGrid auto tile layer (I think the LDtk plugin doesn't know how to handle these yet)

That makes it work

I'll see if I can add the int grid auto tile layer support without too much effort

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@icarito
Comment options

Answer selected by icarito
Comment options

You must be logged in to vote
0 replies
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