调整几个弹框

This commit is contained in:
2025-05-29 10:25:13 +08:00
parent bf506e26ef
commit 6f3c1f9d6d
12 changed files with 771 additions and 700 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 880 B

View File

@@ -54,10 +54,10 @@
"_$id": "r463so4u", "_$id": "r463so4u",
"_$type": "Box", "_$type": "Box",
"name": "center", "name": "center",
"x": 540, "x": 480,
"y": 330, "y": 280,
"width": 840, "width": 960,
"height": 420, "height": 520,
"_mouseState": 2, "_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
@@ -66,8 +66,8 @@
"_$id": "wfz9ah0j", "_$id": "wfz9ah0j",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"width": 840, "width": 960,
"height": 420, "height": 520,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$type": "DrawRoundRectCmd",
@@ -85,132 +85,32 @@
} }
] ]
}, },
{
"_$id": "kdbuqg4b",
"_$type": "VBox",
"name": "buttons",
"x": 114,
"y": 106,
"width": 612,
"height": 350,
"bottom": -36,
"centerX": 0,
"space": 27,
"align": "center"
},
{
"_$id": "qawnoo6z",
"_$type": "Label",
"name": "label_title",
"x": 120,
"y": 24,
"width": 600,
"height": 60,
"top": 24,
"centerX": 0,
"text": "Start New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 48,
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "jjabofyx",
"_$type": "Label",
"name": "label_content",
"x": 120,
"y": 112,
"width": 600,
"height": 120,
"top": 112,
"centerX": 0,
"text": "Current game progress will be lost",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "top",
"padding": "0,0,0,0"
},
{ {
"_$id": "k3fjill3", "_$id": "k3fjill3",
"_$type": "HBox", "_$type": "HBox",
"name": "HBox", "name": "HBox",
"x": 80, "x": 54,
"y": 214, "y": 271,
"width": 680, "width": 852,
"height": 96, "height": 96,
"centerX": 0, "centerX": 0,
"space": 80, "space": 28,
"align": "middle", "align": "middle",
"_$child": [ "_$child": [
{
"_$id": "ob8d2aj7",
"_$type": "Box",
"name": "btn_ok",
"width": 300,
"height": 96,
"_$child": [
{
"_$id": "bqp1fe7k",
"_$type": "Sprite",
"name": "Sprite",
"width": 300,
"height": 96,
"mouseThrough": true,
"_gcmds": [
{
"_$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": "q2n5i4r9",
"_$type": "Label",
"name": "Label",
"width": 300,
"height": 96,
"centerX": 0,
"centerY": 0,
"text": "OK",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{ {
"_$id": "ikd12rw5", "_$id": "ikd12rw5",
"_$type": "Box", "_$type": "Box",
"name": "btn_cancel", "name": "btn_cancel",
"x": 380, "y": -12,
"width": 300, "width": 412,
"height": 96, "height": 120,
"_$child": [ "_$child": [
{ {
"_$id": "he6hpns9", "_$id": "he6hpns9",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"width": 300, "width": 412,
"height": 96, "height": 120,
"alpha": 0.1, "alpha": 0.1,
"mouseThrough": true, "mouseThrough": true,
"_gcmds": [ "_gcmds": [
@@ -220,10 +120,10 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 20, "lt": 27,
"rt": 20, "rt": 27,
"lb": 20, "lb": 27,
"rb": 20, "rb": 27,
"percent": true, "percent": true,
"lineWidth": 1, "lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)" "fillColor": "rgba(29, 92, 220, 1)"
@@ -234,13 +134,15 @@
"_$id": "qa4fm6cu", "_$id": "qa4fm6cu",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 56,
"y": 12,
"width": 300, "width": 300,
"height": 96, "height": 96,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
"text": "Cancel", "text": "Cancel",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 45,
"color": "rgba(29, 92, 220, 1)", "color": "rgba(29, 92, 220, 1)",
"bold": true, "bold": true,
"align": "center", "align": "center",
@@ -248,6 +150,60 @@
"padding": "0,0,0,0" "padding": "0,0,0,0"
} }
] ]
},
{
"_$id": "ob8d2aj7",
"_$type": "Box",
"name": "btn_ok",
"x": 440,
"y": -12,
"width": 412,
"height": 120,
"_$child": [
{
"_$id": "bqp1fe7k",
"_$type": "Sprite",
"name": "Sprite",
"width": 412,
"height": 120,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "q2n5i4r9",
"_$type": "Label",
"name": "Label",
"x": 56,
"y": 12,
"width": 300,
"height": 96,
"centerX": 0,
"centerY": 0,
"text": "Start",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
} }
] ]
}, },
@@ -255,17 +211,18 @@
"_$id": "g1zoj9qx", "_$id": "g1zoj9qx",
"_$type": "Box", "_$type": "Box",
"name": "toggle", "name": "toggle",
"x": 226, "x": 320,
"y": 339, "y": 424,
"width": 64, "width": 42,
"height": 64, "height": 42,
"bottom": 54,
"_$child": [ "_$child": [
{ {
"_$id": "74puwx15", "_$id": "74puwx15",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"width": 64, "width": 42,
"height": 64, "height": 42,
"mouseThrough": true, "mouseThrough": true,
"_gcmds": [ "_gcmds": [
{ {
@@ -274,51 +231,84 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 10, "lt": 6,
"rt": 10, "rt": 6,
"lb": 10, "lb": 6,
"rb": 10, "rb": 6,
"percent": true, "percent": true,
"lineWidth": 2, "lineWidth": 2,
"lineColor": "#000000", "fillColor": "rgba(240, 242, 247, 1)"
"fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "cofalite",
"_$type": "Image",
"name": "Image",
"x": 14,
"y": 18,
"width": 36,
"height": 28,
"centerX": 0,
"centerY": 0,
"skin": "res://6f23a1ca-70f5-467a-afc3-5b178a851423",
"useSourceSize": true,
"color": "#ffffff"
} }
] ]
}, },
{
"_$id": "cofalite",
"_$type": "Image",
"name": "Image",
"width": 43,
"height": 42,
"centerX": 0,
"centerY": 0,
"skin": "res://6f23a1ca-70f5-467a-afc3-5b178a851423",
"useSourceSize": true,
"color": "#ffffff"
},
{ {
"_$id": "jf00gv80", "_$id": "jf00gv80",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 78, "x": 54,
"y": 2, "y": 2,
"width": 400, "width": 400,
"height": 64, "height": 42,
"left": 78, "left": 54,
"centerY": 2, "centerY": 2,
"text": "Don't ask me agin", "text": "Don't ask me agin",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 30,
"color": "rgba(123, 129, 140, 1)", "color": "rgba(84, 89, 98, 1)",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
} }
] ]
},
{
"_$id": "qawnoo6z",
"_$type": "Label",
"name": "label_title",
"x": 180,
"y": 54,
"width": 600,
"height": 66,
"top": 54,
"centerX": 0,
"text": "Start New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 54,
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0",
"strokeColor": "rgba(45, 49, 56, 1)"
},
{
"_$id": "jjabofyx",
"_$type": "Label",
"name": "label_content",
"x": 130,
"y": 150,
"width": 700,
"height": 48,
"top": 150,
"centerX": 0,
"text": "Current game progress will be lost",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 40,
"color": "rgba(84, 89, 98, 1)",
"align": "center",
"valign": "top",
"padding": "0,0,0,0"
} }
] ]
} }

View File

@@ -238,7 +238,7 @@
"_$id": "nfqfex9l", "_$id": "nfqfex9l",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Difficulty ", "text": "Difficulty ",
@@ -252,10 +252,10 @@
"_$id": "t56jxo0a", "_$id": "t56jxo0a",
"_$type": "Label", "_$type": "Label",
"name": "label_difficulty", "name": "label_difficulty",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -278,7 +278,7 @@
"_$id": "utszg27d", "_$id": "utszg27d",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Time", "text": "Time",
@@ -292,10 +292,10 @@
"_$id": "v0a6pgjh", "_$id": "v0a6pgjh",
"_$type": "Label", "_$type": "Label",
"name": "label_time", "name": "label_time",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -318,7 +318,7 @@
"_$id": "nwe3p9mt", "_$id": "nwe3p9mt",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Score", "text": "Score",
@@ -332,10 +332,10 @@
"_$id": "sjgiel5s", "_$id": "sjgiel5s",
"_$type": "Label", "_$type": "Label",
"name": "label_score", "name": "label_score",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -421,6 +421,7 @@
"y": 558, "y": 558,
"width": 540, "width": 540,
"height": 156, "height": 156,
"visible": false,
"top": 558, "top": 558,
"centerX": 0, "centerX": 0,
"_$child": [ "_$child": [

View File

@@ -238,7 +238,7 @@
"_$id": "phpj9rno", "_$id": "phpj9rno",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Difficulty ", "text": "Difficulty ",
@@ -252,10 +252,10 @@
"_$id": "291hwgvn", "_$id": "291hwgvn",
"_$type": "Label", "_$type": "Label",
"name": "label_difficulty", "name": "label_difficulty",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -278,7 +278,7 @@
"_$id": "xmjk7stg", "_$id": "xmjk7stg",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Time", "text": "Time",
@@ -292,10 +292,10 @@
"_$id": "656grx7b", "_$id": "656grx7b",
"_$type": "Label", "_$type": "Label",
"name": "label_time", "name": "label_time",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -318,7 +318,7 @@
"_$id": "zy5w77m2", "_$id": "zy5w77m2",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 54, "x": 100,
"width": 400, "width": 400,
"height": 80, "height": 80,
"text": "Score", "text": "Score",
@@ -332,10 +332,10 @@
"_$id": "6upkkpwf", "_$id": "6upkkpwf",
"_$type": "Label", "_$type": "Label",
"name": "label_score", "name": "label_score",
"x": 422, "x": 376,
"width": 400, "width": 400,
"height": 80, "height": 80,
"right": 54, "right": 100,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 36, "fontSize": 36,
@@ -420,6 +420,7 @@
"y": 558, "y": 558,
"width": 540, "width": 540,
"height": 156, "height": 156,
"visible": false,
"top": 558, "top": 558,
"centerX": 0, "centerX": 0,
"_$child": [ "_$child": [

View File

@@ -16,13 +16,13 @@
"_$type": "72a5ccd3-8177-451c-b2ce-cf1b42f7e6d4", "_$type": "72a5ccd3-8177-451c-b2ce-cf1b42f7e6d4",
"scriptPath": "../src/views/GameOver.ts", "scriptPath": "../src/views/GameOver.ts",
"btn_second": { "btn_second": {
"_$ref": "0w6x8zzw" "_$ref": "xxbk8zbl"
}, },
"btn_restart": { "btn_restart": {
"_$ref": "y7aniaui" "_$ref": "g47r0en7"
}, },
"btn_newOrClose": { "btn_newOrClose": {
"_$ref": "eepsaznr" "_$ref": "umnahawk"
}, },
"label_newOrClose": { "label_newOrClose": {
"_$ref": "2r6iotpo" "_$ref": "2r6iotpo"
@@ -92,36 +92,19 @@
"align": "center", "align": "center",
"_$child": [ "_$child": [
{ {
"_$id": "0w6x8zzw", "_$id": "xxbk8zbl",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_second", "name": "btn_second",
"width": 744, "width": 744,
"height": 156, "height": 156,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
],
"_$child": [ "_$child": [
{ {
"_$id": "23po992p", "_$id": "0w6x8zzw",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"x": 64, "width": 744,
"y": 44, "height": 156,
"width": 60, "mouseThrough": true,
"height": 54,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$type": "DrawRoundRectCmd",
@@ -129,159 +112,197 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 10, "lt": 36,
"rt": 10, "rt": 36,
"lb": 10, "lb": 36,
"rb": 10, "rb": 36,
"percent": true, "percent": true,
"lineWidth": 1, "lineWidth": 1,
"fillColor": "#FFFFFF" "fillColor": "rgba(29, 92, 220, 1)"
} }
], ],
"_$child": [ "_$child": [
{ {
"_$id": "7i8eqgi1", "_$id": "23po992p",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"x": 16, "x": 64,
"y": 13, "y": 44,
"width": 28, "width": 60,
"height": 28, "height": 54,
"mouseThrough": true,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawPolyCmd", "_$type": "DrawRoundRectCmd",
"x": 0, "x": 0,
"y": 0, "y": 0,
"points": [ "width": 1,
0, "height": 1,
0, "lt": 10,
28, "rt": 10,
14, "lb": 10,
0, "rb": 10,
28 "percent": true,
],
"lineWidth": 1, "lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)" "fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "7i8eqgi1",
"_$type": "Sprite",
"name": "Sprite",
"x": 16,
"y": 13,
"width": 28,
"height": 28,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawPolyCmd",
"x": 0,
"y": 0,
"points": [
0,
0,
28,
14,
0,
28
],
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
} }
] ]
} }
] ]
},
{
"_$id": "4fv9wmfi",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "Second Chance",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
}, },
{ {
"_$id": "y7aniaui", "_$id": "g47r0en7",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_restart", "name": "btn_restart",
"y": 196, "y": 196,
"width": 744, "width": 744,
"height": 156, "height": 156,
"alpha": 0.1, "_$child": [
"_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "y7aniaui",
"x": 0, "_$type": "Sprite",
"y": 0, "name": "Sprite",
"width": 1, "width": 744,
"height": 1, "height": 156,
"lt": 36, "alpha": 0.1,
"rt": 36, "mouseThrough": true,
"lb": 36, "_gcmds": [
"rb": 36, {
"percent": true, "_$type": "DrawRoundRectCmd",
"lineWidth": 1, "x": 0,
"fillColor": "rgba(29, 92, 220, 1)" "y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "o6codx3p",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
}, },
{ {
"_$id": "eepsaznr", "_$id": "umnahawk",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_newOrClose", "name": "btn_newOrClose",
"y": 392, "y": 392,
"width": 744, "width": 744,
"height": 156, "height": 156,
"alpha": 0.1, "_$child": [
"_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "eepsaznr",
"x": 0, "_$type": "Sprite",
"y": 0, "name": "Sprite",
"width": 1, "width": 744,
"height": 1, "height": 156,
"lt": 36, "alpha": 0.1,
"rt": 36, "mouseThrough": true,
"lb": 36, "_gcmds": [
"rb": 36, {
"percent": true, "_$type": "DrawRoundRectCmd",
"lineWidth": 1, "x": 0,
"fillColor": "rgba(29, 92, 220, 1)" "y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "2r6iotpo",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
} }
] ]
},
{
"_$id": "17a1hg41",
"_$type": "VBox",
"name": "labels",
"x": 72,
"y": 456,
"width": 744,
"height": 600,
"centerX": 0,
"centerY": 216,
"space": 40,
"align": "center",
"_$child": [
{
"_$id": "4fv9wmfi",
"_$type": "Label",
"name": "Label(1)",
"width": 744,
"height": 156,
"text": "Second Chance",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "o6codx3p",
"_$type": "Label",
"name": "Label(2)",
"y": 196,
"width": 744,
"height": 156,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "2r6iotpo",
"_$type": "Label",
"name": "Label(3)",
"y": 392,
"width": 744,
"height": 156,
"text": "New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
} }
] ]
}, },

View File

@@ -16,13 +16,13 @@
"_$type": "72a5ccd3-8177-451c-b2ce-cf1b42f7e6d4", "_$type": "72a5ccd3-8177-451c-b2ce-cf1b42f7e6d4",
"scriptPath": "../src/views/GameOver.ts", "scriptPath": "../src/views/GameOver.ts",
"btn_second": { "btn_second": {
"_$ref": "szb9ucan" "_$ref": "0mzw96e9"
}, },
"btn_restart": { "btn_restart": {
"_$ref": "vhabgf62" "_$ref": "lceajjw5"
}, },
"btn_newOrClose": { "btn_newOrClose": {
"_$ref": "90q3msn4" "_$ref": "s45ffbjo"
}, },
"label_newOrClose": { "label_newOrClose": {
"_$ref": "b03vjzma" "_$ref": "b03vjzma"
@@ -48,10 +48,10 @@
"_$id": "ak02a9xq", "_$id": "ak02a9xq",
"_$type": "Box", "_$type": "Box",
"name": "center", "name": "center",
"x": 600, "x": 480,
"y": 135, "y": 225,
"width": 720, "width": 960,
"height": 810, "height": 630,
"_mouseState": 2, "_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
@@ -60,8 +60,8 @@
"_$id": "kaqpo7v4", "_$id": "kaqpo7v4",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"width": 720, "width": 960,
"height": 810, "height": 630,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$type": "DrawRoundRectCmd",
@@ -83,46 +83,29 @@
"_$id": "gcpm74vt", "_$id": "gcpm74vt",
"_$type": "VBox", "_$type": "VBox",
"name": "buttons", "name": "buttons",
"y": 351, "x": 54,
"width": 720, "y": 304,
"height": 495, "width": 852,
"bottom": -36, "height": 350,
"bottom": -24,
"centerX": 0, "centerX": 0,
"space": 27, "space": 27,
"align": "center", "align": "center",
"_$child": [ "_$child": [
{ {
"_$id": "szb9ucan", "_$id": "0mzw96e9",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_second", "name": "btn_second",
"x": 54, "width": 852,
"width": 612,
"height": 120, "height": 120,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
],
"_$child": [ "_$child": [
{ {
"_$id": "sl0p26bq", "_$id": "szb9ucan",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"x": 67, "width": 852,
"y": 37, "height": 120,
"width": 48, "mouseThrough": true,
"height": 40,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$type": "DrawRoundRectCmd",
@@ -130,161 +113,209 @@
"y": 0, "y": 0,
"width": 1, "width": 1,
"height": 1, "height": 1,
"lt": 10, "lt": 27,
"rt": 10, "rt": 27,
"lb": 10, "lb": 27,
"rb": 10, "rb": 27,
"percent": true, "percent": true,
"lineWidth": 1, "lineWidth": 1,
"fillColor": "#FFFFFF" "fillColor": "rgba(29, 92, 220, 1)"
} }
], ],
"_$child": [ "_$child": [
{ {
"_$id": "shuwbc76", "_$id": "sl0p26bq",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"x": 16, "x": 188,
"y": 10, "y": 37,
"width": 18, "width": 48,
"height": 20, "height": 40,
"mouseThrough": true,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawPolyCmd", "_$type": "DrawRoundRectCmd",
"x": 0, "x": 0,
"y": 0, "y": 0,
"points": [ "width": 1,
0, "height": 1,
0, "lt": 10,
18, "rt": 10,
10, "lb": 10,
0, "rb": 10,
20 "percent": true,
],
"lineWidth": 1, "lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)" "fillColor": "#FFFFFF"
}
],
"_$child": [
{
"_$id": "shuwbc76",
"_$type": "Sprite",
"name": "Sprite",
"x": 16,
"y": 10,
"width": 18,
"height": 20,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawPolyCmd",
"x": 0,
"y": 0,
"points": [
0,
0,
18,
10,
0,
20
],
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
} }
] ]
} }
] ]
} },
]
},
{
"_$id": "vhabgf62",
"_$type": "Sprite",
"name": "btn_restart",
"x": 54,
"y": 147,
"width": 612,
"height": 120,
"alpha": 0.1,
"_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "xemd8gdj",
"x": 0, "_$type": "Label",
"y": 0, "name": "Label",
"width": 1, "x": 120,
"height": 1, "width": 612,
"lt": 20, "height": 120,
"rt": 20, "centerX": 0,
"lb": 20, "centerY": 0,
"rb": 20, "text": "Second Chance",
"percent": true, "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"lineWidth": 1, "fontSize": 45,
"fillColor": "rgba(29, 92, 220, 1)" "color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
}, },
{ {
"_$id": "90q3msn4", "_$id": "2g3rpaw7",
"_$type": "Sprite", "_$type": "HBox",
"name": "btn_newOrClose", "name": "HBox",
"x": 54,
"y": 294,
"width": 612,
"height": 120,
"alpha": 0.1,
"_gcmds": [
{
"_$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": "x4n5s73l",
"_$type": "VBox",
"name": "labels",
"y": 351,
"width": 720,
"height": 495,
"bottom": -36,
"centerX": 0,
"space": 27,
"align": "center",
"_$child": [
{
"_$id": "xemd8gdj",
"_$type": "Label",
"name": "Label(1)",
"x": 54,
"width": 612,
"height": 120,
"text": "Second Chance",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "km7828dd",
"_$type": "Label",
"name": "Label(2)",
"x": 54,
"y": 147, "y": 147,
"width": 612, "width": 852,
"height": 120, "height": 120,
"text": "Restart", "space": 28,
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "align": "middle",
"fontSize": 45, "_$child": [
"color": "rgba(29, 92, 220, 1)", {
"bold": true, "_$id": "lceajjw5",
"align": "center", "_$type": "Box",
"valign": "middle", "name": "btn_restart",
"padding": "0,0,0,0" "width": 412,
}, "height": 120,
{ "_$child": [
"_$id": "b03vjzma", {
"_$type": "Label", "_$id": "vhabgf62",
"name": "Label(3)", "_$type": "Sprite",
"x": 54, "name": "Sprite",
"y": 294, "width": 412,
"width": 612, "height": 120,
"height": 120, "alpha": 0.1,
"text": "New Game", "mouseThrough": true,
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "_gcmds": [
"fontSize": 45, {
"color": "rgba(29, 92, 220, 1)", "_$type": "DrawRoundRectCmd",
"bold": true, "x": 0,
"align": "center", "y": 0,
"valign": "middle", "width": 1,
"padding": "0,0,0,0" "height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "km7828dd",
"_$type": "Label",
"name": "Label",
"x": -100,
"width": 612,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "s45ffbjo",
"_$type": "Box",
"name": "btn_newOrClose",
"x": 440,
"width": 412,
"height": 120,
"_$child": [
{
"_$id": "qkqudbcq",
"_$type": "Sprite",
"name": "Sprite",
"width": 412,
"height": 120,
"alpha": 0.1,
"mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "b03vjzma",
"_$type": "Label",
"name": "Label",
"x": -100,
"width": 612,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "New Game",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
} }
] ]
}, },
@@ -292,11 +323,11 @@
"_$id": "jqc2ijwf", "_$id": "jqc2ijwf",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 60, "x": 180,
"y": 90, "y": 54,
"width": 600, "width": 600,
"height": 66, "height": 66,
"top": 90, "top": 54,
"centerX": 0, "centerX": 0,
"text": "Game Over", "text": "Game Over",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
@@ -311,11 +342,11 @@
"_$id": "oioxcne0", "_$id": "oioxcne0",
"_$type": "Label", "_$type": "Label",
"name": "Label(1)", "name": "Label(1)",
"x": 14, "x": 54,
"y": 180, "y": 150,
"width": 692, "width": 852,
"height": 96, "height": 96,
"top": 180, "top": 150,
"centerX": 0, "centerX": 0,
"text": "You lost the game because you made 3 mistakes", "text": "You lost the game because you made 3 mistakes",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",

View File

@@ -3,8 +3,8 @@
"_$id": "2c04twx2", "_$id": "2c04twx2",
"_$type": "Box", "_$type": "Box",
"name": "GamePause", "name": "GamePause",
"width": 1080, "width": 1920,
"height": 1920, "height": 1080,
"_mouseState": 2, "_mouseState": 2,
"drawCallOptimize": true, "drawCallOptimize": true,
"left": 0, "left": 0,
@@ -22,10 +22,10 @@
"_$ref": "ztc8yofh" "_$ref": "ztc8yofh"
}, },
"btn_continue": { "btn_continue": {
"_$ref": "ugz9ejd0" "_$ref": "eg30duhu"
}, },
"btn_restart": { "btn_restart": {
"_$ref": "lkzndo0i" "_$ref": "hzogezgn"
} }
} }
], ],
@@ -34,8 +34,8 @@
"_$id": "vqp0nqaw", "_$id": "vqp0nqaw",
"_$type": "Image", "_$type": "Image",
"name": "Image", "name": "Image",
"width": 1080, "width": 1920,
"height": 1920, "height": 1080,
"alpha": 0.6, "alpha": 0.6,
"left": 0, "left": 0,
"right": 0, "right": 0,
@@ -48,8 +48,8 @@
"_$id": "cy0qcxu0", "_$id": "cy0qcxu0",
"_$type": "Box", "_$type": "Box",
"name": "center", "name": "center",
"x": 96, "x": 516,
"y": 507, "y": 87,
"width": 888, "width": 888,
"height": 906, "height": 906,
"_mouseState": 2, "_mouseState": 2,
@@ -93,101 +93,109 @@
"align": "center", "align": "center",
"_$child": [ "_$child": [
{ {
"_$id": "ugz9ejd0", "_$id": "eg30duhu",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_continue", "name": "btn_continue",
"width": 744, "width": 744,
"height": 156, "height": 156,
"_gcmds": [ "_$child": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "ugz9ejd0",
"x": 0, "_$type": "Sprite",
"y": 0, "name": "Sprite",
"width": 1, "width": 744,
"height": 1, "height": 156,
"lt": 36, "mouseThrough": true,
"rt": 36, "_gcmds": [
"lb": 36, {
"rb": 36, "_$type": "DrawRoundRectCmd",
"percent": true, "x": 0,
"lineWidth": 1, "y": 0,
"fillColor": "rgba(29, 92, 220, 1)" "width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "8v40s793",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "Continue",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
}, },
{ {
"_$id": "lkzndo0i", "_$id": "hzogezgn",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_restart", "name": "btn_restart",
"y": 196, "y": 196,
"width": 744, "width": 744,
"height": 156, "height": 156,
"alpha": 0.1, "_$child": [
"_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "lkzndo0i",
"x": 0, "_$type": "Sprite",
"y": 0, "name": "Sprite",
"width": 1, "width": 744,
"height": 1, "height": 156,
"lt": 36, "alpha": 0.1,
"rt": 36, "mouseThrough": true,
"lb": 36, "_gcmds": [
"rb": 36, {
"percent": true, "_$type": "DrawRoundRectCmd",
"lineWidth": 1, "x": 0,
"fillColor": "rgba(29, 92, 220, 1)" "y": 0,
"width": 1,
"height": 1,
"lt": 36,
"rt": 36,
"lb": 36,
"rb": 36,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "urss0raj",
"_$type": "Label",
"name": "Label",
"width": 744,
"height": 156,
"centerX": 0,
"centerY": 0,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
} }
] ]
}, },
{
"_$id": "e5ib0aqq",
"_$type": "VBox",
"name": "labels",
"x": 72,
"y": 478,
"width": 744,
"height": 600,
"centerX": 0,
"centerY": 325,
"space": 40,
"align": "center",
"_$child": [
{
"_$id": "8v40s793",
"_$type": "Label",
"name": "Label(1)",
"width": 744,
"height": 156,
"text": "Continue",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "urss0raj",
"_$type": "Label",
"name": "Label(2)",
"y": 196,
"width": 744,
"height": 156,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{ {
"_$id": "hk8la5r2", "_$id": "hk8la5r2",
"_$type": "Label", "_$type": "Label",

View File

@@ -22,10 +22,10 @@
"_$ref": "x0g211ix" "_$ref": "x0g211ix"
}, },
"btn_continue": { "btn_continue": {
"_$ref": "h0pbxs4g" "_$ref": "xa5cbi60"
}, },
"btn_restart": { "btn_restart": {
"_$ref": "i67pxiat" "_$ref": "1bdygkhu"
} }
} }
], ],
@@ -48,10 +48,10 @@
"_$id": "2oq6bad5", "_$id": "2oq6bad5",
"_$type": "Box", "_$type": "Box",
"name": "center", "name": "center",
"x": 600, "x": 480,
"y": 200, "y": 279,
"width": 720, "width": 960,
"height": 680, "height": 522,
"_mouseState": 2, "_mouseState": 2,
"centerX": 0, "centerX": 0,
"centerY": 0, "centerY": 0,
@@ -60,8 +60,8 @@
"_$id": "1lql105a", "_$id": "1lql105a",
"_$type": "Sprite", "_$type": "Sprite",
"name": "Sprite", "name": "Sprite",
"width": 720, "width": 960,
"height": 680, "height": 522,
"_gcmds": [ "_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$type": "DrawRoundRectCmd",
@@ -80,113 +80,121 @@
] ]
}, },
{ {
"_$id": "o4e4pyiy", "_$id": "xu85tc1o",
"_$type": "VBox", "_$type": "HBox",
"name": "buttons", "name": "buttons",
"x": 54, "x": 54,
"y": 366, "y": 302,
"width": 612, "width": 852,
"height": 350, "height": 210,
"bottom": -36, "bottom": 10,
"centerX": 0, "centerX": 0,
"space": 27, "space": 28,
"align": "center", "align": "middle",
"_$child": [ "_$child": [
{ {
"_$id": "h0pbxs4g", "_$id": "1bdygkhu",
"_$type": "Sprite", "_$type": "Box",
"name": "btn_continue",
"width": 612,
"height": 120,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "i67pxiat",
"_$type": "Sprite",
"name": "btn_restart", "name": "btn_restart",
"y": 147, "y": 45,
"width": 612, "width": 412,
"height": 120, "height": 120,
"alpha": 0.1, "_$child": [
"_gcmds": [
{ {
"_$type": "DrawRoundRectCmd", "_$id": "i67pxiat",
"x": 0, "_$type": "Sprite",
"y": 0, "name": "Sprte",
"width": 1, "width": 412,
"height": 1, "height": 120,
"lt": 27, "alpha": 0.1,
"rt": 27, "mouseThrough": true,
"lb": 27, "_gcmds": [
"rb": 27, {
"percent": true, "_$type": "DrawRoundRectCmd",
"lineWidth": 1, "x": 0,
"fillColor": "rgba(29, 92, 220, 1)" "y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "julmw9iu",
"_$type": "Label",
"name": "Label",
"width": 412,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "Restart",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
} }
] ]
}
]
},
{
"_$id": "34mfjw6q",
"_$type": "VBox",
"name": "labels",
"x": 54,
"y": 366,
"width": 612,
"height": 350,
"bottom": -36,
"centerX": 0,
"space": 27,
"align": "center",
"_$child": [
{
"_$id": "64brcggk",
"_$type": "Label",
"name": "Label(1)",
"x": -66,
"width": 744,
"height": 120,
"text": "Continue",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}, },
{ {
"_$id": "julmw9iu", "_$id": "xa5cbi60",
"_$type": "Label", "_$type": "Box",
"name": "Label(2)", "name": "btn_continue",
"x": -66, "x": 440,
"y": 147, "y": 45,
"width": 744, "width": 412,
"height": 120, "height": 120,
"text": "Restart", "_$child": [
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", {
"fontSize": 45, "_$id": "h0pbxs4g",
"color": "rgba(29, 92, 220, 1)", "_$type": "Sprite",
"bold": true, "name": "Sprite",
"align": "center", "width": 412,
"valign": "middle", "height": 120,
"padding": "0,0,0,0" "mouseThrough": true,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 27,
"rt": 27,
"lb": 27,
"rb": 27,
"percent": true,
"lineWidth": 1,
"fillColor": "rgba(29, 92, 220, 1)"
}
]
},
{
"_$id": "64brcggk",
"_$type": "Label",
"name": "Label",
"width": 412,
"height": 120,
"centerX": 0,
"centerY": 0,
"text": "Continue",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45,
"color": "rgba(255, 255, 255, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
} }
] ]
}, },
@@ -194,11 +202,11 @@
"_$id": "hjmgztax", "_$id": "hjmgztax",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 60, "x": 180,
"y": 90, "y": 54,
"width": 600, "width": 600,
"height": 60, "height": 60,
"top": 90, "top": 54,
"centerX": 0, "centerX": 0,
"text": "Pause", "text": "Pause",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
@@ -213,28 +221,31 @@
"_$id": "q0nefmnf", "_$id": "q0nefmnf",
"_$type": "HBox", "_$type": "HBox",
"name": "summary", "name": "summary",
"y": 192, "x": 53,
"width": 720, "y": 156,
"height": 140, "width": 854,
"top": 192, "height": 150,
"top": 156,
"centerX": 0, "centerX": 0,
"space": 0, "space": 18,
"align": "middle", "align": "middle",
"_$child": [ "_$child": [
{ {
"_$id": "xfwuob5k", "_$id": "xfwuob5k",
"_$type": "Box", "_$type": "Box",
"name": "Box(1)", "name": "Box(1)",
"y": 2.5, "y": 7.5,
"width": 360, "width": 418,
"height": 135, "height": 135,
"_$child": [ "_$child": [
{ {
"_$id": "o1clptre", "_$id": "o1clptre",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 29,
"width": 360, "width": 360,
"height": 60, "height": 60,
"centerX": 0,
"text": "Time", "text": "Time",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 30, "fontSize": 30,
@@ -247,13 +258,16 @@
"_$id": "2oo94fn6", "_$id": "2oo94fn6",
"_$type": "Label", "_$type": "Label",
"name": "label_time", "name": "label_time",
"x": 29,
"y": 52, "y": 52,
"width": 360, "width": 360,
"height": 72, "height": 72,
"centerX": 0,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45, "fontSize": 45,
"color": "rgba(45, 49, 56, 1)", "color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"
@@ -264,17 +278,19 @@
"_$id": "juv58eq7", "_$id": "juv58eq7",
"_$type": "Box", "_$type": "Box",
"name": "Box(2)", "name": "Box(2)",
"x": 360, "x": 436,
"y": 2.5, "y": 7.5,
"width": 360, "width": 418,
"height": 135, "height": 135,
"_$child": [ "_$child": [
{ {
"_$id": "y3cucgc5", "_$id": "y3cucgc5",
"_$type": "Label", "_$type": "Label",
"name": "Label", "name": "Label",
"x": 29,
"width": 360, "width": 360,
"height": 60, "height": 60,
"centerX": 0,
"text": "Difficulty ", "text": "Difficulty ",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 30, "fontSize": 30,
@@ -287,13 +303,16 @@
"_$id": "x0g211ix", "_$id": "x0g211ix",
"_$type": "Label", "_$type": "Label",
"name": "label_diffculty", "name": "label_diffculty",
"x": 29,
"y": 52, "y": 52,
"width": 360, "width": 360,
"height": 72, "height": 72,
"centerX": 0,
"text": "Medium", "text": "Medium",
"font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2", "font": "res://7322bbf9-175b-4a25-a0d7-72d369894de2",
"fontSize": 45, "fontSize": 45,
"color": "rgba(45, 49, 56, 1)", "color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center", "align": "center",
"valign": "middle", "valign": "middle",
"padding": "0,0,0,0" "padding": "0,0,0,0"

View File

@@ -1,7 +1,7 @@
{ {
"resolution": { "resolution": {
"designWidth": 1080, "designWidth": 1920,
"designHeight": 1920, "designHeight": 1080,
"scaleMode": "fixedauto", "scaleMode": "fixedauto",
"backgroundColor": "rgba(245, 247, 251, 1)" "backgroundColor": "rgba(245, 247, 251, 1)"
}, },

View File

@@ -12,14 +12,14 @@ const { regClass, property } = Laya
export class GameOver extends Laya.Script { export class GameOver extends Laya.Script {
declare owner: Laya.Box declare owner: Laya.Box
@property(Laya.Sprite) @property(Laya.Box)
public btn_second: Laya.Sprite public btn_second: Laya.Box
@property(Laya.Sprite) @property(Laya.Box)
public btn_restart: Laya.Sprite public btn_restart: Laya.Box
@property(Laya.Sprite) @property(Laya.Box)
public btn_newOrClose: Laya.Sprite public btn_newOrClose: Laya.Box
@property(Laya.Label) @property(Laya.Label)
public label_newOrClose: Laya.Label public label_newOrClose: Laya.Label

View File

@@ -16,11 +16,11 @@ export class GamePause extends Laya.Script {
@property(Laya.Label) @property(Laya.Label)
public label_diffucuty: Laya.Label public label_diffucuty: Laya.Label
@property(Laya.Sprite) @property(Laya.Box)
public btn_continue: Laya.Sprite public btn_continue: Laya.Box
@property(Laya.Sprite) @property(Laya.Box)
public btn_restart: Laya.Sprite public btn_restart: Laya.Box
// 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次
onAwake(): void { onAwake(): void {

View File

@@ -253,7 +253,7 @@ export class Stage extends Laya.Script {
} }
onUpdateMistake(): void { onUpdateMistake(): void {
this.label_mistake.text = `Mistake: ${this.data.get_mistake()}/${config.MISTAKE_MAX}` this.label_mistake.text = `Mistakes: ${this.data.get_mistake()} / ${config.MISTAKE_MAX}`
} }
onSetBlock(block: Block, animated: boolean = false): void { onSetBlock(block: Block, animated: boolean = false): void {