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
cde407f9
Commit
cde407f9
authored
Apr 08, 2022
by
徐行
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码矩阵好了
parent
b6123113
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
397 additions
and
9 deletions
+397
-9
newImg.meta
assets/sceneBundle/games/passwordMatrix/newImg.meta
+12
-0
点击可查看目标图.png
assets/sceneBundle/games/passwordMatrix/newImg/点击可查看目标图.png
+0
-0
点击可查看目标图.png.meta
...sceneBundle/games/passwordMatrix/newImg/点击可查看目标图.png.meta
+74
-0
点击可转至复原图.png
assets/sceneBundle/games/passwordMatrix/newImg/点击可转至复原图.png
+0
-0
点击可转至复原图.png.meta
...sceneBundle/games/passwordMatrix/newImg/点击可转至复原图.png.meta
+74
-0
玩法说明.png
assets/sceneBundle/games/passwordMatrix/newImg/玩法说明.png
+0
-0
玩法说明.png.meta
assets/sceneBundle/games/passwordMatrix/newImg/玩法说明.png.meta
+74
-0
编组 3.png
assets/sceneBundle/games/passwordMatrix/newImg/编组 3.png
+0
-0
编组 3.png.meta
assets/sceneBundle/games/passwordMatrix/newImg/编组 3.png.meta
+74
-0
编组 6.png
assets/sceneBundle/games/passwordMatrix/newImg/编组 6.png
+0
-0
编组 6.png.meta
assets/sceneBundle/games/passwordMatrix/newImg/编组 6.png.meta
+74
-0
PasswordMatrix_1.scene
...eBundle/games/passwordMatrix/scene/PasswordMatrix_1.scene
+0
-0
PasswordMatrixCtr.ts
...neBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
+14
-8
TempCtr.ts
assets/startFolder/script/TempCtr.ts
+1
-1
No files found.
assets/sceneBundle/games/passwordMatrix/newImg.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "800805f0-6860-4cab-b7e0-3ec35ebc7fab",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/passwordMatrix/newImg/点击可查看目标图.png
0 → 100644
View file @
cde407f9
4.58 KB
assets/sceneBundle/games/passwordMatrix/newImg/点击可查看目标图.png.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "c9080f06-10e2-442a-9537-2df5aa2bca14",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c9080f06-10e2-442a-9537-2df5aa2bca14@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": "c9080f06-10e2-442a-9537-2df5aa2bca14"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c9080f06-10e2-442a-9537-2df5aa2bca14@f9941",
"displayName": "点击可查看目标图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 191,
"height": 23,
"rawWidth": 191,
"rawHeight": 23,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "c9080f06-10e2-442a-9537-2df5aa2bca14@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "c9080f06-10e2-442a-9537-2df5aa2bca14@f9941"
}
}
assets/sceneBundle/games/passwordMatrix/newImg/点击可转至复原图.png
0 → 100644
View file @
cde407f9
5.14 KB
assets/sceneBundle/games/passwordMatrix/newImg/点击可转至复原图.png.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "ac8b136a-e249-4e67-af60-9c01c6a5db40",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ac8b136a-e249-4e67-af60-9c01c6a5db40@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": "ac8b136a-e249-4e67-af60-9c01c6a5db40"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ac8b136a-e249-4e67-af60-9c01c6a5db40@f9941",
"displayName": "点击可转至复原图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 191,
"height": 23,
"rawWidth": 191,
"rawHeight": 23,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "ac8b136a-e249-4e67-af60-9c01c6a5db40@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "ac8b136a-e249-4e67-af60-9c01c6a5db40@f9941"
}
}
assets/sceneBundle/games/passwordMatrix/newImg/玩法说明.png
0 → 100644
View file @
cde407f9
43.4 KB
assets/sceneBundle/games/passwordMatrix/newImg/玩法说明.png.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "cb7eb0f3-2249-424c-a641-6c53befd1cb7",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cb7eb0f3-2249-424c-a641-6c53befd1cb7@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": "cb7eb0f3-2249-424c-a641-6c53befd1cb7"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cb7eb0f3-2249-424c-a641-6c53befd1cb7@f9941",
"displayName": "玩法说明",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 329,
"height": 288,
"rawWidth": 329,
"rawHeight": 288,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "cb7eb0f3-2249-424c-a641-6c53befd1cb7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "cb7eb0f3-2249-424c-a641-6c53befd1cb7@f9941"
}
}
assets/sceneBundle/games/passwordMatrix/newImg/编组 3.png
0 → 100644
View file @
cde407f9
8.42 KB
assets/sceneBundle/games/passwordMatrix/newImg/编组 3.png.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "c5cfd045-8b80-4283-b663-c9d5d1c3e201",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c5cfd045-8b80-4283-b663-c9d5d1c3e201@6c48a",
"displayName": "编组 3",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "c5cfd045-8b80-4283-b663-c9d5d1c3e201"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c5cfd045-8b80-4283-b663-c9d5d1c3e201@f9941",
"displayName": "编组 3",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -2.5,
"trimX": 0,
"trimY": 5,
"width": 191,
"height": 101,
"rawWidth": 192,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "c5cfd045-8b80-4283-b663-c9d5d1c3e201@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "c5cfd045-8b80-4283-b663-c9d5d1c3e201@f9941"
}
}
assets/sceneBundle/games/passwordMatrix/newImg/编组 6.png
0 → 100644
View file @
cde407f9
7.51 KB
assets/sceneBundle/games/passwordMatrix/newImg/编组 6.png.meta
0 → 100644
View file @
cde407f9
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "d6a108f0-a404-474f-9496-336fd6fe1aab",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d6a108f0-a404-474f-9496-336fd6fe1aab@6c48a",
"displayName": "编组 6",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "d6a108f0-a404-474f-9496-336fd6fe1aab"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d6a108f0-a404-474f-9496-336fd6fe1aab@f9941",
"displayName": "编组 6",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -2.5,
"trimX": 0,
"trimY": 5,
"width": 191,
"height": 101,
"rawWidth": 192,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "d6a108f0-a404-474f-9496-336fd6fe1aab@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "d6a108f0-a404-474f-9496-336fd6fe1aab@f9941"
}
}
assets/sceneBundle/games/passwordMatrix/scene/PasswordMatrix_1.scene
View file @
cde407f9
This diff is collapsed.
Click to expand it.
assets/sceneBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
View file @
cde407f9
...
@@ -63,9 +63,6 @@ export class PasswordMatrixCtr extends Component {
...
@@ -63,9 +63,6 @@ export class PasswordMatrixCtr extends Component {
@
property
(
Node
)
@
property
(
Node
)
closeSuccSprNode
:
Node
=
null
!
;
closeSuccSprNode
:
Node
=
null
!
;
@
property
(
Toggle
)
showSuccSprTog
:
Toggle
=
null
!
;
@
property
(
CCFloat
)
@
property
(
CCFloat
)
totalTime
:
number
=
10
;
totalTime
:
number
=
10
;
...
@@ -75,6 +72,12 @@ export class PasswordMatrixCtr extends Component {
...
@@ -75,6 +72,12 @@ export class PasswordMatrixCtr extends Component {
@
property
(
Label
)
@
property
(
Label
)
tipsLab
:
Label
=
null
!
;
tipsLab
:
Label
=
null
!
;
@
property
(
Node
)
showRightBtnNode
:
Node
=
null
!
;
@
property
(
Node
)
showOrgBtnNode
:
Node
=
null
!
;
private
sqWidth
=
100
;
private
sqWidth
=
100
;
private
sqHeight
=
100
;
private
sqHeight
=
100
;
private
sqSpaceX
=
10
;
private
sqSpaceX
=
10
;
...
@@ -102,9 +105,9 @@ export class PasswordMatrixCtr extends Component {
...
@@ -102,9 +105,9 @@ export class PasswordMatrixCtr extends Component {
private
bestTime
=
0
;
private
bestTime
=
0
;
private
tipsTween
:
Tween
<
Node
>
=
null
!
;
private
tipsTween
:
Tween
<
Node
>
=
null
!
;
setGameData
(
resData
:
object
){
setGameData
(
resData
:
object
)
{
//@ts-ignore
//@ts-ignore
if
(
resData
.
totalTime
)
{
if
(
resData
.
totalTime
)
{
//@ts-ignore
//@ts-ignore
this
.
totalTime
=
resData
.
totalTime
;
this
.
totalTime
=
resData
.
totalTime
;
}
}
...
@@ -128,14 +131,14 @@ export class PasswordMatrixCtr extends Component {
...
@@ -128,14 +131,14 @@ export class PasswordMatrixCtr extends Component {
});
});
director
.
on
(
"finish_game"
,
()
=>
{
director
.
on
(
"finish_game"
,
()
=>
{
});
});
// [3]
// [3]
this
.
bestTime
=
this
.
totalTime
;
this
.
bestTime
=
this
.
totalTime
;
this
.
gameStart
();
this
.
gameStart
();
}
}
onDestroy
(){
onDestroy
()
{
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"continue_game"
);
director
.
off
(
"continue_game"
);
}
}
...
@@ -393,6 +396,8 @@ export class PasswordMatrixCtr extends Component {
...
@@ -393,6 +396,8 @@ export class PasswordMatrixCtr extends Component {
//展示正确的
//展示正确的
showRightSqIfos
()
{
showRightSqIfos
()
{
this
.
outSprNode
.
getComponent
(
Sprite
)
!
.
color
=
new
Color
(
255
,
255
,
0
,
255
);
this
.
outSprNode
.
getComponent
(
Sprite
)
!
.
color
=
new
Color
(
255
,
255
,
0
,
255
);
this
.
showOrgBtnNode
.
active
=
true
;
this
.
showRightBtnNode
.
active
=
false
;
for
(
let
i
=
0
;
i
<
this
.
allSqItem
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
this
.
allSqItem
.
length
;
++
i
)
{
this
.
allSqItem
[
i
].
getComponent
(
PwSqItem
)?.
showRightPosIfo
();
this
.
allSqItem
[
i
].
getComponent
(
PwSqItem
)?.
showRightPosIfo
();
}
}
...
@@ -435,7 +440,8 @@ export class PasswordMatrixCtr extends Component {
...
@@ -435,7 +440,8 @@ export class PasswordMatrixCtr extends Component {
//展示当前的
//展示当前的
showCurSqIfos
()
{
showCurSqIfos
()
{
this
.
showSuccSprTog
.
isChecked
=
false
;
this
.
showRightBtnNode
.
active
=
true
;
this
.
showOrgBtnNode
.
active
=
false
;
this
.
outSprNode
.
getComponent
(
Sprite
)
!
.
color
=
new
Color
(
0
,
0
,
0
,
128
);
this
.
outSprNode
.
getComponent
(
Sprite
)
!
.
color
=
new
Color
(
0
,
0
,
0
,
128
);
for
(
let
i
=
0
;
i
<
this
.
allSqItem
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
this
.
allSqItem
.
length
;
++
i
)
{
this
.
allSqItem
[
i
].
getComponent
(
PwSqItem
)?.
showCurPosIfo
();
this
.
allSqItem
[
i
].
getComponent
(
PwSqItem
)?.
showCurPosIfo
();
...
...
assets/startFolder/script/TempCtr.ts
View file @
cde407f9
...
@@ -17,7 +17,7 @@ export class TempCtr extends Component {
...
@@ -17,7 +17,7 @@ export class TempCtr extends Component {
assetManager
.
loadBundle
(
"audio"
);
assetManager
.
loadBundle
(
"audio"
);
CanvasSizeCtr
.
setContentStrategy
();
CanvasSizeCtr
.
setContentStrategy
();
assetManager
.
loadBundle
(
"sceneBundle"
,
(
err
,
bundle
)
=>
{
assetManager
.
loadBundle
(
"sceneBundle"
,
(
err
,
bundle
)
=>
{
bundle
.
loadScene
(
"
NumMatReason
_1"
,
(
err_1
,
scene
:
Scene
)
=>
{
bundle
.
loadScene
(
"
PasswordMatrix
_1"
,
(
err_1
,
scene
:
Scene
)
=>
{
if
(
err_1
)
{
if
(
err_1
)
{
log
(
`加载场景传入的场景名字有错`
);
log
(
`加载场景传入的场景名字有错`
);
log
(
err_1
);
log
(
err_1
);
...
...
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