app :: App :: world_camera=
sprites
and depth::actors
with perspectiveBy default, the camera is configured to a height of 1080 units
of world coordinates at z == 0.0
.
# Camera for world `sprites` and `depth::actors` with perspective
#
# By default, the camera is configured to a height of 1080 units
# of world coordinates at `z == 0.0`.
var world_camera: EulerCamera is lazy do
var camera = new EulerCamera(app.display.as(not null))
# Aim for full HD pixel resolution at level 0
camera.reset_height 1080.0
camera.near = 10.0
return camera
end
lib/gamnit/flat/flat_core.nit:363,2--375,4