Plonq / bevy_rts_camera

RTS-style camera controls plugin for Bevy Engine
Apache License 2.0
59 stars 6 forks source link

Component-centric architecture #1

Closed Plonq closed 8 months ago

Plonq commented 8 months ago

Refactor everything to a component-centric API rather than many resources. I originally went with resources because I thought it would be simpler and the simple use cases I was targeting meant I didn't really care about having multiple cameras. I have since changed my mind and think that components are actually simpler and a more ergonomic API. Systems are also simpler with fewer arguments.

I have also made the controls/controller optional - you can simply not add the component and implement your own controller.