This commit is contained in:
dgflash
2024-03-09 15:02:42 +08:00
parent 39ef76e2be
commit f09e02dd4e
2 changed files with 294 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ export class Main extends Root {
sliderMusicHandle: Node = null!;
start() {
oops.audio.volumeMusic = this.sliderMusicVolume.progress;
oops.res.loadDir("common");
this.sliderMusicHandle.on(Node.EventType.TOUCH_START, this.onTouchStart, this);
this.sliderMusicHandle.on(Node.EventType.TOUCH_END, this.onTouchEnd, this);
@@ -50,7 +50,7 @@ export class Main extends Root {
oops.audio.setMusicComplete(() => {
oops.gui.toast("音乐播放完成");
});
oops.audio.playMusic("audios/nocturne");
oops.audio.playMusic("audios/Gravel");
}
/** 调解背景音乐音量 */

View File

@@ -3,6 +3,7 @@
"__type__": "cc.SceneAsset",
"_name": "main",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"scene": {
"__id__": 1
@@ -12,6 +13,7 @@
"__type__": "cc.Scene",
"_name": "main",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
@@ -21,6 +23,33 @@
"_active": true,
"_components": [],
"_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
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 69
@@ -31,6 +60,7 @@
"__type__": "cc.Node",
"_name": "root",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
@@ -68,6 +98,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
@@ -81,6 +112,7 @@
"__type__": "cc.Node",
"_name": "game",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
@@ -107,6 +139,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
@@ -120,6 +153,7 @@
"__type__": "cc.Node",
"_name": "gui",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
@@ -167,8 +201,8 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 640,
"y": 375,
"x": 600,
"y": 360,
"z": 0
},
"_lrot": {
@@ -184,6 +218,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -197,6 +232,7 @@
"__type__": "cc.Node",
"_name": "UICamera",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -227,6 +263,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -240,6 +277,7 @@
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 5
},
@@ -249,7 +287,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 413.1905781584582,
"_orthoHeight": 363.8031693077565,
"_near": 1,
"_far": 2000,
"_color": {
@@ -275,12 +313,17 @@
"_screenScale": 1,
"_visibility": 33554432,
"_targetTexture": null,
"_postProcess": null,
"_usePostProcess": false,
"_cameraType": -1,
"_trackingType": 0,
"_id": "58hTt8B3tKnZaTs3OzCwkE"
},
{
"__type__": "cc.Node",
"_name": "labSlider",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -314,6 +357,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -327,6 +371,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
@@ -348,6 +393,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
@@ -380,12 +426,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "69qy7y8e5KkKUuiABDFqOq"
},
{
"__type__": "cc.Node",
"_name": "sliderMusic",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -426,6 +496,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -439,6 +510,7 @@
"__type__": "cc.Node",
"_name": "Handle",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
@@ -475,6 +547,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -488,6 +561,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
@@ -509,6 +583,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
@@ -547,6 +622,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
@@ -601,6 +677,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
@@ -622,6 +699,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
@@ -660,6 +738,7 @@
"__type__": "cc.Slider",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
@@ -677,6 +756,7 @@
"__type__": "cc.Node",
"_name": "sliderMusicVolume",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -717,6 +797,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -730,6 +811,7 @@
"__type__": "cc.Node",
"_name": "Handle",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 18
},
@@ -766,6 +848,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -779,6 +862,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 19
},
@@ -800,6 +884,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 19
},
@@ -838,6 +923,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 19
},
@@ -892,6 +978,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
@@ -913,6 +1000,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
@@ -951,6 +1039,7 @@
"__type__": "cc.Slider",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
@@ -982,6 +1071,7 @@
"__type__": "cc.Node",
"_name": "labSliderVolume",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -1015,6 +1105,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1028,6 +1119,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
},
@@ -1049,6 +1141,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
},
@@ -1081,12 +1174,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "e7c9/xJh1B95pmsSqZ08l2"
},
{
"__type__": "cc.Node",
"_name": "btnMusic",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -1127,6 +1244,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1140,6 +1258,7 @@
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 30
},
@@ -1173,6 +1292,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1186,6 +1306,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
@@ -1207,6 +1328,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
@@ -1239,12 +1361,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "56kasTPcFNd6Nw4vlTvl1x"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 30
},
@@ -1266,6 +1412,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 30
},
@@ -1304,6 +1451,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 30
},
@@ -1381,6 +1529,7 @@
"__type__": "cc.Node",
"_name": "btnEffect",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -1421,6 +1570,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1434,6 +1584,7 @@
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 38
},
@@ -1467,6 +1618,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1480,6 +1632,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
@@ -1501,6 +1654,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
@@ -1533,12 +1687,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "69pUtPKF9GSrDFTJjaWKKD"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
@@ -1560,6 +1738,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
@@ -1598,6 +1777,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
@@ -1675,6 +1855,7 @@
"__type__": "cc.Node",
"_name": "btnSave",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -1715,6 +1896,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1728,6 +1910,7 @@
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 46
},
@@ -1761,6 +1944,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -1774,6 +1958,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 47
},
@@ -1795,6 +1980,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 47
},
@@ -1827,12 +2013,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "c75nTEnPtMQaQWdMSjFR+5"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
@@ -1854,6 +2064,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
@@ -1892,6 +2103,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
@@ -1969,6 +2181,7 @@
"__type__": "cc.Node",
"_name": "btnLoad",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 4
},
@@ -2009,6 +2222,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -2022,6 +2236,7 @@
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 54
},
@@ -2055,6 +2270,7 @@
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
@@ -2068,6 +2284,7 @@
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
},
@@ -2089,6 +2306,7 @@
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
},
@@ -2121,12 +2339,36 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "ebpINHASZOIZqI8uygRJHb"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
},
@@ -2148,6 +2390,7 @@
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
},
@@ -2186,6 +2429,7 @@
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
},
@@ -2263,6 +2507,7 @@
"__type__": "cc.UITransform",
"_name": "Canvas<UITransform>",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
@@ -2272,8 +2517,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 750
"width": 1200,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2290,6 +2535,7 @@
"__type__": "cc.Canvas",
"_name": "Canvas<Canvas>",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
@@ -2311,6 +2557,7 @@
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
@@ -2346,6 +2593,7 @@
"__type__": "68b172688BKGawrwU4Ijt+p",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
@@ -2384,7 +2632,18 @@
},
"octree": {
"__id__": 74
}
},
"skin": {
"__id__": 75
},
"lightProbeInfo": {
"__id__": 76
},
"postSettings": {
"__id__": 77
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
},
{
"__type__": "cc.AmbientInfo",
@@ -2445,6 +2704,7 @@
"z": 0
},
"_distance": 0,
"_planeBias": 1,
"_shadowColor": {
"__type__": "cc.Color",
"r": 76,
@@ -2478,7 +2738,10 @@
"_diffuseMapLDR": null,
"_enabled": true,
"_useHDR": true,
"_editableMaterial": null
"_editableMaterial": null,
"_reflectionHDR": null,
"_reflectionLDR": null,
"_rotationAngle": 0
},
{
"__type__": "cc.FogInfo",
@@ -2515,5 +2778,27 @@
"z": 1024
},
"_depth": 8
},
{
"__type__": "cc.SkinInfo",
"_enabled": true,
"_blurRadius": 0.01,
"_sssIntensity": 3
},
{
"__type__": "cc.LightProbeInfo",
"_giScale": 1,
"_giSamples": 1024,
"_bounces": 2,
"_reduceRinging": 0,
"_showProbe": true,
"_showWireframe": true,
"_showConvex": false,
"_data": null,
"_lightProbeSphereVolume": 1
},
{
"__type__": "cc.PostSettingsInfo",
"_toneMappingType": 0
}
]