实例介绍
【实例简介】
- 打字机
用途:文字对话,逐字出现文字。常用于新手引导文字对话、人物对话
- 跑马灯
用途:在一个区域内,实现文字滚动。常用于游戏公告、弹幕消息
- 背景无限滚动
用途:让背景动起来。
- 遥控杆
用途:通过遥杆控制目标移动方向。
- 滚动式组件
用途:让多个子控件在一个区域内实现滚动。常用于小游戏内,作为跳转其他小游戏的入口,做滚动效果。
【实例截图】
【核心代码】
CocosCreatorDemo-master
├── GameDesignDemo
│ ├── README.md
│ ├── assets
│ │ ├── Scene
│ │ │ ├── BgRollInfinite.fire
│ │ │ ├── BgRollInfinite.fire.meta
│ │ │ ├── HorseRaceLamp.fire
│ │ │ ├── HorseRaceLamp.fire.meta
│ │ │ ├── Rocker.fire
│ │ │ ├── Rocker.fire.meta
│ │ │ ├── ScrollItemList.fire
│ │ │ ├── ScrollItemList.fire.meta
│ │ │ ├── TypeWriter.fire
│ │ │ └── TypeWriter.fire.meta
│ │ ├── Scene.meta
│ │ ├── Script
│ │ │ ├── BgRollInfinite.ts
│ │ │ ├── BgRollInfinite.ts.meta
│ │ │ ├── HorseReceLamp.ts
│ │ │ ├── HorseReceLamp.ts.meta
│ │ │ ├── Rocker.ts
│ │ │ ├── Rocker.ts.meta
│ │ │ ├── ScrollItemList.ts
│ │ │ ├── ScrollItemList.ts.meta
│ │ │ ├── TypeWriter.ts
│ │ │ └── TypeWriter.ts.meta
│ │ ├── Script.meta
│ │ ├── Texture
│ │ │ ├── HelloWorld.png
│ │ │ ├── HelloWorld.png.meta
│ │ │ ├── bg.png
│ │ │ ├── bg.png.meta
│ │ │ ├── joystick.png
│ │ │ ├── joystick.png.meta
│ │ │ ├── rockerBg.png
│ │ │ ├── rockerBg.png.meta
│ │ │ ├── singleColor.png
│ │ │ └── singleColor.png.meta
│ │ ├── Texture.meta
│ │ ├── resources
│ │ │ ├── item.prefab
│ │ │ └── item.prefab.meta
│ │ └── resources.meta
│ ├── creator.d.ts
│ ├── jsconfig.json
│ ├── project.json
│ ├── settings
│ │ ├── builder.json
│ │ ├── builder.panel.json
│ │ ├── project.json
│ │ └── services.json
│ ├── template-banner.png
│ ├── template.json
│ └── tsconfig.json
└── README.md
7 directories, 48 files
标签: cocoscreator cocos demo COCO co
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
网友评论
我要评论