Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hzlh-beautifulFunFestival-snake-20241222
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
hzlh-beautifulFunFestival-snake-20241222
Commits
76c5640a
Commit
76c5640a
authored
Dec 25, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ip宝宝出现
parent
896777ff
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1386 additions
and
868 deletions
+1386
-868
popLight.svga
...stival-snake-20241222/assets/Bundles/common/popLight.svga
+0
-0
popLight.svga.meta
...l-snake-20241222/assets/Bundles/common/popLight.svga.meta
+0
-12
ipBall.prefab
...l-snake-20241222/assets/Bundles/runGamePage/ipBall.prefab
+239
-0
ipBall.prefab.meta
...ke-20241222/assets/Bundles/runGamePage/ipBall.prefab.meta
+13
-0
ball_ip.png
...snake-20241222/assets/Bundles/runGamePage/png/ball_ip.png
+0
-0
ball_ip.png.meta
...-20241222/assets/Bundles/runGamePage/png/ball_ip.png.meta
+8
-8
中间路单独.png
...l-snake-20241222/assets/Bundles/runGamePage/png/中间路单独.png
+0
-0
中间路单独.png.meta
...ke-20241222/assets/Bundles/runGamePage/png/中间路单独.png.meta
+0
-134
runGamePage.scene
...ake-20241222/assets/Bundles/runGamePage/runGamePage.scene
+16
-12
runMainPage.scene
...ake-20241222/assets/Bundles/runMainPage/runMainPage.scene
+1105
-699
runGamePage.ts
...tival-snake-20241222/assets/Scripts/Scenes/runGamePage.ts
+5
-3
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/common/popLight.svga
deleted
100644 → 0
View file @
896777ff
File deleted
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/common/popLight.svga.meta
deleted
100644 → 0
View file @
896777ff
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "f7eb850c-7825-4f4c-9bb7-c51faa235b10",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/ipBall.prefab
0 → 100644
View file @
76c5640a
[
{
"__type__": "cc.Prefab",
"_name": "ipBall",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "ipBall",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 10
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "ip",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "dbS0DbLMxEbqNXO75bjcvs"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a2bd863d-5be8-4bf6-a552-7dedde2c7e94@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "afnaQD5+ZO2o1sNhQ5xZQn"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e6YKn4nfROA4jphq1iBDE1",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 9
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "46tCg7/+lPm6vRgcVOOHpe"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0bZqpZZlpA17JZZ03MDJK+",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/ipBall.prefab.meta
0 → 100644
View file @
76c5640a
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b0bbc4fa-c7d8-425d-97de-bafe22af0d90",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "ipBall"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/
sp
_ip.png
→
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/
ball
_ip.png
View file @
76c5640a
File moved
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/
sp
_ip.png.meta
→
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/
ball
_ip.png.meta
View file @
76c5640a
...
...
@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
",
"uuid": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
",
"files": [
".json",
".png"
...
...
@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
@6c48a",
"displayName": "
sp
_ip",
"uuid": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
@6c48a",
"displayName": "
ball
_ip",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
",
"imageUuidOrDatabaseUri": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
",
"isUuid": true,
"visible": false,
"minfilter": "linear",
...
...
@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
@f9941",
"displayName": "
sp
_ip",
"uuid": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
@f9941",
"displayName": "
ball
_ip",
"id": "f9941",
"name": "spriteFrame",
"userData": {
...
...
@@ -114,7 +114,7 @@
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
@6c48a",
"imageUuidOrDatabaseUri": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
...
...
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "
17f0c4db-c01a-40ee-bb92-46a40b36fa27
@6c48a"
"redirect": "
a2bd863d-5be8-4bf6-a552-7dedde2c7e94
@6c48a"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/中间路单独.png
deleted
100644 → 0
View file @
896777ff
21.3 KB
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/png/中间路单独.png.meta
deleted
100644 → 0
View file @
896777ff
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ab33918e-a3be-4b2a-8915-7b19c37a4301",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ab33918e-a3be-4b2a-8915-7b19c37a4301@6c48a",
"displayName": "中间路单独",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ab33918e-a3be-4b2a-8915-7b19c37a4301",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ab33918e-a3be-4b2a-8915-7b19c37a4301@f9941",
"displayName": "中间路单独",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 353,
"height": 1646,
"rawWidth": 353,
"rawHeight": 1646,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-176.5,
-823,
0,
176.5,
-823,
0,
-176.5,
823,
0,
176.5,
823,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1646,
353,
1646,
0,
0,
353,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-176.5,
-823,
0
],
"maxPos": [
176.5,
823,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ab33918e-a3be-4b2a-8915-7b19c37a4301@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ab33918e-a3be-4b2a-8915-7b19c37a4301@6c48a"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runGamePage/runGamePage.scene
View file @
76c5640a
...
...
@@ -568,7 +568,7 @@
"y": -180,
"z": -5.832004925153304
},
"_id": "
09Xl5WyOpHTY/QarKlD3tr
"
"_id": "
c1s9SzNcJBpZXF77MTYVTT
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -590,7 +590,7 @@
"x": 0,
"y": 1
},
"_id": "c
83IH4fVxN5IsJPNdsKn0O
"
"_id": "c
0TmnAQPJHqZQ4jN6ATglg
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -626,7 +626,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "c
fRQ+v/otLTZlpNAO17Zcv
"
"_id": "c
92NFlDGNDNZFu/zfXbRZd
"
},
{
"__type__": "cc.Node",
...
...
@@ -674,7 +674,7 @@
"y": -180,
"z": -5.832004925153304
},
"_id": "
0dFuwvLw9NUL44f93zMbx8
"
"_id": "
cdN6e2ghtGxZKlhu3Poa8W
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -696,7 +696,7 @@
"x": 0,
"y": 1
},
"_id": "
335A8p5s9Mcq+JqR3Wz/7O
"
"_id": "
c70hlurnxJ3IdtW26OrlIj
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -732,7 +732,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
14Jynqo7BCEb52zh7I9geR
"
"_id": "
8bpiVknQpBk4OWr3o92B/P
"
},
{
"__type__": "cc.Node",
...
...
@@ -780,7 +780,7 @@
"y": 180,
"z": 0
},
"_id": "
0erZD7DTpJEK7/rcRqAnlf
"
"_id": "
28pJM0JZhO8ZJ5a1OC74Gb
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -802,7 +802,7 @@
"x": 0,
"y": 1
},
"_id": "
32IrsntQpHvbzfPmBSVvlk
"
"_id": "
09qjXlUaJGRbYAeC9kEo7p
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -838,7 +838,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
e5yRY+mCZAoqyXwDCRgUCk
"
"_id": "
56THgCUsNCVbaWy8yeKKuC
"
},
{
"__type__": "cc.Node",
...
...
@@ -886,7 +886,7 @@
"y": 180,
"z": 0
},
"_id": "
fci8AMNLtK/IOt19jGOSNJ
"
"_id": "
e2jRROygpAOJkyJkqMHaXt
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -908,7 +908,7 @@
"x": 0,
"y": 1
},
"_id": "
a5waL7td1KSbpYydpVVZXV
"
"_id": "
85fzcOS89KmKMyiPz4GnLE
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -944,7 +944,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "
01XNMEhGxPirI+WBVfIz5H
"
"_id": "
6bBGaDbJFBw4gwzG5tjFTg
"
},
{
"__type__": "cc.UITransform",
...
...
@@ -4316,6 +4316,10 @@
"__uuid__": "8e1a687f-db26-4cc7-a249-8b65fef9545e",
"__expectedType__": "cc.Prefab"
},
"ipball": {
"__uuid__": "b0bbc4fa-c7d8-425d-97de-bafe22af0d90",
"__expectedType__": "cc.Prefab"
},
"snakePre": {
"__uuid__": "e59796ce-739e-44fb-b245-d8a521ee6e04",
"__expectedType__": "cc.Prefab"
...
...
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/runMainPage/runMainPage.scene
View file @
76c5640a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runGamePage.ts
View file @
76c5640a
...
...
@@ -32,7 +32,7 @@ export class runGamePage extends Scene {
static
bundle
:
string
=
"runGamePage"
;
static
skin
:
string
=
"runGamePage"
;
//倒计时
static
TIME_COUNT
=
3
;
static
TIME_COUNT
=
60
;
@
property
(
Node
)
backBtn
:
Node
=
null
;
...
...
@@ -65,6 +65,8 @@ export class runGamePage extends Scene {
@
property
(
Prefab
)
boomball
:
Prefab
=
null
;
@
property
(
Prefab
)
ipball
:
Prefab
=
null
;
@
property
(
Prefab
)
snakePre
:
Prefab
=
null
;
@
property
(
AudioClip
)
...
...
@@ -82,7 +84,7 @@ export class runGamePage extends Scene {
ipPool
:
NodePool
;
guideStep
=
1
propsList
=
[
"guihua"
,
"dia"
,
"gold"
]
propsList
=
[
"guihua"
,
"dia"
,
"gold"
,
"ip"
]
linePos
=
[
-
120
,
0
,
120
]
snakePos
=
[
-
260
,
0
,
260
]
startStatus
=
false
...
...
@@ -436,7 +438,7 @@ export class runGamePage extends Scene {
node
=
instantiate
(
this
[
type
+
"ball"
])
// node.addComponent(plateCtrl)
}
if
(
type
!=
"boom"
)
{
if
(
type
!=
"boom"
&&
type
!=
"ip"
)
{
node
.
getChildByName
(
"ball_"
+
type
).
active
=
true
node
.
getChildByName
(
"first_"
+
type
).
active
=
false
}
...
...
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