Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
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
TNGD_CaveCruiser
Commits
9efc4adc
Commit
9efc4adc
authored
Sep 26, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
261b357f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+0
-5
No files found.
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
9efc4adc
...
...
@@ -190,7 +190,6 @@ export class MainGame extends Scene {
}
onPlayerCollision
(
event
:
ICollisionEvent
)
{
console
.
log
(
event
)
if
(
this
.
isOver
)
return
;
const
{
otherCollider
,
selfCollider
}
=
event
;
...
...
@@ -273,13 +272,10 @@ export class MainGame extends Scene {
this
.
playerConstraint
.
pivotB
=
v3
(
0
,
constraintY
,
0
);
this
.
playerConstraint
.
enabled
=
true
;
console
.
log
(
this
.
getDifficultyRatio
());
const
velocityMultiplier
=
lerp
(
0
,
1
,
this
.
getDifficultyRatio
());
const
linear
=
v3
();
this
.
playerBody
.
getLinearVelocity
(
linear
);
console
.
log
(
linear
)
linear
.
multiplyScalar
(
velocityMultiplier
);
this
.
playerBody
.
setLinearVelocity
(
linear
);
...
...
@@ -359,7 +355,6 @@ export class MainGame extends Scene {
}
updateScore
(
addScore
)
{
console
.
log
(
this
.
scoreRadio
);
this
.
score
+=
~~
((
addScore
*
15
)
*
this
.
scoreRadio
);
if
(
this
.
score
>
9999
)
{
this
.
score
=
9999
;
...
...
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