补充关卡功能

This commit is contained in:
2025-05-13 14:17:33 +08:00
parent 941dd170b5
commit dcb12db40d
16 changed files with 382 additions and 7 deletions

Binary file not shown.

View File

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

View File

@@ -0,0 +1,48 @@
{
"_$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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

View File

@@ -0,0 +1,6 @@
{
"uuid": "06a9c4a8-d664-4f3a-9c35-25b610195ced",
"importer": {
"textureType": 2
}
}

View File

@@ -0,0 +1,75 @@
{
"_$ver": 1,
"_$id": "ze5gx82a",
"_$type": "Box",
"name": "ScoreAdd",
"x": -17,
"y": 28,
"width": 150,
"height": 60,
"centerX": 0,
"centerY": 0,
"_$comp": [
{
"_$type": "Animator2D",
"controller": {
"_$uuid": "96c849ea-9704-40bc-8bb5-c00a4f341d30",
"_$type": "AnimationController2D"
},
"controllerLayers": [
{
"_$type": "AnimatorControllerLayer2D",
"name": "Base Layer",
"states": [
{
"_$type": "AnimatorState2D",
"name": "score_up",
"clipStart": 0,
"clip": {
"_$uuid": "3ff6c374-5ecd-4de1-b271-a3280f87f9d9",
"_$type": "AnimationClip2D"
},
"soloTransitions": []
}
],
"defaultStateName": "score_up"
}
]
},
{
"_$type": "bdb0e671-99fa-47a5-9101-7ec008b1d25d",
"scriptPath": "../src/views/AutoDestroy.ts",
"lifeTime": 1
}
],
"_$child": [
{
"_$id": "mqksqekt",
"_$type": "Box",
"name": "offset",
"y": -150,
"width": 150,
"height": 60,
"_$child": [
{
"_$id": "muzcdy3q",
"_$type": "Label",
"name": "Label",
"x": 0,
"y": 0,
"width": 150,
"height": 60,
"scaleX": 1,
"scaleY": 1,
"text": "+150",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 60,
"color": "rgba(29, 92, 220, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
}
]
}
]
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "324b6a80-ccee-46d2-bbbd-5a7bf92067b3"
}

View File

@@ -14,6 +14,21 @@
{
"_$type": "692a672b-2457-456c-8093-321ea7a10e1b",
"scriptPath": "../src/views/Stage.ts",
"label_stage_name": {
"_$ref": "w8r3l8ie"
},
"label_score": {
"_$ref": "zgzyqyoc"
},
"label_mistake": {
"_$ref": "azfx9pw2"
},
"label_diff": {
"_$ref": "qxei5ih3"
},
"label_time": {
"_$ref": "m5cdq70n"
},
"obj_blocks": {
"_$ref": "mv2d4o7d"
},
@@ -75,6 +90,49 @@
"skin": "res://63e88ec0-8898-4190-9f70-a4df67200ce3",
"color": "#ffffff"
},
{
"_$id": "xllpjjqz",
"_$type": "Box",
"name": "back",
"x": 60,
"y": 60,
"width": 400,
"height": 64,
"_mouseState": 2,
"left": 60,
"top": 60,
"_$child": [
{
"_$id": "l1ebdt6a",
"_$type": "Button",
"name": "btn_back",
"width": 92,
"height": 64,
"_mouseState": 2,
"stateNum": 1,
"skin": "res://06a9c4a8-d664-4f3a-9c35-25b610195ced",
"label": "",
"labelSize": 20,
"labelAlign": "center",
"labelVAlign": "middle"
},
{
"_$id": "w8r3l8ie",
"_$type": "Text",
"name": "label_stage_name",
"x": 116,
"width": 200,
"height": 64,
"text": "[color=#000000]关卡 [/color][color=#1d5cdc]20[/color]",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 60,
"color": "#FFFFFF",
"ubb": true,
"valign": "middle",
"leading": 2
}
]
},
{
"_$id": "jtbep2gl",
"_$type": "Box",
@@ -87,6 +145,77 @@
"centerX": 0,
"centerY": -128,
"_$child": [
{
"_$id": "zgzyqyoc",
"_$type": "Label",
"name": "label_score",
"x": 372,
"y": -122,
"width": 300,
"height": 60,
"centerX": 0,
"centerY": -614,
"text": "分数999",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 50,
"color": "rgba(29, 92, 220, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "azfx9pw2",
"_$type": "Label",
"name": "label_mistake",
"x": 4,
"y": -58,
"width": 300,
"height": 60,
"centerX": -368,
"centerY": -550,
"text": "错误3/3",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "qxei5ih3",
"_$type": "Label",
"name": "label_diff",
"x": 372,
"y": -58,
"width": 300,
"height": 60,
"centerX": 0,
"centerY": -550,
"text": "难度",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"align": "center",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "m5cdq70n",
"_$type": "Label",
"name": "label_time",
"x": 741,
"y": -58,
"width": 300,
"height": 60,
"centerX": 369,
"centerY": -550,
"text": "99:99:99",
"font": "res://55f943ef-58d2-4b30-8498-271c4213cce4",
"fontSize": 30,
"color": "rgba(123, 129, 140, 1)",
"align": "right",
"valign": "middle",
"padding": "0,0,0,0"
},
{
"_$id": "mv2d4o7d",
"_$type": "HBox",