From 8608aa48bbd3c74389cc3680ef946d460c008ebd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 31 Mar 2017 12:37:03 -0400 Subject: [PATCH] gamnit: world_camera position defaults to 1080 pixels in height MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/flat.nit | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index f6e0fd2..027d349 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -218,20 +218,20 @@ redef class App # Camera for world `sprites` and `depth::actors` with perspective # - # By default, the camera is configured to respect the resolution - # of the screen in world coordinates at `z == 0.0`. + # 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 pixel resolution at level 0 - camera.reset_height - camera.near = 100.0 + # Aim for full HD pixel resolution at level 0 + camera.reset_height 1080.0 + camera.near = 10.0 return camera end # Camera for `ui_sprites` using an orthogonal view - var ui_camera: UICamera = new UICamera(app.display.as(not null)) is lazy + var ui_camera = new UICamera(app.display.as(not null)) is lazy # World sprites to draw as seen by `world_camera` var sprites: Set[Sprite] = new SpriteSet -- 1.7.9.5