From: Alexis Laferrière Date: Mon, 14 Dec 2015 16:44:56 +0000 (-0500) Subject: lib/gamnit: make controls larger in asteronits X-Git-Tag: v0.8~36^2~6 X-Git-Url: http://nitlanguage.org lib/gamnit: make controls larger in asteronits Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/examples/asteronits/src/touch_ui.nit b/lib/gamnit/examples/asteronits/src/touch_ui.nit index 91ce2be..3971426 100644 --- a/lib/gamnit/examples/asteronits/src/touch_ui.nit +++ b/lib/gamnit/examples/asteronits/src/touch_ui.nit @@ -94,7 +94,7 @@ redef class App # Standardize the UI size to look like a 1600 pixels high screen. # Meaning that the controls have a size proportional to the height of each screen. # In the code, we can use "pixel" precision as if the target screen was 1600 pixels high. - ui_camera.reset_height 1600.0 + ui_camera.reset_height 800.0 # Add the joystick to the UI ui_sprites.add new Sprite(spritesheet_controls.forward,