Camera movement callbacks

Bug #783816 reported by Wolter HV
6
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-than-the-screen map, and the camera needs to move following him.

Wolter HV (wolterh)
Changed in dwarfbomber:
importance: Undecided → Wishlist
Revision history for this message
Daniel (dan-gillet737) wrote :

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.

Revision history for this message
Wolter HV (wolterh) wrote :

Exactly. The camera should (maybe instead of a rectangle) maintain a maximum distance between its center and the player position (which would, consequently, be radial). We could do this by polling the length of a distance vector between the players position and the cameras center.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.