您的位置:首页 > 移动开发 > Cocos引擎

十四-2 手游开发神器 cocos2d-x editor 之串联游戏流程

2014-02-20 16:41 645 查看
选关界面


GameSelectLayer.ccbx
[html]view plaincopy



<?xmlversion="1.0"encoding="UTF-8"?>

<Document

jsControlled="true"

jsController="GameSelectLayer"

resolution="default"

>

<Resolutions>

<ResolutioncenteredOrigin="false"ext="iphone"height="1280"width="720"name="default"scale="1"/>

<ResolutioncenteredOrigin="false"ext="iphone"height="720"width="1280"name="default1"scale="1"/>

</Resolutions>

<Animations>

<AnimationautoPlay="true"

id="0"

name="Default Timeline"

length="10"

chainedId="0"

offset="0.0"

position="0.0"

resolution="30"

scale="128">

<CallbackChannel>

</CallbackChannel>

<SoundChannel>

</SoundChannel>

</Animation>

</Animations>

<Layer

positionX="0"positionY="0"

width="100"height="100"sizeType="Percent"

anchorPointX="0.5"anchorPointY="0.5"ignoreAnchorPoint="true"

scaleX="1"scaleY="1"

touchEnabled="true"positionType="LeftBottom">

<LayerColorpositionType="LeftBottom"width="720"height="1280"positionX="0"positionY="0"anchorPointX="0"

anchorPointY="0"color="#ff20b4ff"/>

<Spritename="bg_g"var="b1"target="Doc"positionX="360"positionY="641"

positionType="LeftBottom"anchorPointX="0.5"anchorPointY="0.5"

scaleX="1"scaleY="1"scaleType="Absolute"ignoreAnchorPoint="false"

src="Resources/s_bg_grade.png"visible="false"color="#ffffffff"/>

<SpritepositionType="LeftBottom"width="587.0"height="834"positionX="361.0"positionY="689.0"anchorPointX="0.5"

anchorPointY="0.5"src="Resources/s_bg_grade.png">

<NodepositionType="LeftBottom"width="40"height="100"positionX="42.0"positionY="42.0"anchorPointX="0"

anchorPointY="0"target="Doc"var="listTop">

<ScrollViewname="levelScrollPanel"

var="levelScrollPanel"target="Doc"positionX="0"positionY="100"

positionType="LeftBottom"width="510"height="500"

sizeType="Absolute"anchorPointX="0"anchorPointY="0"

scaleX="1"scaleY="1"

clipsToBounds="true"

direction="Horizontal"

bounces="true"

ignoreAnchorPoint="true"visible="true"touchEnabled="true"mouseEnabled="true">

</ScrollView></Node>

<NodepositionType="LeftBottom"width="40"height="40"positionX="268.0"positionY="73.0"anchorPointX="0.5"

anchorPointY="0.5"var="dotNode"target="Doc"/>

</Sprite>

</Layer>

</Document>

后面的内容见多,此平台不支持这么多文字,详情请参考我在csdn上的博客:http://blog.csdn.net/touchsnow/article/details/18770755csdn博客
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息