--------------------------------------------------- 
-- FBA Tutorials
--
-- Tutorial / 01 / HelloWorld
--
--------------------------------------------------- 
--
-- The simplest FBA script, the "HelloWorld" !
--
-- This example shows minimal code required in order to create
-- the main window
--------------------------------------------------- 

debug("Hello World!")


function onmainloop()	
         --
         -- this routine is called on each frame by FBA. You have
         -- to draw all your cool graphics here...
         --
         
         -- quit if we're pressing stylus/mouse
         if (mousedown() > 0) then
            quit()
         end
end

-- this is an optional event automatically called when your application
-- is about to be closed. You can do here some finalization code (settings save etc)
-- or just ignore it if you don't need it ;)
--
-- don't draw anything here, because after this function your application will be closed ;)
--
function onquit()

end
