Skip to content

Instantly share code, notes, and snippets.

@toriaezunama
Created March 30, 2012 03:01
Show Gist options
  • Save toriaezunama/2246102 to your computer and use it in GitHub Desktop.
Save toriaezunama/2246102 to your computer and use it in GitHub Desktop.
#corona #module #template #lua
--[[
== Example use ==
...
]]
--== Built in functions
local assert = assert
local error = error
local pairs = pairs
local ipairs = ipairs
local print = print
local setmetatable = setmetatable
local tonumber = tonumber
local tostring = tostring
local type = type
local unpack = unpack
--local next = next
--local getfenv = getfenv
--local getmetatable = getmetatable
--local pcall = pcall
--local rawequal = rawequal
--local rawget = rawget
--local rawset = rawset
--local select = select
--local setfenv = setfenv
--== Built in lib
local string = string
local table = table
local display = display
local Runtime = Runtime
local file = file
local io = io
local math = math
local os = os
local transition = transition
local graphics = graphics
local easing = easing
local system = system
local timer = timer
local native = native
local network = network
-- local movieclip = movieclip
-- local audio = audio
-- local crypto = crypto
-- local media = media
-- local sprite = sprite
--== Include lib
-- local ads = require "ads"
-- local analytics = require "analytics"
-- local credits = require "credits"
-- local sqlite3 = require "sqlite3"
-- local facebook = require "facebook"
-- local gameNetwork = require "gameNetwork"
-- local json = require "json"
-- local store = require("store")
-- local socket = require("socket")
-- local storyboard = require( "storyboard" )
-- local widget = require "widget"
--== Define what we want to be available in the sandbox
local scope = {}
setfenv( 1, scope )
--== From here down we are in scope
-- Write some module code here
return scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment