Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
641 stars 73 forks source link

Levels not rendered correctly on wasm #182

Closed lewiszlw closed 1 year ago

lewiszlw commented 1 year ago

Hi,

I'm using bevy_ecs_ldtk 0.6 to load .ldtk file. It works well on native, but not on wasm. I didn't meet this issue in my last game (using bevy_ecs_ldtk 0.5), not sure it's a bug or something I miss.

wasm

image

native

image

Reproduce:

  1. clone https://github.com/NightsWatchGames/celeste
  2. rustup target install wasm32-unknown-unknown
  3. cargo install wasm-server-runner
  4. cargo run --target wasm32-unknown-unknown
  5. open the link in browser
Trouv commented 1 year ago

Just to make sure - are you using the atlas feature?

$ cargo run --target wasm32-unknown-unknown --features bevy_ecs_ldtk/atlas
lewiszlw commented 1 year ago

Seems yes. It works after adding atlas feature. Thanks!