Trouv / bevy_ecs_ldtk

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

Rewrite `field_instances` example to take advantage of `LdtkFields` methods #181

Closed Trouv closed 1 year ago

Trouv commented 1 year ago

180 adds many convenience methods for accessing field instances on an LdtkEntity or Level. That PR does update the platformer example's field instance usage to use these new methods - but it does not update the field_instances example. I felt that doing that would make an already-large PR even larger.

Before the next release, we should update the field_instances example to use these new methods. These methods are the preferred way of accessing field data, and this example is likely what users will click on when they are trying to learn how to access field data.