-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
40 lines (32 loc) · 1.97 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
------------------------------------------------------------------------------------------------
-- The start point for game.
--
-- @script main
-- @author Łukasz Durniat
-- @license MIT
-- @copyright Łukasz Durniat, Mar-2018
------------------------------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------ --
-- REQUIRED MODULES --
-- ------------------------------------------------------------------------------------------ --
local composer = require( 'composer' )
-- ------------------------------------------------------------------------------------------ --
-- LOCALISED VARIABLES --
-- ------------------------------------------------------------------------------------------ --
-- ------------------------------------------------------------------------------------------ --
-- PRIVATE METHODS --
-- ------------------------------------------------------------------------------------------ --
-- ------------------------------------------------------------------------------------------ --
-- PUBLIC METHODS --
-- ------------------------------------------------------------------------------------------ --
-- Removes status bar on iOS
-- https://docs.coronalabs.com/api/library/display/setStatusBar.html
display.setStatusBar( display.HiddenStatusBar )
-- Removes bottom bar on Android
if system.getInfo( 'androidApiLevel' ) and system.getInfo( 'androidApiLevel' ) < 19 then
native.setProperty( 'androidSystemUiVisibility', 'lowProfile' )
else
native.setProperty( 'androidSystemUiVisibility', 'immersiveSticky' )
end
-- Go to the game screen
composer.gotoScene( 'scene.game' )