Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PK_Game
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
PK_Game
Commits
f9363f0b
Commit
f9363f0b
authored
Oct 22, 2023
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: v0.91
parent
2a109b3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
PK_Game.fire
assets/PK_Game/scene/PK_Game.fire
+1
-1
AI_PK_Game.ts
assets/PK_Game/script/AI_PK_Game.ts
+1
-1
endLayer_PK_Game.ts
assets/PK_Game/script/layers/endLayer_PK_Game.ts
+4
-1
No files found.
assets/PK_Game/scene/PK_Game.fire
View file @
f9363f0b
...
@@ -17244,7 +17244,7 @@
...
@@ -17244,7 +17244,7 @@
"__id__": 332
"__id__": 332
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 354
"__id__": 354
...
...
assets/PK_Game/script/AI_PK_Game.ts
View file @
f9363f0b
...
@@ -42,7 +42,7 @@ export class AI {
...
@@ -42,7 +42,7 @@ export class AI {
await
asyncDelay
(
time
);
await
asyncDelay
(
time
);
let
index
=
0
;
let
index
=
0
;
if
(
Math
.
random
()
<=
this
.
anspronum
)
{
if
(
Math
.
random
()
<=
1
-
this
.
anspronum
)
{
index
=
rigthIndex
;
index
=
rigthIndex
;
}
else
{
}
else
{
index
=
Math
.
floor
(
Math
.
random
()
*
3.99
);
index
=
Math
.
floor
(
Math
.
random
()
*
3.99
);
...
...
assets/PK_Game/script/layers/endLayer_PK_Game.ts
View file @
f9363f0b
...
@@ -50,11 +50,14 @@ export default class EndLayer extends cc.Component {
...
@@ -50,11 +50,14 @@ export default class EndLayer extends cc.Component {
}
}
init
(
data
,
mydata
,
otherData
)
{
init
(
data
,
mydata
,
otherData
)
{
this
.
loseRoot
.
active
=
false
;
this
.
winRoot
.
active
=
false
;
let
root
=
this
.
loseRoot
;
let
root
=
this
.
loseRoot
;
if
(
data
.
blueRight
>=
data
.
redRight
)
{
if
(
data
.
blueRight
>=
data
.
redRight
)
{
this
.
winRoot
.
active
=
true
;
root
=
this
.
winRoot
;
}
}
root
.
active
=
true
;
root
.
opacity
=
0
;
root
.
opacity
=
0
;
cc
.
tween
(
root
).
delay
(
0.5
).
to
(
1
,
{
opacity
:
255
}).
start
();
cc
.
tween
(
root
).
delay
(
0.5
).
to
(
1
,
{
opacity
:
255
}).
start
();
...
...
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