You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
366 B
20 lines
366 B
13 years ago
|
-- menu state
|
||
|
function onEnterMenuState()
|
||
|
MainMenu_create()
|
||
|
end
|
||
|
|
||
|
function onLeaveMenuState()
|
||
|
MainMenu_destroy()
|
||
|
end
|
||
|
|
||
|
function onApplicationClose()
|
||
|
onLeaveMenuState()
|
||
|
exitGame()
|
||
|
end
|
||
|
|
||
|
-- here is where everything starts
|
||
|
if not initialStateLoaded then
|
||
|
onEnterMenuState()
|
||
|
setOnApplicationClose(onApplicationClose)
|
||
|
initialStateLoaded = true
|
||
|
end
|