整理资源

This commit is contained in:
2025-05-16 15:30:43 +08:00
parent b06c8d4414
commit 67c2201eaf
44 changed files with 213 additions and 343 deletions

View File

@@ -1,3 +0,0 @@
{
"uuid": "ffc1d580-9237-4231-a78d-f39d72640d50"
}

View File

@@ -1,53 +0,0 @@
{
"_$type": "Animator",
"enabled": true,
"path": "",
"cullingMode": 2,
"controllerLayers": [
{
"name": "Base Layer",
"states": [
{
"x": 84,
"y": 176,
"id": "-1",
"name": "进入",
"nexts": [],
"soloTransitions": [
{
"id": "0",
"exitByTime": true,
"exitTime": 1
}
]
},
{
"y": 305,
"id": "-2",
"name": "任何状态",
"x": 70,
"soloTransitions": []
},
{
"x": 291,
"y": 262,
"_isLooping": 0,
"id": "0",
"name": "fade_to_red",
"speed": 1,
"clipEnd": 1,
"loop": 0,
"clip": {
"_$uuid": "ffc1d580-9237-4231-a78d-f39d72640d50"
},
"soloTransitions": []
}
],
"playOnWake": false,
"blendingMode": 0,
"defaultWeight": 1
}
],
"layerW": 150,
"animatorParams": []
}

View File

@@ -1,3 +0,0 @@
{
"uuid": "d1fce7b7-1bf7-4f74-9c5a-bd9051e10b95"
}

Binary file not shown.

View File

@@ -1,3 +0,0 @@
{
"uuid": "3ff6c374-5ecd-4de1-b271-a3280f87f9d9"
}

View File

@@ -1,48 +0,0 @@
{
"_$type": "Animator",
"enabled": true,
"path": "",
"cullingMode": 2,
"controllerLayers": [
{
"name": "Base Layer",
"states": [
{
"x": 108,
"y": 105,
"id": "-1",
"name": "进入",
"nexts": [],
"soloTransitions": [
{
"id": "1"
}
]
},
{
"y": 112,
"id": "-2",
"name": "任何状态",
"x": 447
},
{
"x": 285.5874536260055,
"y": 220.0965316887919,
"_isLooping": 0,
"id": "1",
"name": "score_up",
"speed": 1,
"clipEnd": 1,
"clip": {
"_$uuid": "3ff6c374-5ecd-4de1-b271-a3280f87f9d9"
},
"loop": -1
}
],
"playOnWake": true,
"blendingMode": 0,
"defaultWeight": 1
}
],
"layerW": 150
}

View File

@@ -1,3 +0,0 @@
{
"uuid": "96c849ea-9704-40bc-8bb5-c00a4f341d30"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "15fb8b20-2b34-48fb-8259-499ebf380309",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "6ad19646-ed7a-431c-a50e-65c2bcb40751",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "63e88ec0-8898-4190-9f70-a4df67200ce3",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 686 B

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "a75b43fb-bcf6-47d1-a1ef-e5261122a4e2",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 B

View File

@@ -1,5 +1,5 @@
{ {
"uuid": "2e8c9585-e650-4494-a329-807fd2d2a532", "uuid": "f65337d1-7946-41c1-909f-195efe1dfd8f",
"importer": { "importer": {
"textureType": 2 "textureType": 2
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "499ac838-d426-45a9-b14c-901abaa3e095",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "ef56c8bc-05bb-4b9c-aa50-822500db9a89",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "df3eeb43-93a4-496f-9da2-2a9bdaa70987",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "8f0587ca-ca53-4ce7-be0a-87388b357e15",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "4365c9f3-5118-42c7-aa2c-7d68bad82b39",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "7eeb7e11-21ca-41ca-b7c2-dd2afa0c3ba7",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

View File

@@ -1,6 +0,0 @@
{
"uuid": "c46eab14-87ac-4178-a786-afe811fc0848",
"importer": {
"textureType": 2
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "120856c0-7081-4fde-8dca-ae0a78d684e2",
"importer": {
"textureType": 2
}
}

View File

@@ -15,7 +15,7 @@
"_$type": "f2970e4d-7a09-4a9b-aef3-45d330c86f4f", "_$type": "f2970e4d-7a09-4a9b-aef3-45d330c86f4f",
"scriptPath": "../src/views/Home.ts", "scriptPath": "../src/views/Home.ts",
"btn_start": { "btn_start": {
"_$ref": "6ystn7m8" "_$ref": "6irhm6t7"
}, },
"btn_clean": { "btn_clean": {
"_$ref": "m2dc2r9d" "_$ref": "m2dc2r9d"
@@ -33,50 +33,60 @@
"right": 0, "right": 0,
"top": 0, "top": 0,
"bottom": 0, "bottom": 0,
"skin": "res://63e88ec0-8898-4190-9f70-a4df67200ce3", "skin": "res://a98f334e-ce04-4cd0-8fc5-bbdf9b048609",
"color": "#ffffff" "color": "#f5f7fb"
}, },
{ {
"_$id": "hxal67ur", "_$id": "6irhm6t7",
"_$type": "Button", "_$type": "Box",
"name": "btn_continue",
"x": 440,
"y": 737,
"width": 200,
"height": 100,
"visible": false,
"_mouseState": 2,
"centerX": 0,
"centerY": -173,
"skin": "res://7eeb7e11-21ca-41ca-b7c2-dd2afa0c3ba7",
"label": "继续",
"labelFont": "",
"labelSize": 60,
"labelColors": "#ffffff,#32cc6b,#ff0000",
"labelAlign": "center",
"labelVAlign": "middle"
},
{
"_$id": "6ystn7m8",
"_$type": "Button",
"name": "btn_start", "name": "btn_start",
"x": 172, "x": 144,
"y": 1182, "y": 1464,
"width": 736, "width": 792,
"height": 152, "height": 168,
"_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": 298, "centerY": 588,
"stateNum": 1, "_$child": [
"skin": "res://a75b43fb-bcf6-47d1-a1ef-e5261122a4e2", {
"sizeGrid": "24,40,24,40,0", "_$id": "ry13plzy",
"label": "新游戏", "_$type": "Sprite",
"labelFont": "", "name": "Sprite",
"labelSize": 60, "width": 792,
"labelBold": true, "height": 168,
"labelColors": "#ffffff,#ffffff,#ffffff", "_gcmds": [
"labelAlign": "center", {
"labelVAlign": "middle" "_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "la3qcz7o",
"_$type": "Label",
"name": "Label",
"width": 792,
"height": 168,
"centerX": 0,
"centerY": 0,
"text": "New Game",
"fontSize": 100,
"color": "#FFFFFF",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}, },
{ {
"_$id": "m2dc2r9d", "_$id": "m2dc2r9d",
@@ -91,7 +101,6 @@
"centerX": 0, "centerX": 0,
"skin": "res://7eeb7e11-21ca-41ca-b7c2-dd2afa0c3ba7", "skin": "res://7eeb7e11-21ca-41ca-b7c2-dd2afa0c3ba7",
"label": "清理", "label": "清理",
"labelFont": "",
"labelSize": 60, "labelSize": 60,
"labelColors": "#ffffff,#32cc6b,#ff0000", "labelColors": "#ffffff,#32cc6b,#ff0000",
"labelAlign": "center", "labelAlign": "center",

View File

@@ -74,19 +74,19 @@
"_$type": "Box", "_$type": "Box",
"name": "back", "name": "back",
"x": 26, "x": 26,
"y": 40, "y": 60,
"width": 400, "width": 400,
"height": 64, "height": 64,
"_mouseState": 2, "_mouseState": 2,
"centerX": -314, "centerX": -314,
"centerY": -888, "centerY": -868,
"_$child": [ "_$child": [
{ {
"_$id": "l1ebdt6a", "_$id": "l1ebdt6a",
"_$type": "Button", "_$type": "Button",
"name": "btn_back", "name": "btn_back",
"width": 92, "width": 69,
"height": 64, "height": 48,
"_mouseState": 2, "_mouseState": 2,
"stateNum": 1, "stateNum": 1,
"skin": "res://06a9c4a8-d664-4f3a-9c35-25b610195ced", "skin": "res://06a9c4a8-d664-4f3a-9c35-25b610195ced",
@@ -117,12 +117,12 @@
"_$type": "Box", "_$type": "Box",
"name": "Center", "name": "Center",
"x": 18, "x": 18,
"y": 310, "y": 288,
"width": 1044, "width": 1044,
"height": 1044, "height": 1044,
"_mouseState": 2, "_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": -128, "centerY": -150,
"_$child": [ "_$child": [
{ {
"_$id": "zgzyqyoc", "_$id": "zgzyqyoc",
@@ -134,9 +134,10 @@
"height": 60, "height": 60,
"centerX": 0, "centerX": 0,
"centerY": -614, "centerY": -614,
"text": "分数:999", "text": "Score:999",
"fontSize": 50, "fontSize": 50,
"color": "rgba(29, 92, 220, 1)", "color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -41063,13 +41064,13 @@
"_$type": "HBox", "_$type": "HBox",
"name": "buttons", "name": "buttons",
"x": 115, "x": 115,
"y": 1386, "y": 1400,
"width": 850, "width": 850,
"height": 200, "height": 200,
"_mouseState": 2, "_mouseState": 2,
"drawCallOptimize": true, "drawCallOptimize": true,
"centerX": 0, "centerX": 0,
"centerY": 526, "centerY": 540,
"space": 150, "space": 150,
"align": "middle", "align": "middle",
"_$child": [ "_$child": [
@@ -41086,9 +41087,10 @@
"_$id": "at2v2bn5", "_$id": "at2v2bn5",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"y": 3, "x": 16,
"width": 100, "y": 16,
"height": 95, "width": 69,
"height": 69,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
"skin": "res://8cacbf45-5b2c-4ec0-ad94-5ca671b74d72", "skin": "res://8cacbf45-5b2c-4ec0-ad94-5ca671b74d72",
@@ -41098,14 +41100,15 @@
"_$id": "5x56vbw3", "_$id": "5x56vbw3",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"y": 122, "y": 108,
"width": 100, "width": 100,
"height": 40, "height": 40,
"centerX": 0, "centerX": 0,
"centerY": 92, "centerY": 78,
"text": "撤销", "text": "Undo",
"fontSize": 40, "fontSize": 40,
"color": "rgba(55, 53, 53, 1)", "color": "rgba(55, 53, 53, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -41127,10 +41130,10 @@
"_$id": "nu0r4h4m", "_$id": "nu0r4h4m",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"x": 4, "x": 13,
"y": 4, "y": 14,
"width": 92, "width": 75,
"height": 92, "height": 72,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
"skin": "res://4870f053-9781-471b-a405-ea95b5318a98", "skin": "res://4870f053-9781-471b-a405-ea95b5318a98",
@@ -41140,14 +41143,15 @@
"_$id": "pc0bjn7t", "_$id": "pc0bjn7t",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"y": 122, "y": 108,
"width": 100, "width": 100,
"height": 40, "height": 40,
"centerX": 0, "centerX": 0,
"centerY": 92, "centerY": 78,
"text": "橡皮", "text": "Erase",
"fontSize": 40, "fontSize": 40,
"color": "rgba(55, 53, 53, 1)", "color": "rgba(55, 53, 53, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -41168,32 +41172,36 @@
"_$id": "nd653uaf", "_$id": "nd653uaf",
"_$type": "Box", "_$type": "Box",
"name": "normal", "name": "normal",
"width": 100, "x": 14,
"height": 100, "y": 13,
"width": 73,
"height": 74,
"centerX": 0,
"centerY": 0,
"_$child": [ "_$child": [
{ {
"_$id": "grt97hsn", "_$id": "bi09jj9a",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"width": 97, "width": 73,
"height": 98, "height": 74,
"centerX": -2,
"centerY": -1,
"skin": "res://18ec8458-52a2-405b-886a-f6441ed4f785", "skin": "res://18ec8458-52a2-405b-886a-f6441ed4f785",
"color": "#ffffff" "color": "#ffffff",
}, "_$child": [
{ {
"_$id": "pbzbhtaj", "_$id": "yjptrqd4",
"_$type": "Image", "_$type": "Image",
"name": "off", "name": "OFF",
"x": 58, "x": 58,
"y": -40, "y": -40,
"width": 56, "width": 56,
"height": 32, "height": 32,
"scaleX": 2, "scaleX": 2,
"scaleY": 2, "scaleY": 2,
"skin": "res://a5777c44-0002-4629-b646-c0e8098c7f80", "skin": "res://a5777c44-0002-4629-b646-c0e8098c7f80",
"color": "#ffffff" "color": "#ffffff"
}
]
} }
] ]
}, },
@@ -41201,32 +41209,36 @@
"_$id": "dflp9r4d", "_$id": "dflp9r4d",
"_$type": "Box", "_$type": "Box",
"name": "checked", "name": "checked",
"width": 100, "x": 14,
"height": 100, "y": 13,
"width": 73,
"height": 74,
"centerX": 0,
"centerY": 0,
"_$child": [ "_$child": [
{ {
"_$id": "cwaogbaq", "_$id": "cwaogbaq",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"width": 97, "width": 73,
"height": 98, "height": 74,
"centerX": -2,
"centerY": -1,
"skin": "res://3d714bdf-39fd-48aa-b29d-5c179abc1981", "skin": "res://3d714bdf-39fd-48aa-b29d-5c179abc1981",
"color": "#ffffff" "color": "#ffffff",
}, "_$child": [
{ {
"_$id": "iufey8m0", "_$id": "iufey8m0",
"_$type": "Image", "_$type": "Image",
"name": "on", "name": "on",
"x": 58, "x": 58,
"y": -40, "y": -40,
"width": 48, "width": 48,
"height": 32, "height": 32,
"scaleX": 2, "scaleX": 2,
"scaleY": 2, "scaleY": 2,
"skin": "res://e2b45239-87db-4cee-9dd7-a2d1762abc24", "skin": "res://e2b45239-87db-4cee-9dd7-a2d1762abc24",
"color": "#ffffff" "color": "#ffffff"
}
]
} }
] ]
}, },
@@ -41234,14 +41246,15 @@
"_$id": "cplq65uj", "_$id": "cplq65uj",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"y": 122, "y": 108,
"width": 100, "width": 100,
"height": 40, "height": 40,
"centerX": 0, "centerX": 0,
"centerY": 92, "centerY": 78,
"text": "铅笔", "text": "Notes",
"fontSize": 40, "fontSize": 40,
"color": "rgba(55, 53, 53, 1)", "color": "rgba(55, 53, 53, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -41262,10 +41275,10 @@
"_$id": "qgd1z6lm", "_$id": "qgd1z6lm",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"x": 6, "x": 17,
"y": -3, "y": 10,
"width": 88, "width": 67,
"height": 107, "height": 80,
"mouseThrough": true, "mouseThrough": true,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
@@ -41273,29 +41286,35 @@
"color": "#ffffff", "color": "#ffffff",
"_$child": [ "_$child": [
{ {
"_$id": "oxahjz0j", "_$id": "9t9m3cg3",
"_$type": "Image", "_$type": "Sprite",
"name": "normal", "name": "normal",
"x": 52, "x": 52,
"y": -34, "y": -34,
"width": 64, "width": 64,
"height": 64, "height": 64,
"visible": false, "_gcmds": [
"mouseThrough": true, {
"drawCallOptimize": true, "_$type": "DrawCircleCmd",
"skin": "res://7c87f6c5-6334-4f12-b61a-22c3af858d8f", "x": 0.5,
"color": "#ffffff", "y": 0.5,
"radius": 0.5,
"percent": true,
"lineWidth": 4,
"lineColor": "rgba(255, 255, 255, 1)",
"fillColor": "rgba(29, 108, 220, 1)"
}
],
"_$child": [ "_$child": [
{ {
"_$id": "la5q6qsc", "_$id": "la5q6qsc",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"y": 2,
"width": 64, "width": 64,
"height": 64, "height": 64,
"centerX": 0, "centerX": 0,
"centerY": 2, "centerY": 0,
"text": "1", "text": "2",
"fontSize": 40, "fontSize": 40,
"color": "rgba(255, 255, 255, 1)", "color": "rgba(255, 255, 255, 1)",
"bold": true, "bold": true,
@@ -41307,42 +41326,66 @@
] ]
}, },
{ {
"_$id": "g2azy5am", "_$id": "jgwq47et",
"_$type": "Image", "_$type": "Sprite",
"name": "ad", "name": "ad",
"x": 47, "x": 52,
"y": -34, "y": -34,
"width": 128, "width": 128,
"height": 64, "height": 64,
"visible": false, "_gcmds": [
"mouseThrough": true, {
"drawCallOptimize": true, "_$type": "DrawRoundRectCmd",
"skin": "res://15fb8b20-2b34-48fb-8259-499ebf380309", "x": 0,
"color": "#ffffff", "y": 0,
"width": 1,
"height": 1,
"lt": 30,
"rt": 30,
"lb": 30,
"rb": 30,
"percent": true,
"lineWidth": 2,
"lineColor": "rgba(255, 255, 255, 1)",
"fillColor": "rgba(29, 92, 220, 1)"
}
],
"_$child": [ "_$child": [
{ {
"_$id": "x9m9qhp2", "_$id": "6mgjiuhv",
"_$type": "Image", "_$type": "Sprite",
"name": "Image", "name": "Sprite",
"x": 24, "x": 24,
"y": 14, "y": 15,
"width": 28, "width": 32,
"height": 32, "height": 32,
"mouseThrough": true, "_gcmds": [
"skin": "res://c46eab14-87ac-4178-a786-afe811fc0848", {
"useSourceSize": true, "_$type": "DrawPolyCmd",
"color": "#ffffff" "x": 0,
"y": 0,
"points": [
0,
0,
32,
16,
0,
32
],
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
]
}, },
{ {
"_$id": "oq70ww6z", "_$id": "bmgjjptw",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"x": 53, "x": 54,
"y": 2,
"width": 64, "width": 64,
"height": 64, "height": 64,
"centerX": 21, "centerX": 22,
"centerY": 2, "centerY": 0,
"text": "+2", "text": "+2",
"fontSize": 40, "fontSize": 40,
"color": "rgba(255, 255, 255, 1)", "color": "rgba(255, 255, 255, 1)",
@@ -41360,14 +41403,15 @@
"_$id": "h9be7h1y", "_$id": "h9be7h1y",
"_$type": "Label", "_$type": "Label",
"name": "label", "name": "label",
"y": 122, "y": 108,
"width": 100, "width": 100,
"height": 40, "height": 40,
"centerX": 0, "centerX": 0,
"centerY": 92, "centerY": 78,
"text": "提示", "text": "Hint",
"fontSize": 40, "fontSize": 40,
"color": "rgba(55, 53, 53, 1)", "color": "rgba(55, 53, 53, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -41381,12 +41425,12 @@
"_$type": "HBox", "_$type": "HBox",
"name": "candys", "name": "candys",
"x": 19, "x": 19,
"y": 1607, "y": 1695,
"width": 1042, "width": 1042,
"height": 178, "height": 178,
"_mouseState": 2, "_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": 736, "centerY": 824,
"space": 11, "space": 11,
"align": "middle", "align": "middle",
"_$child": [ "_$child": [
@@ -41756,13 +41800,13 @@
"_$type": "HBox", "_$type": "HBox",
"name": "candy_labels", "name": "candy_labels",
"x": 19, "x": 19,
"y": 1607, "y": 1695,
"width": 1042, "width": 1042,
"height": 178, "height": 178,
"_mouseState": 2, "_mouseState": 2,
"mouseThrough": true, "mouseThrough": true,
"centerX": 0, "centerX": 0,
"centerY": 736, "centerY": 824,
"space": 11, "space": 11,
"align": "middle", "align": "middle",
"_$child": [ "_$child": [

View File

@@ -8,8 +8,8 @@ const { regClass, property } = Laya
export class Home extends Laya.Script { export class Home extends Laya.Script {
declare owner : Laya.Box; declare owner : Laya.Box;
@property(Laya.Button) @property(Laya.Box)
public btn_start: Laya.Button; public btn_start: Laya.Box;
@property(Laya.Button) @property(Laya.Button)
public btn_clean: Laya.Button; public btn_clean: Laya.Button;

View File

@@ -44,6 +44,8 @@ export class Stage extends Laya.Script {
private btn_note_checked: Laya.Box private btn_note_checked: Laya.Box
@property(Laya.Box) @property(Laya.Box)
public btn_hint: Laya.Box; public btn_hint: Laya.Box;
private btn_hint_normal: Laya.Box
private btn_hint_ad: Laya.Box
private selectedBlock: Block; private selectedBlock: Block;
private data: DOStage; private data: DOStage;
@@ -159,11 +161,11 @@ export class Stage extends Laya.Script {
else { else {
var sames = this.findSameNumberBlocks(block)//相同数字的格子 var sames = this.findSameNumberBlocks(block)//相同数字的格子
for (var i=0; i<sames.length; i++) { for (var i=0; i<sames.length; i++) {
sames[i].setBlockColor(config.BLOCK_COLOR.BLUE, 0.4) sames[i].setBlockColor(config.BLOCK_COLOR.BLUE, 0.6)
} }
var sames = this.findSameNoteBlocks(block)//相同数字的铅笔格子 var sames = this.findSameNoteBlocks(block)//相同数字的铅笔格子
for (var i=0; i<sames.length; i++) { for (var i=0; i<sames.length; i++) {
sames[i].setTipsBgColor(true, block.getData().get_show(), config.BLOCK_COLOR.BLUE, 0.4) sames[i].setTipsBgColor(true, block.getData().get_show(), config.BLOCK_COLOR.BLUE, 0.6)
} }
//正确 //正确
if (block.getData().get_checked()) { if (block.getData().get_checked()) {
@@ -175,7 +177,7 @@ export class Stage extends Laya.Script {
if (relateds[i].getData().get_show() == block.getData().get_show()) {//播放变红动效 if (relateds[i].getData().get_show() == block.getData().get_show()) {//播放变红动效
if (relateds[i].getData().get_index() != block.getData().get_index()) { if (relateds[i].getData().get_index() != block.getData().get_index()) {
relateds[i].setBlockColor(config.BLOCK_COLOR.WHITE) relateds[i].setBlockColor(config.BLOCK_COLOR.WHITE)
relateds[i].setBlockColor(config.BLOCK_COLOR.RED, 0.4, true, config.BLOCK_COLOR.GREY, 1) relateds[i].setBlockColor(config.BLOCK_COLOR.RED, 0.6, true, config.BLOCK_COLOR.GREY, 1)
} }
} }
} }
@@ -184,7 +186,7 @@ export class Stage extends Laya.Script {
for (var i=0; i<relateds.length; i++) {//相关且数字相同 for (var i=0; i<relateds.length; i++) {//相关且数字相同
if (relateds[i].getData().get_show() == block.getData().get_show()) {//直接变红 if (relateds[i].getData().get_show() == block.getData().get_show()) {//直接变红
if (relateds[i].getData().get_index() != block.getData().get_index()) { if (relateds[i].getData().get_index() != block.getData().get_index()) {
relateds[i].setBlockColor(config.BLOCK_COLOR.RED, 0.4) relateds[i].setBlockColor(config.BLOCK_COLOR.RED, 0.6)
} }
} }
} }