game pause

This commit is contained in:
2025-05-22 19:12:00 +08:00
parent 4df55f9031
commit 4626e98717
30 changed files with 439 additions and 70 deletions

View File

@@ -13,7 +13,7 @@
{
"_$type": "7bad1742-6eed-4d8d-81c0-501dc5bf03d6",
"scriptPath": "../src/Main.ts",
"debug": true
"debug": false
},
{
"_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "7d36066d-f01a-4a46-9eb7-109f58cdbc19",
"importer": {
"textureType": 2
}
}

View File

@@ -0,0 +1,299 @@
{
"_$ver": 1,
"_$id": "2c04twx2",
"_$type": "Box",
"name": "GamePause",
"width": 1080,
"height": 1920,
"_mouseState": 2,
"drawCallOptimize": true,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"_$comp": [
{
"_$type": "c8bf81c2-c8fd-4f25-b120-4ad620ff7b88",
"scriptPath": "../src/views/GamePause.ts",
"label_time": {
"_$ref": "lvemgoo4"
},
"label_diffucuty": {
"_$ref": "ztc8yofh"
},
"btn_continue": {
"_$ref": "ugz9ejd0"
},
"btn_restart": {
"_$ref": "lkzndo0i"
}
}
],
"_$child": [
{
"_$id": "vqp0nqaw",
"_$type": "Image",
"name": "Image",
"width": 1080,
"height": 1920,
"alpha": 0.6,
"left": 0,
"right": 0,
"top": 0,
"bottom": 0,
"skin": "res://a98f334e-ce04-4cd0-8fc5-bbdf9b048609",
"color": "#000000"
},
{
"_$id": "cy0qcxu0",
"_$type": "Box",
"name": "center",
"x": 96,
"y": 507,
"width": 888,
"height": 906,
"_mouseState": 2,
"centerX": 0,
"centerY": 0,
"_$child": [
{
"_$id": "ybaxa7q2",
"_$type": "Sprite",
"name": "Sprite",
"width": 888,
"height": 906,
"_gcmds": [
{
"_$type": "DrawRoundRectCmd",
"x": 0,
"y": 0,
"width": 1,
"height": 1,
"lt": 20,
"rt": 20,
"lb": 20,
"rb": 20,
"percent": true,
"lineWidth": 1,
"fillColor": "#FFFFFF"
}
]
},
{
"_$id": "gpjobt41",
"_$type": "VBox",
"name": "buttons",
"x": 72,
"y": 478,
"width": 744,
"height": 600,
"centerX": 0,
"centerY": 325,
"space": 40,
"align": "center",
"_$child": [
{
"_$id": "ugz9ejd0",
"_$type": "Sprite",
"name": "btn_continue",
"width": 744,
"height": 156,
"_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": "lkzndo0i",
"_$type": "Sprite",
"name": "btn_restart",
"y": 196,
"width": 744,
"height": 156,
"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": "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",
"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",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "hk8la5r2",
"_$type": "Label",
"name": "Label",
"x": 76,
"y": 103,
"width": 736,
"height": 100,
"centerX": 0,
"centerY": -300,
"text": "Pause",
"fontSize": 72,
"color": "rgba(45, 49, 56, 1)",
"bold": true,
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "va1fgpv1",
"_$type": "HBox",
"name": "summary",
"x": 84,
"y": 250,
"width": 720,
"height": 140,
"centerX": 0,
"space": 0,
"align": "middle",
"_$child": [
{
"_$id": "4ur3tdna",
"_$type": "Box",
"name": "Box(1)",
"y": 2.5,
"width": 360,
"height": 135,
"_$child": [
{
"_$id": "10mi9wxu",
"_$type": "Label",
"name": "up",
"width": 360,
"height": 60,
"text": "Time",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "lvemgoo4",
"_$type": "Label",
"name": "down",
"y": 70,
"width": 360,
"height": 72,
"text": "Medium",
"fontSize": 60,
"color": "rgba(45, 49, 56, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
},
{
"_$id": "26zqj788",
"_$type": "Box",
"name": "Box(2)",
"x": 360,
"y": 2.5,
"width": 360,
"height": 135,
"_$child": [
{
"_$id": "nu9nfub9",
"_$type": "Label",
"name": "up",
"width": 360,
"height": 60,
"text": "Difficuty",
"fontSize": 42,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "ztc8yofh",
"_$type": "Label",
"name": "down",
"y": 70,
"width": 360,
"height": 72,
"text": "Medium",
"fontSize": 60,
"color": "rgba(45, 49, 56, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}
]
}
]
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "b6e5dbcc-bac5-45ae-98d6-48ff60f88a29"
}

View File

@@ -17,6 +17,9 @@
"btn_back": {
"_$ref": "l1ebdt6a"
},
"btn_pause": {
"_$ref": "qfuij2yw"
},
"label_score": {
"_$ref": "zgzyqyoc"
},
@@ -72,19 +75,19 @@
{
"_$id": "xllpjjqz",
"_$type": "Box",
"name": "back",
"x": 45,
"name": "top",
"y": 60,
"width": 400,
"width": 1080,
"height": 64,
"_mouseState": 2,
"centerX": -295,
"centerX": 0,
"centerY": -868,
"_$child": [
{
"_$id": "l1ebdt6a",
"_$type": "Button",
"name": "btn_back",
"x": 45,
"width": 69,
"height": 48,
"_mouseState": 2,
@@ -94,6 +97,21 @@
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle"
},
{
"_$id": "qfuij2yw",
"_$type": "Button",
"name": "btn_pause",
"x": 956,
"width": 75,
"height": 75,
"_mouseState": 2,
"stateNum": 1,
"skin": "res://7d36066d-f01a-4a46-9eb7-109f58cdbc19",
"label": "",
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle"
}
]
},