Closed ghost closed 9 years ago
SFML library already has functions that handle views. http://sfml-dev.org/documentation/2.1/classsf_1_1View.php
Applying that should be quick
On Thu, Nov 13, 2014 at 6:27 PM, Sherushe notifications@github.com wrote:
Before doing the splt-screen, i was thinking about a view where both players are always visible. The view would zoom, unzoom, translate, to have the best framing.
It shouldnt be too hard to implement
— Reply to this email directly or view it on GitHub https://github.com/Sherushe/tanks/issues/25.
It's a little bit more than applying but it should be easy to do. For example we need to block the view at map borders.
I don't see how blocking the view at map borders will be difficult
On Fri, Nov 14, 2014 at 3:04 AM, Sherushe notifications@github.com wrote:
It's a little bit more than applying but it should be easy to do. For example we need to block the view at map borders.
— Reply to this email directly or view it on GitHub https://github.com/Sherushe/tanks/issues/25#issuecomment-63022030.
I think you misunderstand me, i didn't say its difficult. But anyway, i implemented a camera which tracks objects. In the constructor you can configure how far it can zoom in and out. I close this issue for now.
Before doing the splt-screen, i was thinking about a view where both players are always visible. The view would zoom, unzoom, translate, to have the best framing.
It shouldnt be too hard to implement