StarArawn / bevy_tiled

A plugin for rendering tiled maps.
MIT License
151 stars 40 forks source link

Refactor entity setup. #3

Open StarArawn opened 4 years ago

StarArawn commented 4 years ago

Currently the map entity just loads the mesh and the spawns a bunch of chunk entities. Instead we should think about having the map entity stick around and contain a transform for moving the entire map around. The chunk entities can be children of the map entity.

wmiller848 commented 4 years ago

Utilizing the parent relationship would be ideal. Adjusting a single transform on the parent entity instead of each of the the chunks would be nice.