I'm trying to make a game work on different resolutions, but I can't figure out how.
I've tried rescaling all Actors in the world constructor like this:
which didn't work. But this technique wouldn't work anyway, since images will be updated later in the code.
I'm wondering if there's a way to stretch or compress the scenario right before painting.
Any ideas?
List<Actor> actors = getObjects(null);
for(Actor a : actors)
{
a.getImage().scale((int)(a.getImage().getWidth() * (scrnWidth/1670.0)), (int)(a.getImage().getHeight() * (scrnHeight/1050.0)));
// scrnWidth/scrnHeight is the resolution, 1680/1050 is the resolution that everything was tested on.
}


