abraker95 / tanks

2D arcade top-view shooting game
1 stars 0 forks source link

camera movements #25

Closed ghost closed 9 years ago

ghost commented 9 years ago

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

ghost commented 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.

ghost commented 9 years ago

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.

ghost commented 9 years ago

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.

ghost commented 9 years ago

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.