add shadow
update readme
14
README.md
@@ -1,16 +1,16 @@
|
||||
# cocos-creator-examples
|
||||
cocos creator 一些使用实例
|
||||
|
||||
## aimLine
|
||||
## [aimLine](./aimLine)
|
||||
|
||||
反复横跳的瞄准线
|
||||
[反复横跳的瞄准线](https://mp.weixin.qq.com/s/-zh_4SEd_QMk56T0yE01hQ)
|
||||
|
||||

|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
|
||||
## runMan
|
||||
## [runMan](./runMan)
|
||||
|
||||
[蹦跑的小人](https://mp.weixin.qq.com/s/DiB031FORp2JNmWXTdVzmw)
|
||||
|
||||
@@ -19,7 +19,7 @@ cocos creator v2.0.8
|
||||
cocos creator v2.0.8
|
||||
|
||||
|
||||
## ktvLabel
|
||||
## [ktvLabel](./ktvLabel)
|
||||
|
||||
[KTV 歌词逐字效果](https://mp.weixin.qq.com/s/os1_7hd3pZX32c128O7QGA)
|
||||
|
||||
@@ -27,7 +27,13 @@ cocos creator v2.0.8
|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
## [shadow](./shadow)
|
||||
|
||||
[残影拖尾效果](https://mp.weixin.qq.com/s/iuoyQvCPryajMsfga2IofA)
|
||||
|
||||

|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,2 +1,11 @@
|
||||
# hello-world
|
||||
Hello world new project template.
|
||||
[反复横跳的瞄准线](https://mp.weixin.qq.com/s/-zh_4SEd_QMk56T0yE01hQ)
|
||||
|
||||

|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
BIN
img/shadow.gif
Normal file
|
After Width: | Height: | Size: 112 KiB |
@@ -1,2 +1,11 @@
|
||||
# hello-world
|
||||
Hello world new project template.
|
||||
[KTV 歌词逐字效果](https://mp.weixin.qq.com/s/os1_7hd3pZX32c128O7QGA)
|
||||
|
||||

|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
@@ -1,2 +1,10 @@
|
||||
# hello-world
|
||||
Hello world new project template.
|
||||
[蹦跑的小人](https://mp.weixin.qq.com/s/DiB031FORp2JNmWXTdVzmw)
|
||||
|
||||

|
||||
|
||||
cocos creator v2.0.8
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
67
shadow/.gitignore
vendored
Executable file
@@ -0,0 +1,67 @@
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# Fireball Projects
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
library/
|
||||
temp/
|
||||
local/
|
||||
build/
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# Logs and databases
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# files for debugger
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
*.sln
|
||||
*.csproj
|
||||
*.pidb
|
||||
*.unityproj
|
||||
*.suo
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# OS generated files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
.DS_Store
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# exvim files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
*UnityVS.meta
|
||||
*.err
|
||||
*.err.meta
|
||||
*.exvim
|
||||
*.exvim.meta
|
||||
*.vimentry
|
||||
*.vimentry.meta
|
||||
*.vimproject
|
||||
*.vimproject.meta
|
||||
.vimfiles.*/
|
||||
.exvim.*/
|
||||
quick_gen_project_*_autogen.bat
|
||||
quick_gen_project_*_autogen.bat.meta
|
||||
quick_gen_project_*_autogen.sh
|
||||
quick_gen_project_*_autogen.sh.meta
|
||||
.exvim.app
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# webstorm files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
.idea/
|
||||
|
||||
#//////////////////////////
|
||||
# VS Code
|
||||
#//////////////////////////
|
||||
|
||||
.vscode/
|
||||
21
shadow/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 lamyoung
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
12
shadow/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# [残影效果](https://mp.weixin.qq.com/s/iuoyQvCPryajMsfga2IofA)
|
||||
|
||||

|
||||
|
||||
|
||||
---
|
||||
cocos creator v2.0.8
|
||||
|
||||
---
|
||||
|
||||
|
||||

|
||||
6
shadow/assets/Scene.meta
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
1281
shadow/assets/Scene/helloworld.fire
Executable file
7
shadow/assets/Scene/helloworld.fire.meta
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "0.9.0",
|
||||
"uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
6
shadow/assets/Script.meta
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
41
shadow/assets/Script/Helloworld.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class Helloworld extends cc.Component {
|
||||
@property(cc.Camera)
|
||||
camera: cc.Camera = null;
|
||||
|
||||
@property([cc.Sprite])
|
||||
sp_cameras: cc.Sprite[] = [];
|
||||
|
||||
@property(cc.Node)
|
||||
node_icon: cc.Node = null;
|
||||
|
||||
onLoad() {
|
||||
const texture = new cc.RenderTexture();
|
||||
texture.initWithSize(this.sp_cameras[0].node.width, this.sp_cameras[0].node.height);
|
||||
const spriteFrame = new cc.SpriteFrame();
|
||||
spriteFrame.setTexture(texture);
|
||||
this.camera.targetTexture = texture;
|
||||
this.sp_cameras.forEach((v) => {
|
||||
v.spriteFrame = spriteFrame
|
||||
})
|
||||
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onNodeIconTouchMove, this);
|
||||
this.schedule(this.shadowFollow, 0.1, cc.macro.REPEAT_FOREVER);
|
||||
}
|
||||
|
||||
private shadowFollow() {
|
||||
this.sp_cameras.forEach((v, i) => {
|
||||
const dis = this.node.position.sub(v.node.position).mag();
|
||||
if (dis > 0) {
|
||||
v.node.stopAllActions();
|
||||
v.node.runAction(cc.moveTo(i * 0.05 + 0.02, this.node_icon.x, this.node_icon.y));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private onNodeIconTouchMove(evt: cc.Event.EventTouch) {
|
||||
this.node_icon.x += evt.getDeltaX();
|
||||
this.node_icon.y += evt.getDeltaY();
|
||||
}
|
||||
}
|
||||
9
shadow/assets/Script/Helloworld.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "e1b90feb-a217-4493-849d-9a611900d683",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
6
shadow/assets/Texture.meta
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
BIN
shadow/assets/Texture/HelloWorld.png
Executable file
|
After Width: | Height: | Size: 37 KiB |
31
shadow/assets/Texture/HelloWorld.png.meta
Executable file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"ver": "2.2.0",
|
||||
"uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"subMetas": {
|
||||
"HelloWorld": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc",
|
||||
"rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 195,
|
||||
"height": 270,
|
||||
"rawWidth": 195,
|
||||
"rawHeight": 270,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
shadow/assets/Texture/about.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
31
shadow/assets/Texture/about.jpg.meta
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"ver": "2.2.0",
|
||||
"uuid": "af881a83-cac6-4734-94ad-0e64a7692abb",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"subMetas": {
|
||||
"about": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "ca28cfd5-545f-466e-a539-115c29bf099d",
|
||||
"rawTextureUuid": "af881a83-cac6-4734-94ad-0e64a7692abb",
|
||||
"trimType": "custom",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 900,
|
||||
"height": 383,
|
||||
"rawWidth": 900,
|
||||
"rawHeight": 383,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
shadow/assets/Texture/qrcode.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
31
shadow/assets/Texture/qrcode.jpg.meta
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"ver": "2.2.0",
|
||||
"uuid": "09ce3268-5dc1-4980-819d-0d67d4a79226",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"subMetas": {
|
||||
"qrcode": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "edfe2d01-007b-4dcf-a8bf-e384e83045ec",
|
||||
"rawTextureUuid": "09ce3268-5dc1-4980-819d-0d67d4a79226",
|
||||
"trimType": "custom",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 258,
|
||||
"height": 258,
|
||||
"rawWidth": 258,
|
||||
"rawHeight": 258,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
shadow/assets/Texture/singleColor.png
Executable file
|
After Width: | Height: | Size: 17 KiB |
31
shadow/assets/Texture/singleColor.png.meta
Executable file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"ver": "2.2.0",
|
||||
"uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"subMetas": {
|
||||
"singleColor": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "410fb916-8721-4663-bab8-34397391ace7",
|
||||
"rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"rawWidth": 2,
|
||||
"rawHeight": 2,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
shadow/assets/spine.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "959f96b9-fd6f-4249-b888-84f235278322",
|
||||
"isSubpackage": false,
|
||||
"subpackageName": "",
|
||||
"subMetas": {}
|
||||
}
|
||||
7
shadow/assets/spine/cunzhang.meta
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "cbac7bb5-9f99-44ca-9dcd-65477b105d9f",
|
||||
"isSubpackage": false,
|
||||
"subpackageName": "",
|
||||
"subMetas": {}
|
||||
}
|
||||
384
shadow/assets/spine/cunzhang/cunzhang_lr.atlas.txt
Executable file
@@ -0,0 +1,384 @@
|
||||
|
||||
cunzhang_lr.png
|
||||
size: 512,512
|
||||
format: RGBA8888
|
||||
filter: Linear,Linear
|
||||
repeat: none
|
||||
JiaoDi_A
|
||||
rotate: true
|
||||
xy: 20, 24
|
||||
size: 41, 14
|
||||
orig: 41, 14
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
body
|
||||
rotate: true
|
||||
xy: 219, 381
|
||||
size: 41, 43
|
||||
orig: 41, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bodya
|
||||
rotate: true
|
||||
xy: 264, 381
|
||||
size: 41, 43
|
||||
orig: 41, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
bodya2
|
||||
rotate: true
|
||||
xy: 309, 381
|
||||
size: 41, 43
|
||||
orig: 41, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang1
|
||||
rotate: false
|
||||
xy: 2, 370
|
||||
size: 31, 140
|
||||
orig: 31, 140
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang2
|
||||
rotate: true
|
||||
xy: 396, 395
|
||||
size: 8, 20
|
||||
orig: 8, 20
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang2a
|
||||
rotate: false
|
||||
xy: 34, 2
|
||||
size: 8, 20
|
||||
orig: 8, 20
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang3
|
||||
rotate: false
|
||||
xy: 2, 137
|
||||
size: 33, 33
|
||||
orig: 33, 33
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang3a
|
||||
rotate: false
|
||||
xy: 2, 102
|
||||
size: 33, 33
|
||||
orig: 33, 33
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang3a2
|
||||
rotate: false
|
||||
xy: 2, 67
|
||||
size: 33, 33
|
||||
orig: 33, 33
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang4
|
||||
rotate: true
|
||||
xy: 35, 372
|
||||
size: 16, 43
|
||||
orig: 16, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang4a
|
||||
rotate: false
|
||||
xy: 2, 22
|
||||
size: 16, 43
|
||||
orig: 16, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhang4a2
|
||||
rotate: true
|
||||
xy: 80, 372
|
||||
size: 16, 43
|
||||
orig: 16, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
fazhanga02
|
||||
rotate: true
|
||||
xy: 159, 369
|
||||
size: 16, 24
|
||||
orig: 16, 24
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
head
|
||||
rotate: false
|
||||
xy: 35, 425
|
||||
size: 61, 85
|
||||
orig: 61, 85
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
heada
|
||||
rotate: false
|
||||
xy: 98, 425
|
||||
size: 61, 85
|
||||
orig: 61, 85
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
heada2
|
||||
rotate: false
|
||||
xy: 161, 425
|
||||
size: 61, 85
|
||||
orig: 61, 85
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
heada2a
|
||||
rotate: true
|
||||
xy: 2, 311
|
||||
size: 57, 19
|
||||
orig: 57, 19
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm1
|
||||
rotate: false
|
||||
xy: 396, 405
|
||||
size: 27, 27
|
||||
orig: 27, 27
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm1a
|
||||
rotate: false
|
||||
xy: 477, 445
|
||||
size: 27, 27
|
||||
orig: 27, 27
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm1a2
|
||||
rotate: false
|
||||
xy: 23, 341
|
||||
size: 27, 27
|
||||
orig: 27, 27
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm2
|
||||
rotate: true
|
||||
xy: 368, 427
|
||||
size: 30, 25
|
||||
orig: 30, 25
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm2a
|
||||
rotate: false
|
||||
xy: 395, 434
|
||||
size: 30, 25
|
||||
orig: 30, 25
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
larm2a2
|
||||
rotate: true
|
||||
xy: 369, 395
|
||||
size: 30, 25
|
||||
orig: 30, 25
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot1
|
||||
rotate: false
|
||||
xy: 23, 312
|
||||
size: 15, 8
|
||||
orig: 15, 8
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot1a
|
||||
rotate: true
|
||||
xy: 40, 324
|
||||
size: 15, 8
|
||||
orig: 15, 8
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot1a2
|
||||
rotate: false
|
||||
xy: 185, 370
|
||||
size: 15, 8
|
||||
orig: 15, 8
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot2
|
||||
rotate: false
|
||||
xy: 52, 360
|
||||
size: 11, 10
|
||||
orig: 11, 10
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot2a
|
||||
rotate: false
|
||||
xy: 52, 348
|
||||
size: 11, 10
|
||||
orig: 11, 10
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
lfoot2a2
|
||||
rotate: false
|
||||
xy: 65, 360
|
||||
size: 11, 10
|
||||
orig: 11, 10
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qu2
|
||||
rotate: false
|
||||
xy: 389, 474
|
||||
size: 57, 36
|
||||
orig: 57, 36
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qu2a
|
||||
rotate: false
|
||||
xy: 448, 474
|
||||
size: 57, 36
|
||||
orig: 57, 36
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qu2a2
|
||||
rotate: false
|
||||
xy: 127, 387
|
||||
size: 57, 36
|
||||
orig: 57, 36
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qun1
|
||||
rotate: false
|
||||
xy: 224, 459
|
||||
size: 53, 51
|
||||
orig: 53, 51
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qun1a
|
||||
rotate: false
|
||||
xy: 279, 459
|
||||
size: 53, 51
|
||||
orig: 53, 51
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
qun1a2
|
||||
rotate: false
|
||||
xy: 334, 459
|
||||
size: 53, 51
|
||||
orig: 53, 51
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm1
|
||||
rotate: true
|
||||
xy: 224, 424
|
||||
size: 33, 46
|
||||
orig: 33, 46
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm1a
|
||||
rotate: true
|
||||
xy: 272, 424
|
||||
size: 33, 46
|
||||
orig: 33, 46
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm1a2
|
||||
rotate: true
|
||||
xy: 320, 424
|
||||
size: 33, 46
|
||||
orig: 33, 46
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm2
|
||||
rotate: false
|
||||
xy: 186, 380
|
||||
size: 31, 43
|
||||
orig: 31, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm2a
|
||||
rotate: false
|
||||
xy: 2, 217
|
||||
size: 31, 43
|
||||
orig: 31, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm2a2
|
||||
rotate: false
|
||||
xy: 2, 172
|
||||
size: 31, 43
|
||||
orig: 31, 43
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rarm3
|
||||
rotate: false
|
||||
xy: 23, 322
|
||||
size: 15, 17
|
||||
orig: 15, 17
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rfoot1
|
||||
rotate: true
|
||||
xy: 427, 441
|
||||
size: 18, 13
|
||||
orig: 18, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rfoot1a
|
||||
rotate: false
|
||||
xy: 442, 444
|
||||
size: 18, 13
|
||||
orig: 18, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
rfoot1a2
|
||||
rotate: true
|
||||
xy: 462, 439
|
||||
size: 18, 13
|
||||
orig: 18, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
waitaoa2
|
||||
rotate: true
|
||||
xy: 35, 390
|
||||
size: 33, 90
|
||||
orig: 33, 90
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
waitaoa3
|
||||
rotate: false
|
||||
xy: 2, 262
|
||||
size: 27, 47
|
||||
orig: 27, 47
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yao
|
||||
rotate: true
|
||||
xy: 354, 390
|
||||
size: 32, 13
|
||||
orig: 32, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yaoa
|
||||
rotate: false
|
||||
xy: 443, 459
|
||||
size: 32, 13
|
||||
orig: 32, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yaoa2
|
||||
rotate: false
|
||||
xy: 125, 372
|
||||
size: 32, 13
|
||||
orig: 32, 13
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yaodaai1a
|
||||
rotate: false
|
||||
xy: 2, 2
|
||||
size: 14, 18
|
||||
orig: 14, 18
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yaodaai1a2
|
||||
rotate: false
|
||||
xy: 18, 2
|
||||
size: 14, 18
|
||||
orig: 14, 18
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
yaodai2
|
||||
rotate: true
|
||||
xy: 389, 461
|
||||
size: 11, 52
|
||||
orig: 11, 52
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
5
shadow/assets/spine/cunzhang/cunzhang_lr.atlas.txt.meta
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ver": "2.0.0",
|
||||
"uuid": "7aae7aad-53d7-453f-aae7-71d229e508b3",
|
||||
"subMetas": {}
|
||||
}
|
||||
1
shadow/assets/spine/cunzhang/cunzhang_lr.json
Executable file
10
shadow/assets/spine/cunzhang/cunzhang_lr.json.meta
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"uuid": "57709bb2-2a12-4a93-bcdb-f8c566639384",
|
||||
"textures": [
|
||||
"65710674-80f4-4037-9009-4dc035b9a6b3"
|
||||
],
|
||||
"atlas": "7aae7aad-53d7-453f-aae7-71d229e508b3",
|
||||
"scale": 1,
|
||||
"subMetas": {}
|
||||
}
|
||||
BIN
shadow/assets/spine/cunzhang/cunzhang_lr.png
Executable file
|
After Width: | Height: | Size: 102 KiB |
31
shadow/assets/spine/cunzhang/cunzhang_lr.png.meta
Executable file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"ver": "2.2.0",
|
||||
"uuid": "65710674-80f4-4037-9009-4dc035b9a6b3",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"subMetas": {
|
||||
"cunzhang_lr": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "c11de136-8a32-4fdb-8efb-5a48150cf9e0",
|
||||
"rawTextureUuid": "65710674-80f4-4037-9009-4dc035b9a6b3",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -2.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 2,
|
||||
"trimY": 2,
|
||||
"width": 503,
|
||||
"height": 508,
|
||||
"rawWidth": 512,
|
||||
"rawHeight": 512,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
shadow/build-templates/web-mobile/splash.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
24564
shadow/creator.d.ts
vendored
Normal file
15
shadow/jsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"experimentalDecorators": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
".vscode",
|
||||
"library",
|
||||
"local",
|
||||
"settings",
|
||||
"temp"
|
||||
]
|
||||
}
|
||||
4
shadow/project.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"engine": "cocos2d-html5",
|
||||
"packages": "packages"
|
||||
}
|
||||
42
shadow/settings/builder.json
Executable file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"android-instant": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"host": "",
|
||||
"pathPattern": "",
|
||||
"recordPath": "",
|
||||
"scheme": "https",
|
||||
"skipRecord": false
|
||||
},
|
||||
"encryptJs": true,
|
||||
"excludeScenes": [],
|
||||
"fb-instant-games": {},
|
||||
"includeSDKBox": false,
|
||||
"inlineSpriteFrames": true,
|
||||
"inlineSpriteFrames_native": true,
|
||||
"md5Cache": true,
|
||||
"mergeStartScene": false,
|
||||
"optimizeHotUpdate": false,
|
||||
"orientation": {
|
||||
"landscapeLeft": true,
|
||||
"landscapeRight": true,
|
||||
"portrait": false,
|
||||
"upsideDown": false
|
||||
},
|
||||
"packageName": "org.cocos2d.helloworld",
|
||||
"qqplay": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"orientation": "portrait",
|
||||
"zip": false
|
||||
},
|
||||
"startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"title": "lamyoung-com",
|
||||
"webOrientation": "auto",
|
||||
"wechatgame": {
|
||||
"REMOTE_SERVER_ROOT": "",
|
||||
"appid": "wx6ac3f5090a6b99c5",
|
||||
"orientation": "portrait",
|
||||
"subContext": ""
|
||||
},
|
||||
"xxteaKey": "2be229d5-cea8-49",
|
||||
"zipCompressJs": true
|
||||
}
|
||||
7
shadow/settings/builder.panel.json
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"excludeScenes": [],
|
||||
"packageName": "org.cocos2d.helloworld",
|
||||
"platform": "web-mobile",
|
||||
"startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"title": "HelloWorld"
|
||||
}
|
||||
45
shadow/settings/project.json
Executable file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"collision-matrix": [
|
||||
[
|
||||
true
|
||||
],
|
||||
[
|
||||
false,
|
||||
false
|
||||
],
|
||||
[
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
],
|
||||
"design-resolution-height": 640,
|
||||
"design-resolution-width": 960,
|
||||
"excluded-modules": [],
|
||||
"facebook": {
|
||||
"appID": "",
|
||||
"audience": {
|
||||
"enable": false
|
||||
},
|
||||
"enable": false,
|
||||
"live": {
|
||||
"enable": false
|
||||
}
|
||||
},
|
||||
"fit-height": true,
|
||||
"fit-width": false,
|
||||
"group-list": [
|
||||
"default",
|
||||
"camera_show",
|
||||
"role"
|
||||
],
|
||||
"last-module-event-record-time": 1568972417553,
|
||||
"simulator-orientation": false,
|
||||
"simulator-resolution": {
|
||||
"height": 640,
|
||||
"width": 960
|
||||
},
|
||||
"use-customize-simulator": false,
|
||||
"use-project-simulator-setting": false,
|
||||
"start-scene": "current"
|
||||
}
|
||||
102
shadow/settings/services.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"services": [
|
||||
{
|
||||
"service_id": "235",
|
||||
"service_name": "Cocos Analytics",
|
||||
"service_icon": "https://account.cocos.com/client/3f8f31ccf66995e183044f167c092395.png",
|
||||
"service_desc": "提供最核心最基本的数据、标准化界面功能简洁易用、数据准确性最好",
|
||||
"service_title": "精准了解游戏的新增、活跃、留存、付费等数据",
|
||||
"service_guide_url": "https://n-analytics.cocos.com/docs/",
|
||||
"service_sample_url": "https://github.com/cocos-creator/tutorial-dark-slash/tree/analytics",
|
||||
"service_dev_url": "http://analytics.cocos.com/realtime/jump_to/<app_id>",
|
||||
"service_type": "3",
|
||||
"service_type_zh": "公司和个人游戏",
|
||||
"support_platform": [
|
||||
"Android",
|
||||
"iOS",
|
||||
"HTML5"
|
||||
],
|
||||
"package_download_url": "https://download.cocos.com/CocosServices/plugins/service-analytics/1.2.3_2.1.1.zip",
|
||||
"package_version_desc": "<p><strong>更新日期:</strong> 2019/11/18<br />\n<strong>更新说明:</strong><br />\n1、更新统计SDK<br />\n2、修改微信小游戏和百度小游戏集成失败的问题<br />\n",
|
||||
"service_component_name": "service-analytics",
|
||||
"package_versions": [
|
||||
"1.2.3_2.1.1",
|
||||
"1.2.0_2.1.0",
|
||||
"1.1.7_2.0.3",
|
||||
"1.1.6_2.0.1_2.0.2",
|
||||
"1.1.5_2.0.1",
|
||||
"1.1.4_2.0.1",
|
||||
"1.1.3_2.0.1",
|
||||
"1.1.2_2.0.0",
|
||||
"1.0.0_1.0.5"
|
||||
],
|
||||
"build_platform": [
|
||||
],
|
||||
"require_verify": 0,
|
||||
"service_price": "",
|
||||
"service_protocol": "游戏首次开启该服务时,Cocos会后台通知服务方为游戏开通服务并初始化参数,服务方根据需要可能会获取您的Cocos账户信息,包括账户基本资料、游戏基本资料、账户余额等,点击确认开通按钮即视为您同意该服务访问您的账户信息,详见<a href='http://auth.cocos.com/CocosServiceAgreement.html'>《Cocos用户服务协议》</a>和<a href='http://auth.cocos.com/PrivacyPolicy.html'>《Cocos隐私政策》</a>"
|
||||
},
|
||||
{
|
||||
"service_id": "241",
|
||||
"service_name": "Matchvs",
|
||||
"service_icon": "https://account.cocos.com/client/14406719a07eb3d714d36e5edc6e06fa.png",
|
||||
"service_desc": "通过SDK接入快速实现联网功能、帧同步、国内外多节点、服务器独立部署、gameServer自定义游戏服务端逻辑。",
|
||||
"service_title": "专业成熟的移动游戏联网与服务端解决方案",
|
||||
"service_guide_url": "http://doc.matchvs.com/QuickStart/QuickStart-CocosCreator",
|
||||
"service_sample_url": "http://www.matchvs.com/serviceCourse",
|
||||
"service_dev_url": "http://www.matchvs.com/cocosLogin",
|
||||
"service_type": "3",
|
||||
"service_type_zh": "公司和个人游戏",
|
||||
"support_platform": [
|
||||
"Android",
|
||||
"iOS",
|
||||
"HTML5"
|
||||
],
|
||||
"package_download_url": "https://download.cocos.com/CocosServices/plugins/service-matchvs/1.0.10_3.7.9.10.zip",
|
||||
"package_version_desc": "<p><strong>更新日期:</strong> 2019/9/12\n<strong>更新内容:</strong>\n1.多语言支持\n2.SDK日常更新</p>",
|
||||
"service_component_name": "service-matchvs",
|
||||
"package_versions": [
|
||||
"1.0.9_3.7.9.9",
|
||||
"1.0.7_3.7.9.6",
|
||||
"1.0.6_3.7.9.2",
|
||||
"1.0.5_3.7.7.3",
|
||||
"1.0.3_3.7.6.4",
|
||||
"1.0.10_3.7.9.10"
|
||||
],
|
||||
"build_platform": [
|
||||
],
|
||||
"require_verify": 0,
|
||||
"service_price": "该服务按使用量计费,<a href='https://www.matchvs.com/price'><font color='#dddddd'>计费规则</font></a>,所产生的费用将由第三方从您的 <a href='https://account.cocos.com/#/finance/finance_list'><font color='#dddddd'>Cocos 账户余额</font></a> 中扣除。",
|
||||
"service_protocol": "游戏首次开启该服务时,Cocos会后台通知服务方为游戏开通服务并初始化参数,服务方根据需要可能会获取您的Cocos账户信息,包括账户基本资料、游戏基本资料、账户余额等,点击确认开通按钮即视为您同意该服务访问您的账户信息,详见<a href='http://auth.cocos.com/CocosServiceAgreement.html'>《Cocos用户服务协议》</a>和<a href='http://auth.cocos.com/PrivacyPolicy.html'>《Cocos隐私政策》</a>"
|
||||
},
|
||||
{
|
||||
"service_id": "242",
|
||||
"service_name": "Agora Voice",
|
||||
"service_icon": "https://account.cocos.com/uploads/client_icon/2019-07-16/273952d155b4cdb72d2b1bc61de91ade.png",
|
||||
"service_desc": "稳定、低耗、76ms超低延时、全球200+数据中心覆盖;变声器、超高音质、听声辩位等丰富玩法极速接入;全平台支持:Android、iOS、Web。",
|
||||
"service_title": "游戏内置实时语音",
|
||||
"service_guide_url": "https://docs.agora.io/cn/Interactive Gaming/game_c?platform=Cocos Creator",
|
||||
"service_sample_url": "https://github.com/AgoraIO/Voice-Call-for-Mobile-Gaming/tree/master/Basic-Voice-Call-for-Gaming/Hello-CocosCreator-Voice-Agora",
|
||||
"service_dev_url": "https://sso.agora.io/api/oauth/cocos/login",
|
||||
"service_type": "3",
|
||||
"service_type_zh": "公司和个人游戏",
|
||||
"support_platform": [
|
||||
"Android",
|
||||
"iOS",
|
||||
"HTML5"
|
||||
],
|
||||
"package_download_url": "https://download.cocos.com/CocosServices/plugins/service-agora/1.0.2_2.2.3.20_2.5.2.zip",
|
||||
"package_version_desc": "<b>更新日期:<b>2019/06/27<br>\n<br><b>更新内容:</b><br>\n1、修复部分BUG<br>\n2、代码优化",
|
||||
"service_component_name": "service-agora",
|
||||
"package_versions": [
|
||||
"1.0.2_2.2.3.20_2.5.2",
|
||||
"1.0.1_2.2.3.20_2.5.2"
|
||||
],
|
||||
"build_platform": [
|
||||
],
|
||||
"require_verify": 1,
|
||||
"service_price": "该服务按使用量计费,<a href='https://www.agora.io/cn/price/'><font color='#dddddd'>计费规则</font></a>,所产生的费用将由第三方从您的 <a href='https://account.cocos.com/#/finance/finance_list'><font color='#dddddd'>Cocos 账户余额</font></a> 中扣除。",
|
||||
"service_protocol": "游戏首次开启该服务时,Cocos会后台通知服务方为游戏开通服务并初始化参数,服务方根据需要可能会获取您的Cocos账户信息,包括账户基本资料、游戏基本资料、账户余额等,点击确认开通按钮即视为您同意该服务访问您的账户信息,详见<a href='http://auth.cocos.com/CocosServiceAgreement.html'>《Cocos用户服务协议》</a>和<a href='http://auth.cocos.com/PrivacyPolicy.html'>《Cocos隐私政策》</a>"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
shadow/template-banner.png
Executable file
|
After Width: | Height: | Size: 26 KiB |
5
shadow/template.json
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "TEMPLATES.helloworld-ts.name",
|
||||
"desc": "TEMPLATES.helloworld-ts.desc",
|
||||
"banner": "template-banner.png"
|
||||
}
|
||||
18
shadow/tsconfig.json
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [ "dom", "es5", "es2015.promise" ],
|
||||
"target": "es5",
|
||||
"allowJs": true,
|
||||
"experimentalDecorators": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"library",
|
||||
"local",
|
||||
"temp",
|
||||
"build",
|
||||
"settings"
|
||||
]
|
||||
}
|
||||