Advertisement
Hendrix000007

Structuring code, graphics and folders in a dynamic way

Mar 27th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. -----------------------------------------------------------------------------------------
  2. --
  3. -- main.lua
  4. --
  5. -----------------------------------------------------------------------------------------
  6.  
  7. -- hide the status bar
  8. display.setStatusBar( display.HiddenStatusBar )
  9.  
  10. --GLOBAL REF VARS FOR DYNAMIC STRUCTURING
  11. _G_SF = "scripts"       --Folder that holds all my scripts
  12. _G_RF = "resources"     --Folder for all my resources
  13. _G_RFF = _G_RF .. "/fonts"  --Folder for custom fonts
  14. _G_RFG = _G_RF .. "/graphics"   --Folder for all my graphics
  15. _G_GFS = _G_RF .. "/sounds" --Folder for all my sounds
  16.  
  17. _GmessageFont = "Cheboygan" -- Main custom font for my project
  18. --    _GmessageFont = "native.systemFont" --[[ UNCOMMENT FOR DEBUG AND TESTING ]]
  19.  
  20. -- include the Corona "storyboard" module
  21. local storyboard = require "storyboard"
  22.  
  23. -- load menu screen
  24. storyboard.gotoScene( _G_SF .. "/mainSplash" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement