Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worldWidth *= (screenHeight/worldHeight).toInt()
- worldHeight *= (screenHeight/worldHeight).toInt()
- setScreenBounds(
- screenWidth/2 - worldWidth.toInt()/2,
- screenHeight/2 - worldHeight.toInt()/2,
- worldWidth.toInt(),
- worldHeight.toInt() )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement