Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
dfa63f2b
Commit
dfa63f2b
authored
Dec 17, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
a078c104
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+14
-14
Player.ts
assets/Scripts/Scenes/MainGame/Player.ts
+9
-5
engine.json
settings/v2/packages/engine.json
+4
-8
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
dfa63f2b
...
...
@@ -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": "0
87FvYlNRFPbjsZa/xcDAo
"
"_id": "0
eaBaVDR5E+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",
...
...
assets/Scripts/Scenes/MainGame/Player.ts
View file @
dfa63f2b
...
...
@@ -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
()
{
...
...
settings/v2/packages/engine.json
View file @
dfa63f2b
...
...
@@ -18,7 +18,7 @@
"_value"
:
true
},
"skeletal-animation"
:
{
"_value"
:
tru
e
"_value"
:
fals
e
},
"3d"
:
{
"_value"
:
false
...
...
@@ -83,7 +83,7 @@
"_value"
:
false
},
"particle-2d"
:
{
"_value"
:
tru
e
"_value"
:
fals
e
},
"audio"
:
{
"_value"
:
true
...
...
@@ -119,10 +119,10 @@
"_value"
:
false
},
"marionette"
:
{
"_value"
:
tru
e
"_value"
:
fals
e
},
"procedural-animation"
:
{
"_value"
:
tru
e
"_value"
:
fals
e
},
"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"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment