benreid24 / BLIB

Small organized collection of common code I have accumulated over the years that has amassed into a proper 2d game engine
1 stars 0 forks source link

Refactor camera -> camera + controller #150

Closed benreid24 closed 1 year ago

benreid24 commented 1 year ago

Current camera mechanism is a Camera base class with some helper methods. Should split the logic into a single Camera class that can have an attached controller(s). This nicely separates what a camera is vs how it behaves. Could potentially allow multiple controllers to get more advanced behavior by composing them