Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
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
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
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
1ba793a0
Commit
1ba793a0
authored
Oct 14, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关卡主界面修改ui
parent
c17f6288
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
501 additions
and
31 deletions
+501
-31
手指.png
assets/startFolder/image/手指.png
+0
-0
手指.png.meta
assets/startFolder/image/手指.png.meta
+74
-0
提示说明配文.png
assets/startFolder/image/提示说明配文.png
+0
-0
提示说明配文.png.meta
assets/startFolder/image/提示说明配文.png.meta
+8
-8
点击这里开始闯关检验吧!.png
assets/startFolder/image/点击这里开始闯关检验吧!.png
+0
-0
点击这里开始闯关检验吧!.png.meta
assets/startFolder/image/点击这里开始闯关检验吧!.png.meta
+74
-0
LevelScene.scene
assets/startFolder/scene/LevelScene.scene
+331
-18
LevelHomeCtr.ts
assets/startFolder/script/LevelHomeCtr.ts
+14
-5
No files found.
assets/startFolder/image/手指.png
0 → 100644
View file @
1ba793a0
3.03 KB
assets/startFolder/image/手指.png.meta
0 → 100644
View file @
1ba793a0
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "e1472d45-3727-447b-8a62-2b797db6bdae",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e1472d45-3727-447b-8a62-2b797db6bdae@6c48a",
"displayName": "手指",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "e1472d45-3727-447b-8a62-2b797db6bdae"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e1472d45-3727-447b-8a62-2b797db6bdae@f9941",
"displayName": "手指",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": 0,
"trimX": 5,
"trimY": 8,
"width": 93,
"height": 85,
"rawWidth": 101,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "e1472d45-3727-447b-8a62-2b797db6bdae@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "e1472d45-3727-447b-8a62-2b797db6bdae@f9941"
}
}
assets/startFolder/image/提示说明配文.png
View replaced file @
c17f6288
View file @
1ba793a0
4.75 KB
|
W:
|
H:
5.29 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/startFolder/image/提示说明配文.png.meta
View file @
1ba793a0
...
...
@@ -2,7 +2,7 @@
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
",
"uuid": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
",
"files": [
".png",
".json"
...
...
@@ -10,7 +10,7 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
@6c48a",
"uuid": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
@6c48a",
"displayName": "提示说明配文",
"id": "6c48a",
"name": "texture",
...
...
@@ -22,7 +22,7 @@
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
"
"imageUuidOrDatabaseUri": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
"
},
"ver": "1.0.21",
"imported": true,
...
...
@@ -33,7 +33,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
@f9941",
"uuid": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
@f9941",
"displayName": "提示说明配文",
"id": "f9941",
"name": "spriteFrame",
...
...
@@ -45,9 +45,9 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width":
598
,
"width":
709
,
"height": 38,
"rawWidth":
598
,
"rawWidth":
709
,
"rawHeight": 38,
"borderTop": 0,
"borderBottom": 0,
...
...
@@ -55,7 +55,7 @@
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
@6c48a",
"imageUuidOrDatabaseUri": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
...
...
@@ -69,6 +69,6 @@
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
@f9941"
"redirect": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
@f9941"
}
}
assets/startFolder/image/点击这里开始闯关检验吧!.png
0 → 100644
View file @
1ba793a0
3.32 KB
assets/startFolder/image/点击这里开始闯关检验吧!.png.meta
0 → 100644
View file @
1ba793a0
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20@6c48a",
"displayName": "点击这里开始闯关检验吧!",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20@f9941",
"displayName": "点击这里开始闯关检验吧!",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 449,
"height": 38,
"rawWidth": 449,
"rawHeight": 38,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20@f9941"
}
}
assets/startFolder/scene/LevelScene.scene
View file @
1ba793a0
...
...
@@ -29,7 +29,7 @@
"_prefab": null,
"autoReleaseAssets": false,
"_globals": {
"__id__":
98
"__id__":
110
},
"_id": "fe467a7d-c137-4f1b-a6ef-e87ddbf06f30"
},
...
...
@@ -213,21 +213,24 @@
},
{
"__id__": 28
},
{
"__id__": 91
}
],
"_active": true,
"_components": [
{
"__id__":
91
"__id__":
103
},
{
"__id__":
93
"__id__":
105
},
{
"__id__":
95
"__id__":
107
},
{
"__id__":
97
"__id__":
109
}
],
"_prefab": null,
...
...
@@ -666,8 +669,8 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -
127.79899999999998
,
"y": 2
91.098
,
"x": -
95.08900000000006
,
"y": 2
83.987
,
"z": 0
},
"_lrot": {
...
...
@@ -705,7 +708,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
598
,
"width":
709
,
"height": 38
},
"_anchorPoint": {
...
...
@@ -742,7 +745,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "
2af59cc9-0b31-4488-a2ec-a74714b1a271
@f9941",
"__uuid__": "
3c68770e-5aac-4ddd-9e2d-0ed3ac078ced
@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
...
...
@@ -775,9 +778,9 @@
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": 2
40.20100000000002
,
"_left": 2
17.41099999999997
,
"_right": 0,
"_top":
64.90199999999999
,
"_top":
72.01299999999998
,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
...
...
@@ -2311,17 +2314,324 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "eaGEkmlCpANK+GS6CImtZa"
},
{
"__type__": "cc.Node",
"_name": "fingerNode",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 92
},
{
"__id__": 97
}
],
"_active": true,
"_components": [
{
"__id__": 102
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -412.924,
"y": -15.88,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "d5qz71Ut5HtpRW1OPtvBlh"
},
{
"__type__": "cc.Node",
"_name": "手指",
"_objFlags": 0,
"_parent": {
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 93
},
{
"__id__": 95
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -30.029,
"y": -33.03,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "97b2QtvY5LqY8T8w+uYqP2"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
7
"__id__":
92
},
"_enabled": true,
"__prefab": {
"__id__": 94
},
"_contentSize": {
"__type__": "cc.Size",
"width": 93,
"height": 85
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "60RxySC8ZPq76mvQQ7hlIR"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
},
"_enabled": true,
"__prefab": {
"__id__": 96
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "e1472d45-3727-447b-8a62-2b797db6bdae@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": "324k4b0GtHiJ5HgJ7AiDvO"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Node",
"_name": "点击这里开始闯关检验吧!",
"_objFlags": 0,
"_parent": {
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
},
{
"__id__": 100
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 90.019,
"y": -97.533,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "45kImaqUZAT7TrQl9p0/q8"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"__prefab": {
"__id__": 99
},
"_contentSize": {
"__type__": "cc.Size",
"width": 449,
"height": 38
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "aa64vo9BdDL7Onv56yEeOI"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"__prefab": {
"__id__": 101
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "e41cf29c-8dbc-411a-96a8-f15f0e6ceb20@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "4698f2FJFI5JT5oYQGBef9"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "2fAQKBisBJaIMhOveX5JJ2"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 104
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
...
...
@@ -2347,7 +2657,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
94
"__id__":
106
},
"_cameraComponent": {
"__id__": 9
...
...
@@ -2368,7 +2678,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
96
"__id__":
108
},
"_alignFlags": 45,
"_target": null,
...
...
@@ -2409,21 +2719,24 @@
"secondLayout": {
"__id__": 62
},
"fingerNode": {
"__id__": 91
},
"_id": "0bGRexb09L6JH3YgIn0NDY"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__":
99
"__id__":
111
},
"shadows": {
"__id__": 1
00
"__id__": 1
12
},
"_skybox": {
"__id__": 1
01
"__id__": 1
13
},
"fog": {
"__id__": 1
02
"__id__": 1
14
}
},
{
...
...
assets/startFolder/script/LevelHomeCtr.ts
View file @
1ba793a0
import
{
_decorator
,
Component
,
Node
,
instantiate
,
director
}
from
'cc'
;
import
{
_decorator
,
Component
,
Node
,
instantiate
,
director
,
UITransform
,
v3
,
find
}
from
'cc'
;
import
{
CanvasSizeCtr
}
from
'./CanvasSizeCtr'
;
import
{
sceneMgr
}
from
'./common/SceneMgr'
;
import
{
Utils
}
from
'./common/Utils'
;
...
...
@@ -15,6 +15,9 @@ export class LevelHomeCtr extends Component {
@
property
(
Node
)
secondLayout
:
Node
|
null
=
null
;
@
property
(
Node
)
fingerNode
:
Node
=
null
!
;
onLoad
()
{
CanvasSizeCtr
.
setContentStrategy
();
}
...
...
@@ -23,12 +26,12 @@ export class LevelHomeCtr extends Component {
// [3]
if
(
!
levelMgr
.
loadedOutData
)
{
levelMgr
.
loadedOutData
=
true
;
levelMgr
.
gameIdHead
=
1
01
;
levelMgr
.
unLockCount
=
10
;
if
(
Utils
.
getValueFromHref
(
"gameIdHead"
))
{
levelMgr
.
gameIdHead
=
1
30
;
levelMgr
.
unLockCount
=
2
;
if
(
Utils
.
getValueFromHref
(
"gameIdHead"
))
{
levelMgr
.
gameIdHead
=
Number
(
Utils
.
getValueFromHref
(
"gameIdHead"
));
}
if
(
Utils
.
getValueFromHref
(
"finishLevelCount"
))
{
if
(
Utils
.
getValueFromHref
(
"finishLevelCount"
))
{
levelMgr
.
unLockCount
=
Number
(
Utils
.
getValueFromHref
(
"finishLevelCount"
))
+
1
;
}
}
...
...
@@ -81,6 +84,12 @@ export class LevelHomeCtr extends Component {
starArr
[
i
].
setLock
();
}
}
this
.
scheduleOnce
(()
=>
{
this
.
fingerNode
.
active
=
levelMgr
.
unLockCount
==
1
;
let
wPos
=
starArr
[
0
].
node
.
getComponent
(
UITransform
)?.
convertToWorldSpaceAR
(
v3
(
-
25
,
-
20
))
!
;
let
lPos
=
find
(
"Canvas"
)?.
getComponent
(
UITransform
)?.
convertToNodeSpaceAR
(
wPos
)
!
;
this
.
fingerNode
.
setPosition
(
lPos
);
},
0
);
}
loadLevel
(
level
:
number
)
{
...
...
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