abraker95 / tanks

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

Camera's aspect ratio doesn't auto adjust when window changes size #32

Closed ghost closed 9 years ago

ghost commented 9 years ago

The update function I was using had a RenderWindow parameter to recalculate the ration on window change.

ghost commented 9 years ago

In order to avoid global variable access, the ratio for every camera is updated when the window size changes.