Enumeration of layer types. There are 10 available layers ranging from 0 - 9 as indexes. 7 is the largest named frame.
Enumeration of screens.
Changes the resolution of the game. This should preferebly only be of the following resolutions: 800x600, 1024x768 or 1280x720. However any resolutions are acceptable but may have side-effects attached such as invalid rendering etc. All set resolutions are saved to a res.ini file in the data folder allowing for resolutions to be kept across instances of the game.
Changes the screen.
Clears all layers for their components except for the background layer as that should usually be cleared by fading-in and fading-out when adding a new background. This adds smoothness to the game.
Clears the temp layers.
Gets a layer by its index. It retrieves it from the current selected layers whether it's the main layers or the temp layers.
Initializes the game.
Loads the credits video. Currently does nothing.
Runs the game/event/UI loop.
Sets the temp layers.
Copyright © Novelate 2020