Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2.3.0' into v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
2youyou2 committed Jul 22, 2019
2 parents 8c9fa70 + 5cbb655 commit 8171afc
Show file tree
Hide file tree
Showing 41 changed files with 3,977 additions and 81 deletions.
167 changes: 97 additions & 70 deletions assets/cases/05_scripting/01_properties/ReferenceType.fire
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"url": "",
"_native": "",
"scene": {
"__id__": 1
Expand Down Expand Up @@ -41,18 +42,17 @@
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.5697916666666667,
"y": 0.5697916666666667,
"x": 1,
"y": 1,
"z": 1
},
"_quat": {
"__type__": "cc.Quat",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0,
"w": 1
"z": 0
},
"_zIndex": 0,
"_is3DNode": true,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "14c69a8b-0ace-4629-9691-9c9f00a55e48"
Expand Down Expand Up @@ -128,19 +128,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "00585n+9KFBobjeB+/TNFrL",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "00585n+9KFBobjeB+/TNFrL"
},
{
"__type__": "cc.Node",
Expand Down Expand Up @@ -188,19 +188,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "aay65lrpBMEJMaCsbSZtz1",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "aay65lrpBMEJMaCsbSZtz1"
},
{
"__type__": "cc.Camera",
Expand All @@ -222,6 +222,19 @@
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 0.1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_id": "b7doWXUyhOd7pzvkznLZ/6"
},
{
Expand Down Expand Up @@ -302,19 +315,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "51e91yItU5LZZqbTJnQuLbC",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "51e91yItU5LZZqbTJnQuLbC"
},
{
"__type__": "cc.Sprite",
Expand All @@ -324,6 +337,11 @@
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
Expand All @@ -340,7 +358,6 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "fajaJR7y1HTafvvptHRUNk"
},
Expand Down Expand Up @@ -390,19 +407,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "79cc1QkJEVMAZwPVWV9GQ3J",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "79cc1QkJEVMAZwPVWV9GQ3J"
},
{
"__type__": "e4f88adp3hERoJ48DZ2PSAl",
Expand All @@ -412,8 +429,11 @@
"__id__": 9
},
"_enabled": true,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
Expand All @@ -423,10 +443,12 @@
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 0,
"_N$textKey": "",
"_id": "2c5i0JMQVB2KrNCM9yn0Gg"
},
Expand Down Expand Up @@ -472,19 +494,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "b68bfqwZ9RDg45dGh6PglYv",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "b68bfqwZ9RDg45dGh6PglYv"
},
{
"__type__": "cc.Node",
Expand Down Expand Up @@ -513,7 +535,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 360,
"height": 40
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
Expand All @@ -532,19 +554,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "08bbfHISm1KeZvcFMh5AxmS",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "08bbfHISm1KeZvcFMh5AxmS"
},
{
"__type__": "e4f88adp3hERoJ48DZ2PSAl",
Expand All @@ -554,8 +576,11 @@
"__id__": 12
},
"_enabled": true,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "这个例子不包括运行时演示",
"_N$string": "这个例子不包括运行时演示",
Expand All @@ -565,10 +590,12 @@
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$textKey": "cases/05_scripting/01_properties/ReferenceType.fire.11",
"_id": "d9xMqVdXVPwqyHw2YI4brR"
},
Expand Down Expand Up @@ -618,19 +645,19 @@
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "b8db6ZQTdBBcIY7rIN3P/q6",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "b8db6ZQTdBBcIY7rIN3P/q6"
},
{
"__type__": "6b8baEpLuxACIMNlIL2vw2W",
Expand Down Expand Up @@ -690,7 +717,7 @@
"__uuid__": "421a1a75-016f-4896-b926-e767fffbc6f8"
},
"myAudioClip": {
"__uuid__": "4ca2f387-388d-46e8-85c7-3ae536f5db9a"
"__uuid__": "a3d9e2db-49b2-4f91-ab2b-ecaa3e985fe0"
},
"_id": "880Q+A1upGOo0gwlr0SUZ9"
}
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ void main () {
vec4 c = v_color * texture2D(texture, v_uv0);
gl_FragColor = c;
float temp = v_uv0.x - time;

if (temp <= 0.0) {
float temp2 = abs(temp);
if (temp2 <= 0.2) {
gl_FragColor.w = 1.0 - temp2/0.2;
gl_FragColor.a *= 1.0 - temp2/0.2;
} else {
gl_FragColor.w = 0.0;
gl_FragColor.a = 0.0;
}
} else {
gl_FragColor.w = 1.0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"_effectAsset": {
"__uuid__": "7c574257-e450-432b-95b5-8b6d56aaa5f1"
},
"_defines": {},
"_defines": {
},
"_props": {
"texture": {
"__uuid__": "6b4faed5-abc3-4a77-af9d-35ed67a5a48b"
},
"time": 0
}
}
4 changes: 2 additions & 2 deletions assets/cases/dragonbones/DragonBonesCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,14 +523,14 @@ var DragonBullet = cc.Class({

let armatureNode = armature.node;
armatureNode.setPosition(thePos);
armatureNode.rotation = radian * cc.macro.DEG;
armatureNode.angle = -radian * cc.macro.DEG;

this._armature = armature;

if (effect) {
this._effect = effect;
var effectDisplay = this._effect.node;
effectDisplay.rotation = radian * cc.macro.DEG;
effectDisplay.angle = -radian * cc.macro.DEG;
effectDisplay.setPosition(thePos);
effectDisplay.scaleX = 1 + Math.random() * 1;
effectDisplay.scaleY = 1 + Math.random() * 0.5;
Expand Down
Loading

0 comments on commit 8171afc

Please sign in to comment.