I am developing a 2D game(platformer) where to top-left corner is x:0,y:0. As you move rightwards, the x coordinate increase and y increasing when moving downwards(in other words, standard coordinate system for 2D games).
As in every platformer, the camera is focused on the main character, following her/him. Some games however have more than one main character. In these games, the camera would zoom out if the characters are to far away from each other and at the same time "follow" them.
I need to implement this in my game but not sure how. It need to support 1-4 characters.
The variables translateX, translateY and scale(where 1.0 is the normal size of the world) need to be set.
Language can be either Java, C#, C, C++ or anything that look alike.
Edited by P0jahn, 24 August 2014 - 03:51 PM.