mirror of https://github.com/axmolengine/axmol.git
remove unused codes
This commit is contained in:
parent
b49d2351ff
commit
74ec90f90f
|
@ -41,16 +41,14 @@ local function main()
|
||||||
--set FPS. the default value is 1.0/60 if you don't call this
|
--set FPS. the default value is 1.0/60 if you don't call this
|
||||||
director:setAnimationInterval(1.0 / 60)
|
director:setAnimationInterval(1.0 / 60)
|
||||||
|
|
||||||
cc.FileUtils:getInstance():addSearchPath("src")
|
local schedulerID = 0
|
||||||
cc.FileUtils:getInstance():addSearchPath("res")
|
|
||||||
local schedulerID = 0
|
|
||||||
--support debug
|
--support debug
|
||||||
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
|
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
|
||||||
if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) or
|
if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) or
|
||||||
(cc.PLATFORM_OS_ANDROID == targetPlatform) or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or
|
(cc.PLATFORM_OS_ANDROID == targetPlatform) or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or
|
||||||
(cc.PLATFORM_OS_MAC == targetPlatform) then
|
(cc.PLATFORM_OS_MAC == targetPlatform) then
|
||||||
cclog("result is ")
|
cclog("result is ")
|
||||||
--require('debugger')()
|
--require('debugger')()
|
||||||
|
|
||||||
end
|
end
|
||||||
require "hello2"
|
require "hello2"
|
||||||
|
@ -236,11 +234,11 @@ local function main()
|
||||||
sceneGame:addChild(createLayerFarm())
|
sceneGame:addChild(createLayerFarm())
|
||||||
sceneGame:addChild(createLayerMenu())
|
sceneGame:addChild(createLayerMenu())
|
||||||
|
|
||||||
if cc.Director:getInstance():getRunningScene() then
|
if cc.Director:getInstance():getRunningScene() then
|
||||||
cc.Director:getInstance():replaceScene(sceneGame)
|
cc.Director:getInstance():replaceScene(sceneGame)
|
||||||
else
|
else
|
||||||
cc.Director:getInstance():runWithScene(sceneGame)
|
cc.Director:getInstance():runWithScene(sceneGame)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue