The static class that carries out graphics processing.
Members
- The PIXI.Application object
- The height of the window display area
- The width of the window display area
- The default zoom scale of the game screen
- The context object of Effekseer
- The total frame count of the game screen
- The height of the game screen
- The width of the game screen
Methods
- Erases the loading spinner
Returns:
Type Description boolean True if the loading spinner was active - Erases the loading error text
- Hides the game screen
- Initializes the graphics system
Returns:
Type Description boolean True if the graphics system is available - Checks whether the given coordinates are inside the game canvas area
Name Type Description x
number The x coordinate on the canvas area y
number The y coordinate on the canvas area Returns:
Type Description boolean True if the given coordinates are inside the game canvas area - Converts an x coordinate on the page to the corresponding x coordinate on the canvas area
Name Type Description x
number The x coordinate on the page to be converted Returns:
Type Description number The x coordinate on the canvas area - Converts a y coordinate on the page to the corresponding y coordinate on the canvas area
Name Type Description y
number The y coordinate on the page to be converted Returns:
Type Description number The y coordinate on the canvas area - Displays the error text to the screen
Name Type Description name
string The name of the error message
string The message of the error error
Error optionalThe error object - Changes the size of the game screen
Name Type Description width
number The new width of the game screen height
number The new height of the game screen - Sets the stage to be rendered
Name Type Description stage
Stage The stage object to be rendered - Register a handler for tick events
Name Type Description handler
function The listener function to be added for updates. - Displays a button to try to reload resources
Name Type Description retry
function The callback function to be called when the button is pressed - Shows the game screen
- Starts the game loop
- Shows the loading spinner
- Stops the game loop