Lua 5.4 compatible

This commit is contained in:
halx99 2021-03-13 16:47:09 +08:00
parent fce0f9caf0
commit 261bea4234
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ THE SOFTWARE.
]]
if (math.pow == nil) then
math.pow = function (x,y)
return x ^ y
end
end
require "cocos.cocos2d.Cocos2d"
require "cocos.cocos2d.Cocos2dConstants"
require "cocos.cocos2d.functions"