K
K
kzoper2017-11-30 11:58:34
libgdx
kzoper, 2017-11-30 11:58:34

LibGDX OrthographicCamera how to determine visible coordinates?

camera: OrthographicCamera = OrthographicCamera(GameInfo.WIDTH, GameInfo.HEIGHT)
    init {
        camera.position.set(Vector3(GameInfo.WIDTH / 2, GameInfo.HEIGHT / 2, 0F))
        camera.zoom -= 6F
        snakeController.updateTime = 0.35F
    }

with zoom equal to zero x will be from 0 to GameInfo.WIDTH , y from 0 to GameInfo.HEIGHT
what are the limits for x\y when the zoom is changed ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question