Commit 596fc75b authored by liujiangnan's avatar liujiangnan

feat: 改成新的脚手架

parent c0bfb02e
/publish/form
/form/publish/*.zip
/publish/play
/publish/node_modules
/publish/publish/play
/publish/publish/form
/publish/publish/android
/publish/publish/ios
/publish/publish/*.zip
/node_modules
\ No newline at end of file
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
/library/
/temp/
/local/
/build/
#/////////////////////////////////////////////////////////////////////////////
# npm files
#/////////////////////////////////////////////////////////////////////////////
npm-debug.log
node_modules/
#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////
*.log
*.sql
*.sqlite
#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////
*.sln
*.csproj
*.pidb
*.unityproj
*.suo
#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////
.DS_Store
ehthumbs.db
Thumbs.db
#/////////////////////////////////////////////////////////////////////////////
# WebStorm files
#/////////////////////////////////////////////////////////////////////////////
.idea/
#//////////////////////////
# VS Code files
#//////////////////////////
.vscode/
/node_modules
/dist
/publish
/publish/form
/form/publish/*.zip
/publish/play
/node_modules
/build_android
/build_ios
/build_web_desktop
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
......
......@@ -30,20 +30,22 @@ git clone xxx
cd 项目名称/
npm install
// 打开Cocos Creator, 点击项目(Project)=> 添加(Add) 在打开的对话框里面选择进入clone下来的项目,选择play文件夹,然后打开
// 进行常规的Cocos开发
```
* 打开Cocos Creator, 点击项目(Project)=> 添加(Add) 在打开的对话框里面选择进入clone下来的项目,选择本项目,然后打开
* 基于项目里“this.data”进行常规的Cocos开发 (其中this.data是云平台的配置数据)
* 注意 Cocos Creator 版本必须是2.4.5
## 本地调试
在基于CocosCreator的开发与预览调试都完成之后,需要进行模板放到云平台上的数据配置等方面的调试,还要进行cocos打包到IOS/Android真机上的调试,为了更方便与高效的调试,我们提供了如下工具进行调试与测试
### 普通模板
* 找到 Cocos Creator 的安装目录下 Creator/2.4.5/CocosCreator.app/Contents/Resources/static/preview-templates/index.jade 文件
* 在引入JS的位置添加如下代码:
* 启动本地服务
```
script(type='text/javascript' charset='utf-8' src='//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js')
npm start
```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
......@@ -51,13 +53,32 @@ script(type='text/javascript' charset='utf-8' src='//staging-teach.cdn.ireadabc.
### 互动模板
* 找到 Cocos Creator 的安装目录下 Creator/2.4.5/CocosCreator.app/Contents/Resources/static/preview-templates/index.jade 文件
* 在引入JS的位置添加如下代码:
* 找到项目根路径下 index.html 文件
* 在引入JS的位置将air.js改为air_online_open.js
* 启动本地服务
```
script(type='text/javascript' charset='utf-8' src='//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online_open.js')
npm start
```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
* 点击右上角齿轮,选择技术选型、调试模式选择“互动”
* 左侧老师、右侧学生
\ No newline at end of file
* 左侧老师、右侧学生
### 真机调试
* 下载模板调试专用app
http://download-iplayabc.oss-cn-beijing.aliyuncs.com/iDebugABC.apk
![avatar](http://staging-teach.cdn.ireadabc.com/084f2f95-8213-4c5a-8c46-b194819d7677.png)
* 启动本地服务
```
npm start
```
* 手机和电脑连接同一个Wifi
* 打开调试app,根据提示输入IP地址,点击开始就可以在手机上预览模板了
* 使用 this.log("==调试信息=="); 可以打印日志进行必要的调试
\ No newline at end of file
{"width":512,"imagePath":"WL01_tex.png","height":512,"name":"WL01-flower(1)","SubTexture":[{"width":210,"y":1,"height":198,"name":"WL01-flower(1)/矢量智能对象_17","x":1},{"width":79,"y":348,"height":74,"name":"WL01-flower(1)/矢量智能对象_16","x":1},{"width":47,"y":406,"height":44,"name":"WL01-flower(1)/矢量智能对象_15","x":82},{"width":157,"y":150,"height":147,"name":"WL01-flower(1)/矢量智能对象_14","x":213},{"width":58,"y":342,"height":54,"name":"WL01-flower(1)/矢量智能对象_13","x":329},{"width":120,"y":124,"height":113,"name":"WL01-flower(1)/矢量智能对象_12","x":372},{"width":157,"y":1,"height":147,"name":"WL01-flower(1)/矢量智能对象_11","x":213},{"width":89,"y":299,"height":84,"name":"WL01-flower(1)/矢量智能对象_10","x":157},{"width":154,"y":201,"height":145,"name":"WL01-flower(1)/矢量智能对象_9","x":1},{"width":128,"y":1,"height":121,"name":"WL01-flower(1)/矢量智能对象_8","x":372},{"width":60,"y":348,"height":56,"name":"WL01-flower(1)/矢量智能对象_7","x":82},{"width":47,"y":247,"height":44,"name":"WL01-flower(1)/矢量智能对象_6","x":157},{"width":79,"y":299,"height":74,"name":"WL01-flower(1)/矢量智能对象_5","x":248},{"width":47,"y":201,"height":44,"name":"WL01-flower(1)/矢量智能对象_4","x":157},{"width":45,"y":342,"height":42,"name":"WL01-flower(1)/矢量智能对象_3","x":389},{"width":45,"y":424,"height":42,"name":"WL01-flower(1)/矢量智能对象_2","x":1},{"width":58,"y":375,"height":54,"name":"WL01-flower(1)/矢量智能对象_1","x":248},{"width":107,"y":239,"height":101,"name":"WL01-flower(1)/矢量智能对象_0","x":372},{"width":58,"y":385,"height":54,"name":"WL01-flower(1)/矢量智能对象","x":144}]}
\ No newline at end of file
......@@ -11,7 +11,7 @@
"height": 512,
"platformSettings": {},
"subMetas": {
"WL01-flower(1)_tex": {
"WL01_tex": {
"ver": "1.0.4",
"uuid": "4899d243-41fa-4e99-ad75-7e0741ad39f1",
"rawTextureUuid": "f06f7289-a956-4aac-8242-f482aa66ae16",
......
{"width":256,"SubTexture":[{"width":55,"y":107,"height":77,"name":"苍蝇(1)01/图层_31","x":77},{"width":74,"y":107,"height":84,"name":"苍蝇(1)01/图层_35","x":1},{"width":101,"y":1,"height":104,"name":"苍蝇(1)01/图层_21","x":1},{"width":54,"y":179,"height":53,"name":"苍蝇(1)01/图层_39","x":143},{"width":31,"y":35,"height":28,"name":"苍蝇(1)01/图层_55","x":196},{"width":8,"y":238,"height":7,"name":"苍蝇(1)01/图层_56","x":53},{"width":14,"y":238,"height":12,"name":"苍蝇(1)01/图层_37","x":1},{"width":64,"y":186,"height":66,"name":"苍蝇(1)01/图层_36","x":77},{"width":60,"y":107,"height":70,"name":"苍蝇(1)01/图层_32","x":134},{"width":39,"y":1,"height":32,"name":"苍蝇(1)01/图层_54","x":196},{"width":7,"y":238,"height":7,"name":"苍蝇(1)01/图层_57","x":63},{"width":12,"y":238,"height":14,"name":"苍蝇(1)01/图层_58","x":17},{"width":20,"y":238,"height":7,"name":"苍蝇(1)01/图层_50","x":31},{"width":67,"y":193,"height":43,"name":"苍蝇(1)01/图层_18","x":1}],"height":256,"name":"WL02-fiy","imagePath":"WL02-fiy_tex.png"}
\ No newline at end of file
{"width":256,"SubTexture":[{"width":55,"y":107,"height":77,"name":"苍蝇(1)01/图层_31","x":77},{"width":74,"y":107,"height":84,"name":"苍蝇(1)01/图层_35","x":1},{"width":101,"y":1,"height":104,"name":"苍蝇(1)01/图层_21","x":1},{"width":54,"y":179,"height":53,"name":"苍蝇(1)01/图层_39","x":143},{"width":31,"y":35,"height":28,"name":"苍蝇(1)01/图层_55","x":196},{"width":8,"y":238,"height":7,"name":"苍蝇(1)01/图层_56","x":53},{"width":14,"y":238,"height":12,"name":"苍蝇(1)01/图层_37","x":1},{"width":64,"y":186,"height":66,"name":"苍蝇(1)01/图层_36","x":77},{"width":60,"y":107,"height":70,"name":"苍蝇(1)01/图层_32","x":134},{"width":39,"y":1,"height":32,"name":"苍蝇(1)01/图层_54","x":196},{"width":7,"y":238,"height":7,"name":"苍蝇(1)01/图层_57","x":63},{"width":12,"y":238,"height":14,"name":"苍蝇(1)01/图层_58","x":17},{"width":20,"y":238,"height":7,"name":"苍蝇(1)01/图层_50","x":31},{"width":67,"y":193,"height":43,"name":"苍蝇(1)01/图层_18","x":1}],"height":256,"name":"WL02-fiy","imagePath":"WL02_tex.png"}
\ No newline at end of file
......@@ -11,7 +11,7 @@
"height": 256,
"platformSettings": {},
"subMetas": {
"WL02-fiy_tex": {
"WL02_tex": {
"ver": "1.0.4",
"uuid": "376fb951-5155-4439-8a06-f90d7140553b",
"rawTextureUuid": "b899fb91-da61-49af-bfa7-660fd09df1ab",
......
{"width":512,"imagePath":"cangying_tex.png","height":512,"name":"苍蝇拍灰尘","SubTexture":[{"width":364,"y":1,"height":308,"name":"苍蝇拍灰尘/图层_0","x":1},{"width":66,"y":311,"height":105,"name":"苍蝇拍灰尘/粉末2","x":82},{"width":117,"y":164,"height":161,"name":"苍蝇拍灰尘/粉末1","x":367},{"width":79,"y":311,"height":102,"name":"苍蝇拍灰尘/粉末2_拷贝","x":1},{"width":117,"y":1,"height":161,"name":"苍蝇拍灰尘/粉末1_拷贝","x":367}]}
\ No newline at end of file
......@@ -11,7 +11,7 @@
"height": 512,
"platformSettings": {},
"subMetas": {
"苍蝇拍灰尘_tex": {
"cangying_tex": {
"ver": "1.0.4",
"uuid": "467592e4-2b3c-4a0b-892a-6f30ec3aecde",
"rawTextureUuid": "7d17d49f-da42-4da2-be7c-ae9aa5d0ce90",
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment