Commit dfa63f2b authored by haiyoucuv's avatar haiyoucuv

init

parent a078c104
......@@ -199,7 +199,7 @@
"_priority": 40000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 766.0833333333334,
"_orthoHeight": 406,
"_near": 0,
"_far": 2000,
"_color": {
......@@ -2966,7 +2966,7 @@
"_priority": 50000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 766.0833333333334,
"_orthoHeight": 406,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -12160,7 +12160,7 @@
"y": 180,
"z": 0
},
"_id": "a9+fpUIBJFJZoM7cljcC7O"
"_id": "7bWRUhk+9MyKYS1yioaLlf"
},
{
"__type__": "cc.UITransform",
......@@ -12182,7 +12182,7 @@
"x": 0,
"y": 1
},
"_id": "125O0Ic4tKxpou04zMWEJl"
"_id": "45JdpqQa5LXpN+71GSOJIs"
},
{
"__type__": "cc.Sprite",
......@@ -12218,7 +12218,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "57u/gAF2lIKZoh6gG+51E5"
"_id": "afglCdVy9NW6iHwKUI0COb"
},
{
"__type__": "cc.Node",
......@@ -12266,7 +12266,7 @@
"y": 0,
"z": 0
},
"_id": "e6Y1pAVsFGlrVqdZ3+SlD/"
"_id": "81bPKXZGlI37Mffjm7rcC3"
},
{
"__type__": "cc.UITransform",
......@@ -12288,7 +12288,7 @@
"x": 0,
"y": 1
},
"_id": "d2CjCwPHVEu5ql+bozBZqx"
"_id": "78UzaMNWRPRoPgIY+P6nH3"
},
{
"__type__": "cc.Sprite",
......@@ -12324,7 +12324,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "087FvYlNRFPbjsZa/xcDAo"
"_id": "0eaBaVDR5E+bp+PxxUnxMz"
},
{
"__type__": "cc.Node",
......@@ -12372,7 +12372,7 @@
"y": 0,
"z": 0
},
"_id": "dc6fP51wJDC56Ll/Uzf7W3"
"_id": "77Ld3wgERKsIk+BS/e5mbp"
},
{
"__type__": "cc.UITransform",
......@@ -12394,7 +12394,7 @@
"x": 0,
"y": 1
},
"_id": "70u8bUZjlGvKAdlAoERV/l"
"_id": "80sJgt6UZCMZGhQSejp56k"
},
{
"__type__": "cc.Sprite",
......@@ -12430,7 +12430,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "9dGgQ9nZBHK4mmqKOXa00S"
"_id": "e1QmE5p81Oko5xB6wWD3Xo"
},
{
"__type__": "cc.UITransform",
......@@ -14141,7 +14141,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750.0000000000001
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -14277,7 +14277,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750.0000000000001
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -14545,7 +14545,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750.0000000000001
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -185,14 +185,16 @@ export class Player extends Snake {
useDefense(t = Global.PROP_SHIELD_DUR_TIME): void {
super.useDefense(t);
console.warn("useDefense")
Target.ins.updateProgress(EPropType.SHIELD, 1, t)
}
breakDefense(): void {
breakDefense(showUI = true): void {
if (this.invincibleTime <= Global.PROP_SHIELD_INVINCIBLE_TIME) return;
super.breakDefense();
console.warn("breakDefense")
Target.ins.updateProgress(EPropType.SHIELD, Global.PROP_SHIELD_INVINCIBLE_TIME / Global.PROP_SHIELD_DUR_TIME, Global.PROP_SHIELD_INVINCIBLE_TIME)
if (showUI) {
Target.ins.updateProgress(EPropType.SHIELD, Global.PROP_SHIELD_INVINCIBLE_TIME / Global.PROP_SHIELD_DUR_TIME, Global.PROP_SHIELD_INVINCIBLE_TIME)
}
}
clearDouble(): void {
......@@ -242,7 +244,9 @@ export class Player extends Snake {
nickName: this.nickName,
});
this.useDefense(Global.PROP_SHIELD_INVINCIBLE_TIME + 0.1);
// this.useDefense(Global.PROP_SHIELD_INVINCIBLE_TIME + 0.1);
this.invincibleTime = Global.PROP_SHIELD_INVINCIBLE_TIME + 0.1;
this.breakDefense(false);
}
death() {
......
......@@ -18,7 +18,7 @@
"_value": true
},
"skeletal-animation": {
"_value": true
"_value": false
},
"3d": {
"_value": false
......@@ -83,7 +83,7 @@
"_value": false
},
"particle-2d": {
"_value": true
"_value": false
},
"audio": {
"_value": true
......@@ -119,10 +119,10 @@
"_value": false
},
"marionette": {
"_value": true
"_value": false
},
"procedural-animation": {
"_value": true
"_value": false
},
"custom-pipeline-post-process": {
"_value": false
......@@ -151,12 +151,8 @@
"gfx-webgl",
"gfx-webgl2",
"intersection-2d",
"marionette",
"particle-2d",
"physics-2d-builtin",
"procedural-animation",
"profiler",
"skeletal-animation",
"tween",
"ui"
],
......
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