2014-12-29 01:58:16 +08:00
|
|
|
--[[
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2017-02-14 14:36:57 +08:00
|
|
|
Copyright (c) 2014-2017 Chukong Technologies Inc.
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
]]
|
2014-10-11 01:27:12 +08:00
|
|
|
|
2021-03-13 16:47:09 +08:00
|
|
|
if (math.pow == nil) then
|
|
|
|
math.pow = function (x,y)
|
|
|
|
return x ^ y
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
require "cocos.cocos2d.Cocos2d"
|
|
|
|
require "cocos.cocos2d.Cocos2dConstants"
|
|
|
|
require "cocos.cocos2d.functions"
|
|
|
|
|
2015-03-13 16:39:36 +08:00
|
|
|
__G__TRACKBACK__ = function(msg)
|
|
|
|
local msg = debug.traceback(msg, 3)
|
|
|
|
print(msg)
|
|
|
|
return msg
|
|
|
|
end
|
|
|
|
|
2015-03-25 16:35:11 +08:00
|
|
|
-- audio
|
|
|
|
require "cocos.cocosdenshion.AudioEngine"
|
|
|
|
-- cocosstudio
|
|
|
|
if nil ~= ccs then
|
|
|
|
require "cocos.cocostudio.CocoStudio"
|
|
|
|
end
|
|
|
|
-- ui
|
|
|
|
if nil ~= ccui then
|
|
|
|
require "cocos.ui.GuiConstants"
|
|
|
|
end
|
|
|
|
|
|
|
|
-- extensions
|
|
|
|
require "cocos.extension.ExtensionConstants"
|
|
|
|
-- network
|
|
|
|
require "cocos.network.NetworkConstants"
|
|
|
|
-- Spine
|
|
|
|
if nil ~= sp then
|
|
|
|
require "cocos.spine.SpineConstants"
|
|
|
|
end
|
|
|
|
|
2019-02-28 11:17:05 +08:00
|
|
|
-- require "cocos.cocos2d.deprecated"
|
2015-03-25 16:35:11 +08:00
|
|
|
|
|
|
|
-- Lua extensions
|
|
|
|
require "cocos.cocos2d.bitExtend"
|
|
|
|
|
|
|
|
-- CCLuaEngine
|
2019-02-28 11:17:05 +08:00
|
|
|
-- require "cocos.cocos2d.DeprecatedCocos2dClass"
|
|
|
|
-- require "cocos.cocos2d.DeprecatedCocos2dEnum"
|
|
|
|
-- require "cocos.cocos2d.DeprecatedCocos2dFunc"
|
2015-03-25 16:35:11 +08:00
|
|
|
|
|
|
|
-- register_cocostudio_module
|
2019-02-28 11:17:05 +08:00
|
|
|
-- if nil ~= ccs then
|
|
|
|
-- require "cocos.cocostudio.DeprecatedCocoStudioClass"
|
|
|
|
-- require "cocos.cocostudio.DeprecatedCocoStudioFunc"
|
|
|
|
-- end
|
2015-03-25 16:35:11 +08:00
|
|
|
|
|
|
|
-- register_extension_module
|
2019-02-28 11:17:05 +08:00
|
|
|
-- require "cocos.extension.DeprecatedExtensionClass"
|
|
|
|
-- require "cocos.extension.DeprecatedExtensionEnum"
|
|
|
|
-- require "cocos.extension.DeprecatedExtensionFunc"
|
2015-03-25 16:35:11 +08:00
|
|
|
|
|
|
|
-- register_network_module
|
2019-02-28 11:17:05 +08:00
|
|
|
-- require "cocos.network.DeprecatedNetworkClass"
|
|
|
|
-- require "cocos.network.DeprecatedNetworkEnum"
|
|
|
|
-- require "cocos.network.DeprecatedNetworkFunc"
|
2015-03-25 16:35:11 +08:00
|
|
|
|
2017-02-04 10:35:56 +08:00
|
|
|
-- register_ui_module
|
2019-02-28 11:17:05 +08:00
|
|
|
-- if nil ~= ccui then
|
|
|
|
-- require "cocos.ui.DeprecatedUIEnum"
|
|
|
|
-- require "cocos.ui.DeprecatedUIFunc"
|
|
|
|
-- end
|
2015-03-25 16:35:11 +08:00
|
|
|
|
2015-05-15 09:28:03 +08:00
|
|
|
-- physics3d
|
|
|
|
require "cocos.physics3d.physics3d-constants"
|
|
|
|
|
2014-12-29 01:58:16 +08:00
|
|
|
if CC_USE_FRAMEWORK then
|
|
|
|
require "cocos.framework.init"
|
2014-10-11 01:27:12 +08:00
|
|
|
end
|