Camera movement callbacks
Bug #783816 reported by
Wolter HV
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dwarf Bomber |
New
|
Wishlist
|
Unassigned |
Bug Description
Add a method to the camera to pan smoothly over a specified interval of time to a specified location (which will be the a point in which the camera gets centered at the end of the pan).
This method could be used later if the dwarf is walking through a bigger-
Changed in dwarfbomber: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Right now the Camera class comes with an update method, which could be called every frame by the engine renderer to move the camera around. It could be moved depending on where the dwarf player is situated.
I would imagine a centered rectangle, smaller than the window, in which the dwarf can move freely without making the camera move. Then as soon as the dwarf reaches the border of this rectangle, the camera is moving to keep the dwarf in the boundaries of the rectangle.