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
086d8625
Commit
086d8625
authored
Nov 04, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
纵横填数大体好了
parent
b930a813
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
3232 additions
and
0 deletions
+3232
-0
VHFillNum.meta
assets/sceneBundle/games/VHFillNum.meta
+12
-0
image.meta
assets/sceneBundle/games/VHFillNum/image.meta
+12
-0
名称框.png
assets/sceneBundle/games/VHFillNum/image/名称框.png
+0
-0
名称框.png.meta
assets/sceneBundle/games/VHFillNum/image/名称框.png.meta
+74
-0
换色底图.png
assets/sceneBundle/games/VHFillNum/image/换色底图.png
+0
-0
换色底图.png.meta
assets/sceneBundle/games/VHFillNum/image/换色底图.png.meta
+74
-0
整体底框.png
assets/sceneBundle/games/VHFillNum/image/整体底框.png
+0
-0
整体底框.png.meta
assets/sceneBundle/games/VHFillNum/image/整体底框.png.meta
+74
-0
答案底图.png
assets/sceneBundle/games/VHFillNum/image/答案底图.png
+0
-0
答案底图.png.meta
assets/sceneBundle/games/VHFillNum/image/答案底图.png.meta
+74
-0
边框.png
assets/sceneBundle/games/VHFillNum/image/边框.png
+0
-0
边框.png.meta
assets/sceneBundle/games/VHFillNum/image/边框.png.meta
+74
-0
prefab.meta
assets/sceneBundle/games/VHFillNum/prefab.meta
+12
-0
VHFillNumItem.prefab
...s/sceneBundle/games/VHFillNum/prefab/VHFillNumItem.prefab
+618
-0
VHFillNumItem.prefab.meta
...neBundle/games/VHFillNum/prefab/VHFillNumItem.prefab.meta
+13
-0
scene.meta
assets/sceneBundle/games/VHFillNum/scene.meta
+12
-0
VHFillNum_1.scene
assets/sceneBundle/games/VHFillNum/scene/VHFillNum_1.scene
+1594
-0
VHFillNum_1.scene.meta
.../sceneBundle/games/VHFillNum/scene/VHFillNum_1.scene.meta
+11
-0
script.meta
assets/sceneBundle/games/VHFillNum/script.meta
+12
-0
VHFillNumCfg.ts
assets/sceneBundle/games/VHFillNum/script/VHFillNumCfg.ts
+41
-0
VHFillNumCfg.ts.meta
...s/sceneBundle/games/VHFillNum/script/VHFillNumCfg.ts.meta
+9
-0
VHFillNumCtr.ts
assets/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts
+410
-0
VHFillNumCtr.ts.meta
...s/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts.meta
+9
-0
VHFillNumItem.ts
assets/sceneBundle/games/VHFillNum/script/VHFillNumItem.ts
+88
-0
VHFillNumItem.ts.meta
.../sceneBundle/games/VHFillNum/script/VHFillNumItem.ts.meta
+9
-0
No files found.
assets/sceneBundle/games/VHFillNum.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "4369f246-81a1-4d2d-bd91-05ff610ad3ad",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/VHFillNum/image.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "d97ec704-be3e-4d17-a16c-bb88b33a3dbe",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/VHFillNum/image/名称框.png
0 → 100644
View file @
086d8625
2.63 KB
assets/sceneBundle/games/VHFillNum/image/名称框.png.meta
0 → 100644
View file @
086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@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": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@f9941",
"displayName": "名称框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 262,
"height": 69,
"rawWidth": 262,
"rawHeight": 69,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@f9941"
}
}
assets/sceneBundle/games/VHFillNum/image/换色底图.png
0 → 100644
View file @
086d8625
292 Bytes
assets/sceneBundle/games/VHFillNum/image/换色底图.png.meta
0 → 100644
View file @
086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@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": "8578ecff-0da2-40d5-a9b3-12494dc1baf0"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@f9941",
"displayName": "换色底图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@f9941"
}
}
assets/sceneBundle/games/VHFillNum/image/整体底框.png
0 → 100644
View file @
086d8625
1.85 KB
assets/sceneBundle/games/VHFillNum/image/整体底框.png.meta
0 → 100644
View file @
086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@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": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@f9941",
"displayName": "整体底框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 524,
"height": 524,
"rawWidth": 524,
"rawHeight": 524,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@f9941"
}
}
assets/sceneBundle/games/VHFillNum/image/答案底图.png
0 → 100644
View file @
086d8625
530 Bytes
assets/sceneBundle/games/VHFillNum/image/答案底图.png.meta
0 → 100644
View file @
086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@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": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@f9941",
"displayName": "答案底图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@f9941"
}
}
assets/sceneBundle/games/VHFillNum/image/边框.png
0 → 100644
View file @
086d8625
350 Bytes
assets/sceneBundle/games/VHFillNum/image/边框.png.meta
0 → 100644
View file @
086d8625
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@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": "3ce562fe-fde6-468d-8e2c-b90187a3ba55"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@f9941",
"displayName": "边框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@f9941"
}
}
assets/sceneBundle/games/VHFillNum/prefab.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "95cdeb03-5014-4940-9ace-f790f56f52cc",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/VHFillNum/prefab/VHFillNumItem.prefab
0 → 100644
View file @
086d8625
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "VHFillNumItem",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
},
{
"__id__": 12
},
{
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 26
}
],
"_prefab": {
"__id__": 28
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "clickNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 5
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c2TPb/0elO2qjoJPh8Q7ki"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "37/FJZHHBGCoTCqjivU/FK"
},
{
"__type__": "cc.Node",
"_name": "fixedSpr",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 11
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@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": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "768xxJiWxGAbwz3G/OGOqX"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 17
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 219,
"g": 229,
"b": 227,
"a": 255
},
"_spriteFrame": {
"__uuid__": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@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": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "06Nri/8DBEiJCGePCvzR++"
},
{
"__type__": "cc.Node",
"_name": "numLab",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
},
{
"__id__": 21
}
],
"_prefab": {
"__id__": 23
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 20
},
"_contentSize": {
"__type__": "cc.Size",
"width": 22.25,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 22
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
},
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e7+dhyu/FOFpnKcAg7nEoZ"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 25
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4e7kAbMUxIAKapnE42Ntt6"
},
{
"__type__": "c4175jmrO9GZaVLCuA6/mXg",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"bgSpr": {
"__id__": 15
},
"fixedSpr": {
"__id__": 9
},
"eleSprFra": {
"__uuid__": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"retSprFra": {
"__uuid__": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"showNumLab": {
"__id__": 21
},
"clickNode": {
"__id__": 2
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e3wkuRQppIAIag6CAkaCu3"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "333mi2X0dDr7XdiV8aW13c"
}
]
\ No newline at end of file
assets/sceneBundle/games/VHFillNum/prefab/VHFillNumItem.prefab.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.27",
"importer": "prefab",
"imported": true,
"uuid": "6ab87c96-648b-4f6d-9657-b62462e29fa7",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "VHFillNumItem"
}
}
assets/sceneBundle/games/VHFillNum/scene.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "a742e1c2-b2dd-4d87-961d-2730cc918d80",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/VHFillNum/scene/VHFillNum_1.scene
0 → 100644
View file @
086d8625
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_name": "VHFillNum_1",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_active": true,
"_components": [],
"_prefab": null,
"autoReleaseAssets": false,
"_globals": {
"__id__": 56
},
"_id": "3ad49fde-89b1-44df-a173-4859cc88e56d"
},
{
"__type__": "cc.Node",
"_name": "Main Light",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.24999999999999997,
"y": -0.24999999999999997,
"z": -0.06698729810778066,
"w": 0.9330127018922194
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -30,
"y": -30,
"z": 0
},
"_id": "c0y6F5f+pAvI805TdmxIjx"
},
{
"__type__": "cc.DirectionalLight",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_useColorTemperature": false,
"_colorTemperature": 6550,
"_staticSettings": {
"__id__": 4
},
"_illuminance": 65000,
"_id": "597uMYCbhEtJQc0ffJlcgA"
},
{
"__type__": "cc.StaticLightSettings",
"_baked": false,
"_editorOnly": false,
"_bakeable": false,
"_castShadow": false
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -10,
"y": 10,
"z": 10
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.27781593346944056,
"y": -0.36497167621709875,
"z": -0.11507512748638377,
"w": 0.8811195706053617
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -35,
"y": -45,
"z": 0
},
"_id": "c9DMICJLFO5IeO07EPon7U"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"__prefab": null,
"_projection": 1,
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 10,
"_near": 1,
"_far": 1000,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 1822425087,
"_targetTexture": null,
"_id": "7dWQTpwS5LrIHnc1zAPUtf"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 16
},
{
"__id__": 22
},
{
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 667,
"y": 375,
"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": "11Z9Ne8TJG8K/EiEElY2z1"
},
{
"__type__": "cc.Node",
"_name": "Camera",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 1000
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "93nwGCVtxMaYUiVxQHg0eG"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": null,
"_projection": 0,
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 466.3930510314875,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 41943040,
"_targetTexture": null,
"_id": "2cWTfFFT1EFY8JFgELxSYn"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
},
{
"__id__": 15
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "4fheC+ErxJTrdWFKEaUuMA"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "02/tK0HE1DXoplicQEucer"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 143,
"g": 170,
"b": 172,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@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": "daZiVOT2ZCo6c76YmcMhys"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "76lKI6MmhBl7/VfAbKKo/2"
},
{
"__type__": "cc.Node",
"_name": "整体底框",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
},
{
"__id__": 19
},
{
"__id__": 21
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "ffcK7a0yFDqKHGS9wvXhpv"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"__prefab": {
"__id__": 18
},
"_contentSize": {
"__type__": "cc.Size",
"width": 524,
"height": 524
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "efberbIVFEio4RUlF45KRN"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"__prefab": {
"__id__": 20
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@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": "e2f78h/JRIJZ1xCjrRx1lx"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "99HMjxZURNxJN+bZOHRDXp"
},
{
"__type__": "cc.Node",
"_name": "posArrNode",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "c7sd80JDdPna0sxnx/bOCg"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "62cOo/Y6BPIKJuBDpvka1d"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "17OaVD2AlCfJSHNwSt0Xrl"
},
{
"__type__": "cc.Node",
"_name": "optionsTogs",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 26
}
],
"_active": true,
"_components": [
{
"__id__": 45
},
{
"__id__": 46
},
{
"__id__": 47
},
{
"__id__": 48
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 467.81499999999994,
"y": -189.706,
"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": "1cpwVL2XFNMoz2iExCPJw4"
},
{
"__type__": "cc.Node",
"_name": "numTog",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [
{
"__id__": 27
},
{
"__id__": 32
},
{
"__id__": 37
}
],
"_active": true,
"_components": [
{
"__id__": 42
},
{
"__id__": 43
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "8edv87I0NOjZzmMW8i4Smd"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 30
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "d4zkhr8MNIxLqyDdHrv5Ci"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"__prefab": {
"__id__": 29
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "52zB2ZmmxDvIHXsdHgSC9O"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 120
},
"_spriteFrame": {
"__uuid__": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@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": "e5FTApXy1CeYCKO7hSNlH7"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "markSpr",
"_objFlags": 0,
"_parent": {
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
},
{
"__id__": 35
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "3dCE4ZQpxOBoHnoIOiqzrq"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": {
"__id__": 34
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "6c946HWadIM73TUbKke1VT"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": {
"__id__": 36
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 214,
"b": 102,
"a": 255
},
"_spriteFrame": {
"__uuid__": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@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": "49bWtDWlVJC6uHgqYlYZic"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "numLab",
"_objFlags": 0,
"_parent": {
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
},
{
"__id__": 40
}
],
"_prefab": null,
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "58IwRku3xNuqJtoURbydNp"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"__prefab": {
"__id__": 39
},
"_contentSize": {
"__type__": "cc.Size",
"width": 27.81,
"height": 63
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "114FcXlvlBnpoSVu25WXoC"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"__prefab": {
"__id__": 41
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "8",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 50,
"_fontSize": 50,
"_fontFamily": "Arial",
"_lineHeight": 50,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "92h7qvlZFAKoZ0IdK5luZf"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "86kUmnVn9NM65VjZ7+c5Gz"
},
{
"__type__": "cc.Toggle",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 44
}
],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"checkEvents": [],
"_isChecked": true,
"_checkMark": {
"__id__": 35
},
"_id": "bcw4h4edpK4ookoea4OYFT"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "98565897FBD5a+inp9Ql6Pb",
"handler": "onOptionsClick",
"customEventData": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "dfnaofrEFDuaW0mhI6VE5T"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"__prefab": null,
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 20,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": "e4UP3G2NRCZLQadUndEG7t"
},
{
"__type__": "cc.ToggleContainer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"__prefab": null,
"_allowSwitchOff": false,
"checkEvents": [],
"_id": "22z0h6KthLyJ2/WMMabo3y"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 2,
"_target": null,
"_left": 0,
"_right": 9.18500000000006,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": -189.706,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "7a3k0lVCpJAaEYUpN0AOkW"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 50
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "77h/0bttNLhJ0Uf0DOgkDU"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0dngp/9gNO34wUQjZfN/CX"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 52
},
"_cameraComponent": {
"__id__": 9
},
"_alignCanvasWithScreen": true,
"_id": "97DFCFxOZMxoNqwB/NSqX/"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3f2oTdCepERZdpmIfLsrhd"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 54
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "0fEIdRzs1JLbklr3mlph2N"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e8a+bU/8dPDbbJguUzLdoF"
},
{
"__type__": "98565897FBD5a+inp9Ql6Pb",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"posArrNode": {
"__id__": 22
},
"bottomSprNode": {
"__id__": 16
},
"itemPre": {
"__uuid__": "6ab87c96-648b-4f6d-9657-b62462e29fa7",
"__expectedType__": "cc.Prefab"
},
"countdownLab": null,
"totalTime": 0,
"optionsTogsNode": {
"__id__": 25
},
"_id": "9c51FsCINLt5Ht8FPD7e0N"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 57
},
"shadows": {
"__id__": 58
},
"_skybox": {
"__id__": 59
},
"fog": {
"__id__": 60
}
},
{
"__type__": "cc.AmbientInfo",
"_skyColor": {
"__type__": "cc.Color",
"r": 51,
"g": 128,
"b": 204,
"a": 1
},
"_skyIllum": 20000,
"_groundAlbedo": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
}
},
{
"__type__": "cc.ShadowsInfo",
"_type": 0,
"_enabled": false,
"_normal": {
"__type__": "cc.Vec3",
"x": 0,
"y": 1,
"z": 0
},
"_distance": 0,
"_shadowColor": {
"__type__": "cc.Color",
"r": 76,
"g": 76,
"b": 76,
"a": 255
},
"_autoAdapt": true,
"_pcf": 0,
"_bias": 0.00001,
"_packing": false,
"_linear": true,
"_selfShadow": false,
"_normalBias": 0,
"_near": 1,
"_far": 30,
"_aspect": 1,
"_orthoSize": 5,
"_maxReceived": 4,
"_size": {
"__type__": "cc.Vec2",
"x": 512,
"y": 512
}
},
{
"__type__": "cc.SkyboxInfo",
"_envmap": null,
"_isRGBE": false,
"_enabled": false,
"_useIBL": false
},
{
"__type__": "cc.FogInfo",
"_type": 0,
"_fogColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_enabled": false,
"_fogDensity": 0.3,
"_fogStart": 0.5,
"_fogEnd": 300,
"_fogAtten": 5,
"_fogTop": 1.5,
"_fogRange": 1.2
}
]
\ No newline at end of file
assets/sceneBundle/games/VHFillNum/scene/VHFillNum_1.scene.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.27",
"importer": "scene",
"imported": true,
"uuid": "3ad49fde-89b1-44df-a173-4859cc88e56d",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/VHFillNum/script.meta
0 → 100644
View file @
086d8625
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "9499825d-ec68-4c20-b5df-97edf8a4fab9",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumCfg.ts
0 → 100644
View file @
086d8625
import
{
_decorator
,
Component
,
Node
}
from
'cc'
;
const
{
ccclass
,
property
}
=
_decorator
;
export
interface
VHFillNumCfg
{
row
:
number
,
column
:
number
,
numArr
:
number
[][],
emptyCtrArr
:
number
[][],
rowSymb
:
string
[][],
columnSymb
:
string
[][]
options
:
number
[]
}
//常用计算符号 ÷ ×
export
const
vhfn_lv_1
:
VHFillNumCfg
=
{
row
:
4
,
column
:
4
,
numArr
:
[
[
3
,
6
,
5
,
14
],
[
8
,
4
,
2
,
16
],
[
6
,
2
,
3
,
36
],
[
30
,
8
,
10
,
-
1
]
],
emptyCtrArr
:
[
[
1
,
1
,
0
,
1
],
[
0
,
1
,
0
,
1
],
[
1
,
0
,
1
,
1
],
[
1
,
1
,
1
,
1
]
],
rowSymb
:
[
[
"+"
,
"+"
,
"="
],
[
"×"
,
"÷"
,
"="
],
[
"×"
,
"×"
,
"="
]
],
columnSymb
:
[
[
"×"
,
"+"
,
"+"
],
[
"+"
,
"÷"
,
"+"
],
[
"="
,
"="
,
"="
],
],
options
:
[
5
,
2
,
8
]
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumCfg.ts.meta
0 → 100644
View file @
086d8625
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "300a7889-af89-47b7-8ea9-13b853080989",
"files": [],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts
0 → 100644
View file @
086d8625
import
{
_decorator
,
Component
,
Node
,
Prefab
,
Label
,
CCFloat
,
Vec3
,
UITransform
,
instantiate
,
v3
,
Color
,
Toggle
,
director
}
from
'cc'
;
import
{
failMus
,
succMus
}
from
'../../../../startFolder/script/common/AudioDef'
;
import
{
AudioMgr
}
from
'../../../../startFolder/script/common/AudioMgr'
;
import
{
VIEW_DEF
}
from
'../../../../startFolder/script/common/ViewDef'
;
import
{
viewMgr
,
VIEW_INDEX
}
from
'../../../../startFolder/script/common/ViewMgr'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
VHFillNumCfg
,
vhfn_lv_1
}
from
'./VHFillNumCfg'
;
import
{
VHFillNumItem
,
VHFN_ITEM_TYPE
}
from
'./VHFillNumItem'
;
const
{
ccclass
,
property
}
=
_decorator
;
export
interface
ItemPosIfo
{
id
:
number
,
//唯一标识
pos
:
Vec3
,
//位置
xIdx
:
number
,
//列
yIdx
:
number
,
//行
target
:
Node
//占有这个节点的对象
}
enum
GAME_STATE
{
READY
=
10
,
RUN
=
20
,
END
=
30
,
PAUSE
=
40
,
}
@
ccclass
(
'VHFillNumCtr'
)
export
class
VHFillNumCtr
extends
Component
{
@
property
(
Node
)
posArrNode
:
Node
=
null
!
;
@
property
(
Node
)
bottomSprNode
:
Node
=
null
!
;
@
property
(
Prefab
)
itemPre
:
Prefab
=
null
!
;
@
property
(
Label
)
countdownLab
:
Label
=
null
!
;
@
property
(
CCFloat
)
totalTime
:
number
=
0
;
@
property
(
Node
)
optionsTogsNode
:
Node
=
null
!
;
private
itemWidth
=
80
;
private
itemHeight
=
80
;
private
itemSpaceX
=
40
;
private
itemSpaceY
=
40
;
private
itemPosIfoArr
:
ItemPosIfo
[]
=
[];
private
row
=
4
;
private
column
=
4
;
private
level
=
1
;
private
levelData
:
VHFillNumCfg
=
null
!
;
private
selNum
=
0
;
private
gameState
=
GAME_STATE
.
READY
;
start
()
{
// [3]
director
.
on
(
"VHFM_click"
,
this
.
onItemClick
,
this
);
this
.
gameStart
();
}
onDestroy
()
{
director
.
off
(
"VHFM_click"
,
this
.
onItemClick
,
this
);
}
gameStart
()
{
this
.
gameState
=
GAME_STATE
.
READY
;
this
.
loadLevelData
();
this
.
creAllItem
();
this
.
creOptions
();
this
.
setBgSprSize
();
this
.
checkWin
();
this
.
gameState
=
GAME_STATE
.
RUN
;
}
onItemClick
(
item
:
VHFillNumItem
)
{
console
.
log
(
`一个item被点击2`
);
if
(
item
.
itemType
==
VHFN_ITEM_TYPE
.
RESULT
||
item
.
itemType
==
VHFN_ITEM_TYPE
.
FIX_ELE
)
return
;
item
.
showNum
=
this
.
selNum
;
if
(
this
.
checkWin
())
{
console
.
log
(
`游戏成功`
);
}
else
{
console
.
log
(
`游戏还没成功`
);
}
}
checkWin
()
{
let
isWin
=
true
;
for
(
let
r
=
0
;
r
<
this
.
row
-
1
;
++
r
)
{
let
itemPosIfoArr
=
this
.
getItemPosIfos
(
r
,
true
);
let
optArr_1
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
itemPosIfoArr
.
length
-
1
;
++
i
)
{
optArr_1
.
push
(
itemPosIfoArr
[
i
].
target
.
getComponent
(
VHFillNumItem
)
!
.
showNum
.
toString
());
}
let
optArr_2
=
this
.
getOperatorArr
(
r
,
true
);
let
optArr
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
optArr_1
.
length
;
++
i
)
{
optArr
.
push
(
optArr_1
[
i
]);
if
(
optArr_2
[
i
])
optArr
.
push
(
optArr_2
[
i
]);
}
// console.log(`传入的算式行: ${r}`);
// console.log(optArr);
if
(
this
.
calculator
(
optArr
)
==
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
showNum
){
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
bgSpr
.
node
.
active
=
true
;
}
else
{
isWin
=
false
;
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
bgSpr
.
node
.
active
=
false
;
}
}
for
(
let
c
=
0
;
c
<
this
.
column
-
1
;
++
c
)
{
let
itemPosIfoArr
=
this
.
getItemPosIfos
(
c
,
false
);
let
optArr_1
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
itemPosIfoArr
.
length
-
1
;
++
i
)
{
optArr_1
.
push
(
itemPosIfoArr
[
i
].
target
.
getComponent
(
VHFillNumItem
)
!
.
showNum
.
toString
());
}
let
optArr_2
=
this
.
getOperatorArr
(
c
,
false
);
let
optArr
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
optArr_1
.
length
;
++
i
)
{
optArr
.
push
(
optArr_1
[
i
]);
if
(
optArr_2
[
i
])
optArr
.
push
(
optArr_2
[
i
]);
}
// console.log(`传入的算式列: ${c}`);
// console.log(optArr);
if
(
this
.
calculator
(
optArr
)
==
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
showNum
){
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
bgSpr
.
node
.
active
=
true
;
}
else
{
isWin
=
false
;
itemPosIfoArr
[
itemPosIfoArr
.
length
-
1
].
target
.
getComponent
(
VHFillNumItem
)
!
.
bgSpr
.
node
.
active
=
false
;
}
}
return
isWin
;
}
gameEnd
(
isWin
:
boolean
)
{
this
.
gameState
=
GAME_STATE
.
END
;
if
(
isWin
)
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeSuccView
,
(
node
)
=>
{
AudioMgr
.
playOneShot
(
succMus
);
node
?.
getComponent
(
ChallengeSuccView
)?.
init
();
},
VIEW_INDEX
.
TOP
);
}
else
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeFailView
,
(
node
)
=>
{
AudioMgr
.
playOneShot
(
failMus
);
},
VIEW_INDEX
.
TOP
);
}
}
onOptionsClick
(
err
:
any
,
flag
:
string
)
{
this
.
selNum
=
Number
(
flag
);
}
/**
* 获取一个item
* @param xIdx 列
* @param yIdx 行
*/
getItemPosIfo
(
xIdx
:
number
,
yIdx
:
number
)
{
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
if
(
this
.
itemPosIfoArr
[
i
].
xIdx
==
xIdx
&&
this
.
itemPosIfoArr
[
i
].
yIdx
==
yIdx
)
return
this
.
itemPosIfoArr
[
i
];
}
return
null
;
}
/**
* 获取一行或一列的item
* @param xIdx
* @param yIdx
* @returns
*/
getItemPosIfos
(
idx
:
number
,
isRow
:
boolean
)
{
let
items
:
ItemPosIfo
[]
=
[];
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
if
(
isRow
&&
this
.
itemPosIfoArr
[
i
].
yIdx
==
idx
)
{
items
.
push
(
this
.
itemPosIfoArr
[
i
]);
}
else
if
(
!
isRow
&&
this
.
itemPosIfoArr
[
i
].
xIdx
==
idx
)
{
items
.
push
(
this
.
itemPosIfoArr
[
i
]);
}
}
items
.
sort
((
a
,
b
)
=>
{
return
a
.
xIdx
-
b
.
xIdx
;
});
items
.
sort
((
a
,
b
)
=>
{
return
a
.
yIdx
-
b
.
yIdx
;
});
return
items
;
}
creAllItem
()
{
this
.
itemPosIfoArr
=
this
.
getSqPosIfoArr
(
this
.
row
,
this
.
column
,
this
.
itemWidth
,
this
.
itemHeight
,
this
.
itemSpaceX
,
this
.
itemSpaceY
);
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
let
node
=
instantiate
(
this
.
itemPre
);
this
.
posArrNode
.
addChild
(
node
);
node
.
setPosition
(
this
.
itemPosIfoArr
[
i
].
pos
);
this
.
itemPosIfoArr
[
i
].
target
=
node
;
if
(
i
==
this
.
itemPosIfoArr
.
length
-
1
)
{
node
.
active
=
false
;
}
let
xIdx
=
this
.
itemPosIfoArr
[
i
].
xIdx
;
let
yIdx
=
this
.
itemPosIfoArr
[
i
].
yIdx
;
node
.
getComponent
(
VHFillNumItem
)
!
.
rightNum
=
this
.
levelData
.
numArr
[
yIdx
][
xIdx
];
if
(
this
.
levelData
.
emptyCtrArr
[
yIdx
][
xIdx
]
!=
0
)
{
node
.
getComponent
(
VHFillNumItem
)
!
.
itemType
=
VHFN_ITEM_TYPE
.
FIX_ELE
;
node
.
getComponent
(
VHFillNumItem
)
!
.
showNum
=
this
.
levelData
.
numArr
[
yIdx
][
xIdx
];
}
else
{
node
.
getComponent
(
VHFillNumItem
)
!
.
itemType
=
VHFN_ITEM_TYPE
.
NOR_ELE
;
node
.
getComponent
(
VHFillNumItem
)
!
.
showNum
=
-
1
;
}
if
(
xIdx
==
this
.
column
-
1
||
yIdx
==
this
.
row
-
1
)
{
node
.
getComponent
(
VHFillNumItem
)
!
.
itemType
=
VHFN_ITEM_TYPE
.
RESULT
;
}
}
this
.
creRowSymbol
();
this
.
creColumnSymbol
();
}
setBgSprSize
()
{
let
minWidth
=
this
.
column
*
this
.
itemWidth
+
(
this
.
column
-
1
)
*
this
.
itemSpaceX
;
let
minHeight
=
this
.
row
*
this
.
itemHeight
+
(
this
.
row
-
1
)
*
this
.
itemSpaceY
;
this
.
bottomSprNode
.
getComponent
(
UITransform
)
!
.
width
=
minWidth
+
60
;
this
.
bottomSprNode
.
getComponent
(
UITransform
)
!
.
height
=
minHeight
+
60
;
this
.
posArrNode
.
getComponent
(
UITransform
)
!
.
width
=
minWidth
;
this
.
posArrNode
.
getComponent
(
UITransform
)
!
.
height
=
minHeight
;
}
getSqPosIfoArr
(
row
:
number
,
column
:
number
,
s_width
:
number
,
s_height
:
number
,
spacingX
:
number
,
spacingY
:
number
):
ItemPosIfo
[]
{
let
x_arr
:
number
[]
=
[];
for
(
let
c
=
1
;
c
<=
column
;
++
c
)
{
let
x
=
s_width
*
(
c
-
1
+
0.5
)
+
(
c
-
1
)
*
spacingX
-
(
column
*
s_width
+
(
column
-
1
)
*
spacingX
)
/
2
;
x_arr
.
push
(
x
);
}
let
y_arr
:
number
[]
=
[];
for
(
let
r
=
1
;
r
<=
row
;
++
r
)
{
let
y
=
s_height
*
(
r
-
1
+
0.5
)
+
(
r
-
1
)
*
spacingY
-
(
row
*
s_height
+
(
row
-
1
)
*
spacingY
)
/
2
;
y_arr
.
push
(
y
);
y_arr
.
sort
((
a
,
b
)
=>
{
return
b
-
a
;
});
}
let
pos_arr
:
ItemPosIfo
[]
=
[];
for
(
let
r
=
0
;
r
<
y_arr
.
length
;
++
r
)
{
for
(
let
c
=
0
;
c
<
x_arr
.
length
;
++
c
)
{
pos_arr
.
push
({
pos
:
v3
(
x_arr
[
c
],
y_arr
[
r
],
0
)
,
xIdx
:
c
,
yIdx
:
r
,
id
:
pos_arr
.
length
,
target
:
null
!
});
}
}
return
pos_arr
;
}
creRowSymbol
()
{
let
posArr
:
Vec3
[][]
=
[];
for
(
let
i
=
0
;
i
<
this
.
row
-
1
;
++
i
)
{
let
itemPosIfos
=
this
.
getItemPosIfos
(
i
,
true
);
let
tempPosArr
:
Vec3
[]
=
[];
for
(
let
j
=
0
;
j
<
itemPosIfos
.
length
-
1
;
++
j
)
{
tempPosArr
.
push
(
v3
((
itemPosIfos
[
j
].
pos
.
x
+
itemPosIfos
[
j
+
1
].
pos
.
x
)
/
2
,
(
itemPosIfos
[
j
].
pos
.
y
+
itemPosIfos
[
j
+
1
].
pos
.
y
)
/
2
));
}
posArr
.
push
(
tempPosArr
);
}
let
symbolArr
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
this
.
levelData
.
rowSymb
.
length
;
++
i
)
{
symbolArr
=
this
.
levelData
.
rowSymb
[
i
];
for
(
let
j
=
0
;
j
<
symbolArr
.
length
;
++
j
)
{
let
lab
=
new
Node
().
addComponent
(
Label
);
lab
.
string
=
symbolArr
[
j
];
lab
.
color
=
new
Color
(
51
,
51
,
51
,
255
);
lab
.
lineHeight
=
40
;
lab
.
fontSize
=
36
;
lab
.
node
.
layer
=
1
<<
25
;
this
.
posArrNode
.
addChild
(
lab
.
node
);
lab
.
node
.
setPosition
(
posArr
[
i
][
j
]);
}
}
}
creColumnSymbol
()
{
let
posArr
:
Vec3
[][]
=
[];
for
(
let
i
=
0
;
i
<
this
.
column
-
1
;
++
i
)
{
let
itemPosIfos_1
=
this
.
getItemPosIfos
(
i
,
true
);
let
itemPosIfos_2
=
this
.
getItemPosIfos
(
i
+
1
,
true
);
let
tempPosArr
:
Vec3
[]
=
[];
for
(
let
j
=
0
;
j
<
itemPosIfos_1
.
length
-
1
&&
j
<
itemPosIfos_2
.
length
-
1
;
++
j
)
{
tempPosArr
.
push
(
v3
((
itemPosIfos_1
[
j
].
pos
.
x
+
itemPosIfos_2
[
j
].
pos
.
x
)
/
2
,
(
itemPosIfos_1
[
j
].
pos
.
y
+
itemPosIfos_2
[
j
+
1
].
pos
.
y
)
/
2
));
}
posArr
.
push
(
tempPosArr
);
}
let
symbolArr
:
string
[]
=
[];
for
(
let
i
=
0
;
i
<
this
.
levelData
.
columnSymb
.
length
;
++
i
)
{
symbolArr
=
this
.
levelData
.
columnSymb
[
i
];
for
(
let
j
=
0
;
j
<
symbolArr
.
length
;
++
j
)
{
let
lab
=
new
Node
().
addComponent
(
Label
);
lab
.
string
=
symbolArr
[
j
];
lab
.
color
=
new
Color
(
51
,
51
,
51
,
255
);
lab
.
lineHeight
=
40
;
lab
.
fontSize
=
36
;
lab
.
node
.
layer
=
1
<<
25
;
this
.
posArrNode
.
addChild
(
lab
.
node
);
lab
.
node
.
setPosition
(
posArr
[
i
][
j
]);
}
}
}
loadLevelData
()
{
switch
(
this
.
level
)
{
case
1
:
this
.
levelData
=
vhfn_lv_1
;
break
;
default
:
this
.
levelData
=
vhfn_lv_1
;
break
;
}
this
.
row
=
this
.
levelData
.
row
;
this
.
column
=
this
.
levelData
.
column
;
}
creOptions
()
{
while
(
this
.
optionsTogsNode
.
children
.
length
<
this
.
levelData
.
options
.
length
)
{
this
.
optionsTogsNode
.
addChild
(
instantiate
(
this
.
optionsTogsNode
.
children
[
0
]));
}
for
(
let
i
=
this
.
levelData
.
options
.
length
;
i
<
this
.
optionsTogsNode
.
children
.
length
;
++
i
)
{
this
.
optionsTogsNode
.
children
[
i
].
active
=
false
;
}
for
(
let
i
=
0
;
i
<
this
.
optionsTogsNode
.
children
.
length
&&
i
<
this
.
levelData
.
options
.
length
;
++
i
)
{
this
.
optionsTogsNode
.
children
[
i
].
getComponentInChildren
(
Label
)
!
.
string
=
this
.
levelData
.
options
[
i
].
toString
();
this
.
optionsTogsNode
.
children
[
i
].
getComponent
(
Toggle
)
!
.
clickEvents
[
0
].
customEventData
=
this
.
levelData
.
options
[
i
].
toString
();
}
this
.
optionsTogsNode
.
children
[
0
].
getComponent
(
Toggle
)
!
.
isChecked
=
true
;
this
.
selNum
=
this
.
levelData
.
options
[
0
];
}
calculator
(
numStrArr
:
string
[]):
number
{
let
operatorIdx
=
-
1
;
for
(
let
i
=
0
;
i
<
numStrArr
.
length
;
++
i
)
{
if
(
numStrArr
[
i
]
==
"+"
||
numStrArr
[
i
]
==
"-"
||
numStrArr
[
i
]
==
"÷"
||
numStrArr
[
i
]
==
"×"
)
{
operatorIdx
=
i
;
break
;
}
}
for
(
let
i
=
0
;
i
<
numStrArr
.
length
;
++
i
)
{
if
(
numStrArr
[
i
]
==
"÷"
||
numStrArr
[
i
]
==
"×"
)
{
operatorIdx
=
i
;
break
;
}
}
if
(
operatorIdx
==
0
||
operatorIdx
==
numStrArr
.
length
-
1
)
{
throw
new
Error
(
`传入的算式不符合规则`
);
}
if
(
operatorIdx
==
-
1
)
return
Number
(
numStrArr
[
0
]);
let
num_1
=
Number
(
numStrArr
[
operatorIdx
-
1
]);
let
num_2
=
Number
(
numStrArr
[
operatorIdx
+
1
]);
let
num_ret
=
0
;
switch
(
numStrArr
[
operatorIdx
])
{
case
"+"
:
num_ret
=
num_1
+
num_2
;
break
;
case
"-"
:
num_ret
=
num_1
-
num_2
;
break
;
case
"÷"
:
if
(
num_2
==
0
)
throw
new
Error
(
`除数为零`
);
num_ret
=
num_1
/
num_2
;
break
;
case
"×"
:
num_ret
=
num_1
*
num_2
;
break
;
default
:
break
;
}
numStrArr
[
operatorIdx
-
1
]
=
num_ret
.
toString
();
numStrArr
.
splice
(
operatorIdx
,
2
);
return
this
.
calculator
(
numStrArr
);
}
getOperatorArr
(
idx
:
number
,
isRow
:
boolean
)
{
let
optArr
:
string
[]
=
[];
if
(
isRow
){
for
(
let
i
=
0
;
i
<
this
.
levelData
.
rowSymb
[
idx
].
length
-
1
;
++
i
){
optArr
.
push
(
this
.
levelData
.
rowSymb
[
idx
][
i
]);
}
}
else
{
for
(
let
i
=
0
;
i
<
this
.
levelData
.
columnSymb
.
length
-
1
;
++
i
){
optArr
.
push
(
this
.
levelData
.
columnSymb
[
i
][
idx
]);
}
}
return
optArr
;
}
// update (deltaTime: number) {
// // [4]
// }
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumCtr.ts.meta
0 → 100644
View file @
086d8625
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "98565f3d-ec50-43e5-afa2-9e9f5097a3db",
"files": [],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumItem.ts
0 → 100644
View file @
086d8625
import
{
_decorator
,
Component
,
Node
,
Sprite
,
SpriteFrame
,
Label
,
director
}
from
'cc'
;
const
{
ccclass
,
property
}
=
_decorator
;
export
enum
VHFN_ITEM_TYPE
{
RESULT
=
10
,
FIX_ELE
=
20
,
NOR_ELE
=
30
,
}
@
ccclass
(
'VHFillNumItem'
)
export
class
VHFillNumItem
extends
Component
{
@
property
(
Sprite
)
bgSpr
:
Sprite
=
null
!
;
@
property
(
Sprite
)
fixedSpr
:
Sprite
=
null
!
;
@
property
(
SpriteFrame
)
eleSprFra
:
SpriteFrame
=
null
!
;
@
property
(
SpriteFrame
)
retSprFra
:
SpriteFrame
=
null
!
;
@
property
(
Label
)
showNumLab
:
Label
=
null
!
;
@
property
(
Node
)
clickNode
:
Node
=
null
!
;
private
_itemType
=
VHFN_ITEM_TYPE
.
RESULT
;
public
set
itemType
(
value
:
VHFN_ITEM_TYPE
)
{
this
.
_itemType
=
value
;
if
(
this
.
_itemType
==
VHFN_ITEM_TYPE
.
RESULT
)
{
this
.
bgSpr
.
spriteFrame
=
this
.
retSprFra
;
this
.
fixedSpr
.
node
.
active
=
false
;
}
else
if
(
this
.
_itemType
==
VHFN_ITEM_TYPE
.
FIX_ELE
)
{
this
.
bgSpr
.
spriteFrame
=
this
.
eleSprFra
;
this
.
fixedSpr
.
node
.
active
=
true
;
}
else
{
this
.
bgSpr
.
spriteFrame
=
this
.
eleSprFra
;
this
.
fixedSpr
.
node
.
active
=
false
;
}
}
public
get
itemType
()
{
return
this
.
_itemType
;
}
private
_rightNum
=
0
;
public
set
rightNum
(
value
:
number
)
{
this
.
_rightNum
=
value
;
}
public
get
rightNum
()
{
return
this
.
_rightNum
;
}
private
_showNum
=
-
1
;
public
set
showNum
(
value
:
number
)
{
this
.
_showNum
=
value
;
this
.
showNumLab
.
string
=
this
.
_showNum
==
-
1
?
""
:
this
.
_showNum
+
""
;
}
public
get
showNum
()
{
return
this
.
_showNum
;
}
start
()
{
// [3]
// console.log(`一个item被点击0`);
// console.log(this.clickNode);
this
.
clickNode
.
on
(
Node
.
EventType
.
TOUCH_END
,
()
=>
{
console
.
log
(
`一个item被点击1`
);
director
.
emit
(
"VHFM_click"
,
this
);
});
}
isRight
()
{
return
this
.
_showNum
==
this
.
rightNum
;
}
// update (deltaTime: number) {
// // [4]
// }
}
assets/sceneBundle/games/VHFillNum/script/VHFillNumItem.ts.meta
0 → 100644
View file @
086d8625
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "c41758e6-acef-4665-a54b-0ae03afe65e0",
"files": [],
"subMetas": {},
"userData": {}
}
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