From e8bf6fbded529d74ede0058df87c1e7f722f2780 Mon Sep 17 00:00:00 2001 From: DamianCorazza <79833283+DamianCorazza@users.noreply.github.com> Date: Tue, 14 Oct 2025 14:13:10 +0200 Subject: [PATCH] Fixed tiles not spawning and reduced the speed of the descent. --- .../Scenes/MiniGames/DivingForPictures.unity | 71 +++++++++++-------- Assets/Settings/DivingMinigameSettings.asset | 2 +- 2 files changed, 43 insertions(+), 30 deletions(-) diff --git a/Assets/Scenes/MiniGames/DivingForPictures.unity b/Assets/Scenes/MiniGames/DivingForPictures.unity index 56a723e3..a8cc2aaa 100644 --- a/Assets/Scenes/MiniGames/DivingForPictures.unity +++ b/Assets/Scenes/MiniGames/DivingForPictures.unity @@ -342,17 +342,17 @@ LineRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_Positions: - - {x: -0.15602553, y: 4.0749445, z: 0} - - {x: -0.1566351, y: 3.9736378, z: 0} - - {x: -0.1572447, y: 3.8729858, z: 0} + - {x: -0.15602553, y: 4.074945, z: 0} + - {x: -0.1566351, y: 3.973638, z: 0} + - {x: -0.1572447, y: 3.8729856, z: 0} - {x: -0.15785426, y: 3.7729874, z: 0} - - {x: -0.15846384, y: 3.6736438, z: 0} - - {x: -0.15907341, y: 3.5749543, z: 0} - - {x: -0.15968299, y: 3.4769194, z: 0} + - {x: -0.15846384, y: 3.6736436, z: 0} + - {x: -0.15907341, y: 3.574954, z: 0} + - {x: -0.15968299, y: 3.4769192, z: 0} - {x: -0.16029257, y: 3.3795385, z: 0} - {x: -0.16090216, y: 3.2828126, z: 0} - - {x: -0.16151173, y: 3.1867406, z: 0} - - {x: -0.16212131, y: 3.0913231, z: 0} + - {x: -0.16151173, y: 3.1867409, z: 0} + - {x: -0.16212131, y: 3.0913236, z: 0} m_Parameters: serializedVersion: 3 widthMultiplier: 1 @@ -915,7 +915,7 @@ Transform: m_GameObject: {fileID: 747976396} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 3.1975174, z: 0} + m_LocalPosition: {x: 0, y: 3.197517, z: 0} m_LocalScale: {x: 0.57574, y: 0.57574, z: 0.57574} m_ConstrainProportionsScale: 0 m_Children: @@ -1022,15 +1022,15 @@ PolygonCollider2D: m_AutoTiling: 0 m_Points: m_Paths: - - - {x: 0.39752996, y: 1.9119657} - - {x: 0.5869277, y: 1.9659115} - - {x: 0.5859234, y: 2.273988} - - {x: 0.4216821, y: 2.3394482} - - {x: 0.21658361, y: 2.4846916} - - {x: -0.6874457, y: 2.5082667} - - {x: -0.7884688, y: 2.112848} - - {x: -0.71895736, y: 1.7035886} - - {x: 0.23126324, y: 1.6940142} + - - {x: 0.3176574, y: 1.919953} + - {x: 0.4974705, y: 1.9930679} + - {x: 0.5076483, y: 2.2835712} + - {x: 0.3178478, y: 2.32028} + - {x: 0.18623209, y: 2.3808568} + - {x: -0.5852088, y: 2.380468} + - {x: -0.683037, y: 2.060133} + - {x: -0.61831796, y: 1.8058262} + - {x: 0.17694987, y: 1.810627} m_UseDelaunayMesh: 0 --- !u!50 &747976403 Rigidbody2D: @@ -1375,9 +1375,9 @@ LineRenderer: - {x: 0.040996216, y: 3.3127766, z: 0} - {x: 0.08040057, y: 3.2246757, z: 0} - {x: 0.11980491, y: 3.1580195, z: 0} - - {x: 0.15920927, y: 3.1128078, z: 0} - - {x: 0.1986136, y: 3.0890403, z: 0} - - {x: 0.23801796, y: 3.0867171, z: 0} + - {x: 0.15920927, y: 3.112808, z: 0} + - {x: 0.1986136, y: 3.0890405, z: 0} + - {x: 0.23801796, y: 3.0867176, z: 0} m_Parameters: serializedVersion: 3 widthMultiplier: 1 @@ -1913,14 +1913,14 @@ LineRenderer: - {x: -0.15602553, y: 4.074945, z: 0} - {x: -0.18956745, y: 3.8764977, z: 0} - {x: -0.22310936, y: 3.7000232, z: 0} - - {x: -0.25665125, y: 3.5455205, z: 0} + - {x: -0.25665125, y: 3.5455208, z: 0} - {x: -0.29019317, y: 3.4129908, z: 0} - - {x: -0.32373506, y: 3.3024333, z: 0} + - {x: -0.32373506, y: 3.3024335, z: 0} - {x: -0.35727698, y: 3.213848, z: 0} - - {x: -0.39081886, y: 3.1472356, z: 0} - - {x: -0.4243608, y: 3.1025953, z: 0} - - {x: -0.45790267, y: 3.0799277, z: 0} - - {x: -0.4914446, y: 3.0792325, z: 0} + - {x: -0.39081886, y: 3.1472359, z: 0} + - {x: -0.4243608, y: 3.1025958, z: 0} + - {x: -0.45790267, y: 3.0799282, z: 0} + - {x: -0.4914446, y: 3.079233, z: 0} m_Parameters: serializedVersion: 3 widthMultiplier: 1 @@ -2126,8 +2126,21 @@ MonoBehaviour: - {fileID: 2956826569642009690, guid: 85e400c58e60c47458059c1e24c8576a, type: 3} - {fileID: 2956826569642009690, guid: b3501bc08c6afbf4f868bc7b6c2a2d92, type: 3} - {fileID: 2956826569642009690, guid: 4f9c8bd3fb844484492a54a2998b9b3b, type: 3} + - {fileID: 2956826569642009690, guid: bffdeb85669f34642bf4a2245699e5fe, type: 3} - {fileID: 2956826569642009690, guid: 16ad8a46d2c7c534982f4ee943e06f74, type: 3} - initialTilePrefab: {fileID: 0} + - {fileID: 2956826569642009690, guid: 8011eb55cd0cc9e41bb5f0ac3e749476, type: 3} + - {fileID: 2956826569642009690, guid: 8c34fcc285149844ea77d25f8ad26042, type: 3} + - {fileID: 2956826569642009690, guid: 239014e1a6af07d448d07d40b36cda5b, type: 3} + - {fileID: 2956826569642009690, guid: ebd4f666663e75a4f8639d9a99e0841f, type: 3} + - {fileID: 2956826569642009690, guid: 36d40cc94947da14e8d38dc9a855a2dc, type: 3} + - {fileID: 2956826569642009690, guid: 3b623cd69ef664a4098dd8220420c926, type: 3} + - {fileID: 2956826569642009690, guid: f652b7013c44ca548a1613862f1de933, type: 3} + - {fileID: 2956826569642009690, guid: e4d68f42bb42dff4e8fec1aa575b49ce, type: 3} + - {fileID: 2956826569642009690, guid: 7b786a4d28e8f35428fdbf8e079c6072, type: 3} + - {fileID: 2956826569642009690, guid: 22b8d7a56a4737342a28b2adf4dd4efb, type: 3} + - {fileID: 2956826569642009690, guid: b5777e3dbbd31954fa50a1ad28d7c7fc, type: 3} + - {fileID: 2956826569642009690, guid: 81f9a8e9eaac386488a42675e9ec8aee, type: 3} + initialTilePrefab: {fileID: 2956826569642009690, guid: c6ea8519596514e4dbf0f3e02ce14a2c, type: 3} onTileSpawned: m_PersistentCalls: m_Calls: [] @@ -2450,7 +2463,7 @@ Transform: m_GameObject: {fileID: 2106431001} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.165, y: 2.697517, z: 0} + m_LocalPosition: {x: -0.165, y: 2.6975174, z: 0} m_LocalScale: {x: 0.57574, y: 0.57574, z: 0.57574} m_ConstrainProportionsScale: 0 m_Children: diff --git a/Assets/Settings/DivingMinigameSettings.asset b/Assets/Settings/DivingMinigameSettings.asset index 58ff4efd..f0360f3c 100644 --- a/Assets/Settings/DivingMinigameSettings.asset +++ b/Assets/Settings/DivingMinigameSettings.asset @@ -32,7 +32,7 @@ MonoBehaviour: referenceScreenHeight: 1920 initialTileCount: 3 tileSpawnBuffer: 1 - normalizedTileMoveSpeed: 3 + normalizedTileMoveSpeed: 2 speedUpFactor: 0 speedUpInterval: 10 maxNormalizedTileMoveSpeed: 3