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
39c589a3
Commit
39c589a3
authored
Aug 14, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改
parent
05cd1b79
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
16 deletions
+34
-16
0.prefab
assets/Bundles/MainGame/prefab/0.prefab
+1
-1
1.prefab
assets/Bundles/MainGame/prefab/1.prefab
+2
-2
2.prefab
assets/Bundles/MainGame/prefab/2.prefab
+2
-2
GuideLayer.ts
assets/Scripts/Scenes/MainGame/GuideLayer.ts
+4
-2
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+4
-3
index.html
build/web-mobile/index.html
+20
-5
project.settings.json
project.settings.json
+1
-1
No files found.
assets/Bundles/MainGame/prefab/0.prefab
View file @
39c589a3
...
...
@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
assets/Bundles/MainGame/prefab/1.prefab
View file @
39c589a3
...
...
@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
@@ -198,7 +198,7 @@
"x": 0,
"y": 0
},
"_radius": 6
6.5
,
"_radius": 6
7
,
"_id": ""
},
{
...
...
assets/Bundles/MainGame/prefab/2.prefab
View file @
39c589a3
...
...
@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
...
...
@@ -198,7 +198,7 @@
"x": 0,
"y": 0
},
"_radius": 10
3.5
,
"_radius": 10
0
,
"_id": ""
},
{
...
...
assets/Scripts/Scenes/MainGame/GuideLayer.ts
View file @
39c589a3
import
{
_decorator
,
Component
,
Node
}
from
'cc'
;
import
{
sendWebNetWithToken
,
WebNetName
}
from
"../../Utils/WebNet/WebNet"
;
import
store
from
"../../../store/store"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -9,7 +10,7 @@ export class GuideLayer extends Component {
guide1
:
Node
=
null
;
guide2
:
Node
=
null
;
start
()
{
async
start
()
{
this
.
guide1
=
this
.
node
.
getChildByName
(
"guide1"
);
this
.
guide2
=
this
.
node
.
getChildByName
(
"guide2"
);
...
...
@@ -18,9 +19,10 @@ export class GuideLayer extends Component {
this
.
node
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
onTouchEnd
,
this
);
sendWebNetWithToken
(
WebNetName
.
guide
,
{
await
sendWebNetWithToken
(
WebNetName
.
guide
,
{
flag
:
1
,
},
null
,
null
,
false
);
store
.
updateIndex
();
}
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
39c589a3
...
...
@@ -38,6 +38,7 @@ import { LOG_TYPE, sendLog } from "../../Utils/WebNet/WebNet";
const
{
ccclass
,
property
}
=
_decorator
;
const
InitY
=
-
135
;
const
BallScale
=
0.8
;
@
ccclass
(
"MainGame"
)
export
class
MainGame
extends
Scene
{
...
...
@@ -242,7 +243,7 @@ export class MainGame extends Scene {
ball
.
setScale
(
0
,
0
);
this
.
readyRoot
.
addChild
(
ball
);
tween
(
ball
)
.
to
(
0.1
,
{
scale
:
v3
(
1
,
1
,
1
)})
.
to
(
0.1
,
{
scale
:
v3
(
BallScale
,
BallScale
,
1
)})
.
call
(()
=>
{
this
.
newBall
=
ball
;
})
...
...
@@ -296,7 +297,7 @@ export class MainGame extends Scene {
);
tween
(
newBall
)
.
to
(
0.2
,
{
scale
:
v3
(
1
,
1
,
1
)})
.
to
(
0.2
,
{
scale
:
v3
(
BallScale
,
BallScale
,
1
)})
.
start
();
});
...
...
@@ -474,7 +475,7 @@ export class MainGame extends Scene {
const
ballPos
=
ball
.
getPosition
();
const
dis
=
ballPos
.
subtract
(
v3
(
pos
.
x
,
pos
.
y
,
0
)).
length
();
if
(
dis
<
ballSize
.
width
/
2
)
{
if
(
dis
<
ballSize
.
width
/
2
*
ball
.
scale
.
x
)
{
const
ballTs
=
ball
.
getComponent
(
Ball
);
ballTs
.
preRemove
=
true
;
await
this
.
chippingBall
(
ball
);
...
...
build/web-mobile/index.html
View file @
39c589a3
...
...
@@ -4,6 +4,21 @@
<meta
charset=
"utf-8"
>
<title>
合成大唱片
</title>
<script
id=
"monitorjs"
src=
"//yun.duiba.com.cn/woodpecker/sdk/0.0.36/woodpecker_outer.js"
></script>
<script
id=
"registerMonitor"
>
// 烽火台注入前端监控脚本,请勿修改
try
{
woodpecker
.
setConfig
({
projectId
:
"pf2fac9b7"
,
developer
:
[
"fa17c4667c62b5ba014f382c0802a462"
],
});
}
catch
(
e
)
{
console
.
error
(
e
);
}
</script>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta
name=
"viewport"
...
...
@@ -39,7 +54,7 @@
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
536297134
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
602803212
/style.css"
/>
<style>
.sui-captcha
{
...
...
@@ -99,16 +114,16 @@
</script>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
536297134
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
602803212
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
536297134
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
602803212
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
536297134
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
602803212
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
536297134
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1723
602803212
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
project.settings.json
View file @
39c589a3
{
"proSetting"
:{
"projectxIDs"
:{
"devId"
:[],
"testId"
:[{
"label"
:
"test"
,
"value"
:
"p7139e1d5"
}],
"prodId"
:[]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
{
"proSetting"
:{
"projectxIDs"
:{
"devId"
:[],
"testId"
:[{
"label"
:
"test"
,
"value"
:
"p7139e1d5"
}],
"prodId"
:[
{
"label"
:
"prod"
,
"value"
:
"pf2fac9b7"
}
]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
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