mirror of https://github.com/axmolengine/axmol.git
parent
73add5df3f
commit
efce326cd9
|
@ -23,6 +23,7 @@ THE SOFTWARE.
|
|||
]]
|
||||
|
||||
-- Cocos2d-Lua core functions
|
||||
local unpack = table.unpack
|
||||
cc.loaded_packages = {}
|
||||
local loaded_packages = cc.loaded_packages
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ THE SOFTWARE.
|
|||
|
||||
]]
|
||||
|
||||
local unpack = table.unpack
|
||||
local transition = {}
|
||||
|
||||
local ACTION_EASING = {}
|
||||
|
|
|
@ -22,13 +22,18 @@ THE SOFTWARE.
|
|||
|
||||
]]
|
||||
|
||||
-- lua-5.4
|
||||
-- >= lua-5.4
|
||||
if (math.pow == nil) then
|
||||
math.pow = function (x,y)
|
||||
return x ^ y
|
||||
end
|
||||
end
|
||||
|
||||
-- < lua-5.4
|
||||
if (unpack) then
|
||||
table.unpack = unpack
|
||||
end
|
||||
|
||||
require "cocos.cocos2d.Cocos2d"
|
||||
require "cocos.cocos2d.Cocos2dConstants"
|
||||
require "cocos.cocos2d.functions"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local unpack = table.unpack
|
||||
|
||||
if nil == cc.XMLHttpRequest then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue