Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Anti-spam check. Do not fill this in!=== Initializing === The function "_init()" is what happens when the game is started up (or in this case, the State). <syntaxhighlight lang="lua"> function _init() titleinit() -- does title things. end function titleinit() mode = 0 --whatever you wish to do when the title starts up. end function gameinit() mode = 1 --what to do at the start of the play session. end </syntaxhighlight> We'll call on gameinit() later. Summary: Please note that all contributions to the PICO-8 Wiki are considered to be released under the CC-BY-SA Cancel Editing help (opens in new window) Retrieved from "https://pico-8.fandom.com/wiki/Multiple_States_System"