Search code examples
javaslick2d

Slick2d increase screenresolution without increasing field of view


So I've implemented a scrolling camera to my slick2d game which works fine for me. But if I change the resolution of my game, e.g. from 800x600 to 1280x960 the field of view of the player increases extremly.

This is my camera class: http://pastebin.java-gaming.org/8a70696904d1d

Is there a way to increase screen resolution without increasing the field of view for the player?

Thanks!


Solution

  • If I change all gc.getWidth & gc.Height in my cameraclass to a fixed value e.g. 800x600 it works.

    Thanks for the help. It doesn't look really good tho, but thats another topic.