File hp/core/Application.lua
Functions
M:getViewScale () | Returns the scale of the Viewport to the screen. |
M:isDesktop () | Returns whether the desktop execution environment. |
M:isMobile () | Returns whether the mobile execution environment. |
M:setClearColor (r, g, b, a) | Sets the background color. |
M:start (config) | Start the application. |
Tables
Application | Module for the start of the application. |
Functions
- M:getViewScale ()
-
Returns the scale of the Viewport to the screen.
Return value:
scale of the x-direction, scale of the y-direction, - M:isDesktop ()
-
Returns whether the desktop execution environment.
Return value:
True in the case of desktop. - M:isMobile ()
-
Returns whether the mobile execution environment.
Return value:
True in the case of mobile. - M:setClearColor (r, g, b, a)
-
Sets the background color.
Parameters
- r:
- g:
- b:
- a:
- M:start (config)
-
Start the application.
You can specify the behavior of the entire application by the config.Parameters
- config: