于今腐草无萤火,终古垂杨有暮鸦。这篇文章主要讲述十四 手游开发神器 cocos2d-x editor 之串联游戏流程相关的知识,希望能为你提供帮助。
【十四 手游开发神器 cocos2d-x editor 之串联游戏流程】一般游戏都包括几个流程,加载界面,开始界面,选关界面,主界面,暂停界面等等;这节我将这些流程都串联起来;
代码下载:http://www.kuaipan.cn/file/id_25348935635745200.htm?source=1
loading界面;
文章图片
LoadingLayer.ccbx
[html]view plaincopy
文章图片
文章图片
- <
?xmlversion="1.0"encoding="UTF-8"?>
- <
Document
- jsControlled="true"
- jsController=""
- 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"target="Owner">
- <
LayerColorpositionType="LeftBottom"width="720"height="1280"positionX="0"positionY="0"anchorPointX="0"
- anchorPointY="0"color="#ffff40b8"target="Doc"/>
- <
SpritepositionType="LeftBottom"width="245.0"height="72.0"positionX="381.0"positionY="661.0"anchorPointX="0.5"
- anchorPointY="0.5"src="https://www.songbingjia.com/android/Resources/snow_packer.plist/sa_loading_0001.png"
- target="Owner"/>
- <
/Layer>
- <
/Document>
开始界面;
文章图片
StartLayer.ccbx
[html]view plaincopy
文章图片
文章图片
- <
?xmlversion="1.0"encoding="UTF-8"?>
- <
Document
- jsControlled="true"
- jsController="StartLayer"
- 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>
-
推荐阅读
- cocos2d-x从c++到js17(使用FireFox进行JS远程调试)
- docker离线安装脚本
- cocos2d-x自制工具09(复活!x2屏幕适配方案)
- Kafka集群搭建
- VMware ESXi 6.7.0.0 升级到 VMware ESXi 7.0.2
- 2021年8月券商App行情刷新及交易体验评测报告
- 用keepalived实现Samba高可用
- c++
- 本地yum仓库搭建