2011-07-17 08:56:57 +02:00
|
|
|
require 'entergame'
|
|
|
|
|
|
|
|
function initializeApplication()
|
2011-07-27 01:13:27 +02:00
|
|
|
mainMenu = loadUI("ui/mainmenu", rootUI)
|
2011-07-17 08:56:57 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function terminateApplication()
|
2011-07-27 01:13:27 +02:00
|
|
|
exit()
|
2011-07-17 08:56:57 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
-- here is where everything starts
|
|
|
|
if not initialized then
|
|
|
|
initializeApplication()
|
2011-07-27 01:13:27 +02:00
|
|
|
onClose = terminateApplication
|
2011-07-17 08:56:57 +02:00
|
|
|
initialized = true
|
|
|
|
end
|