diff --git a/Assets/Resources/Games/wizardsWaltz.prefab b/Assets/Resources/Games/wizardsWaltz.prefab index 10544d52..0c5527ff 100644 --- a/Assets/Resources/Games/wizardsWaltz.prefab +++ b/Assets/Resources/Games/wizardsWaltz.prefab @@ -241,7 +241,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1172109260453278802} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -6, y: -2.5, z: 10} + m_LocalPosition: {x: -6, y: -2.5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 7248900333300803150} @@ -286,7 +286,7 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: 0 + m_SortingOrder: -32767 m_Sprite: {fileID: -4983146447318673554, guid: a7ebfee08631d124d9385ba110cd71c0, type: 3} m_Color: {r: 0.9056604, g: 0.9056604, b: 0.9056604, a: 0.33333334} m_FlipX: 0 @@ -1389,7 +1389,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7509558683071972976} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -2.76, z: 3.57} + m_LocalPosition: {x: 0, y: -2.25, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 6267059327452545344} @@ -1659,7 +1659,7 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: -1 + m_SortingOrder: -32767 m_Sprite: {fileID: -4983146447318673554, guid: a7ebfee08631d124d9385ba110cd71c0, type: 3} m_Color: {r: 0.90588236, g: 0.90588236, b: 0.90588236, a: 0.33333334} m_FlipX: 0 diff --git a/Assets/Resources/Sfx/games/wizardsWaltz/grow.ogg b/Assets/Resources/Sfx/games/wizardsWaltz/grow.ogg index 2fa938f5..034614b1 100644 Binary files a/Assets/Resources/Sfx/games/wizardsWaltz/grow.ogg and b/Assets/Resources/Sfx/games/wizardsWaltz/grow.ogg differ diff --git a/Assets/Resources/Sfx/games/wizardsWaltz/plant.ogg b/Assets/Resources/Sfx/games/wizardsWaltz/plant.ogg index ba1ca263..46db993d 100644 Binary files a/Assets/Resources/Sfx/games/wizardsWaltz/plant.ogg and b/Assets/Resources/Sfx/games/wizardsWaltz/plant.ogg differ diff --git a/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg b/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg new file mode 100644 index 00000000..0f4b0568 Binary files /dev/null and b/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg differ diff --git a/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg.meta b/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg.meta new file mode 100644 index 00000000..0edb6108 --- /dev/null +++ b/Assets/Resources/Sfx/games/wizardsWaltz/wand.ogg.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 077d5786fe75f9a46862bce0f8ee5b8b +AudioImporter: + externalObjects: {} + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Editor.unity b/Assets/Scenes/Editor.unity index bb8ab11c..278908a7 100644 --- a/Assets/Scenes/Editor.unity +++ b/Assets/Scenes/Editor.unity @@ -18739,9 +18739,9 @@ RectTransform: m_Father: {fileID: 1671351975} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 112, y: -25.34875} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 224, y: 50.6975} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1906769994 diff --git a/Assets/Scripts/Games/WizardsWaltz/Plant.cs b/Assets/Scripts/Games/WizardsWaltz/Plant.cs index 18bd92ca..23473308 100644 --- a/Assets/Scripts/Games/WizardsWaltz/Plant.cs +++ b/Assets/Scripts/Games/WizardsWaltz/Plant.cs @@ -15,6 +15,8 @@ namespace RhythmHeavenMania.Games.WizardsWaltz private bool hit = false; private bool passed = false; + public int order = 0; + private void Awake() { game = WizardsWaltz.instance; @@ -22,7 +24,7 @@ namespace RhythmHeavenMania.Games.WizardsWaltz private void Start() { - spriteRenderer.sortingOrder = (int)Math.Round((transform.position.z - 2) * 1000); + spriteRenderer.sortingOrder = order; animator.Play("Appear", 0, 0); } diff --git a/Assets/Scripts/Games/WizardsWaltz/Wizard.cs b/Assets/Scripts/Games/WizardsWaltz/Wizard.cs index 3e5f5543..bc06b0fd 100644 --- a/Assets/Scripts/Games/WizardsWaltz/Wizard.cs +++ b/Assets/Scripts/Games/WizardsWaltz/Wizard.cs @@ -26,11 +26,11 @@ namespace RhythmHeavenMania.Games.WizardsWaltz songPos = Conductor.instance.songPositionInBeats; var am = game.beatInterval / 2f; var x = Mathf.Sin(Mathf.PI * songPos / am) * 6; - var y = Mathf.Cos(Mathf.PI * songPos / am) * 2f; + var y = Mathf.Cos(Mathf.PI * songPos / am) * 1.5f; var scale = 1 - Mathf.Cos(Mathf.PI * songPos / am) * 0.35f; - transform.position = new Vector3(x, 1f + y, scale * 2); - shadow.transform.position = new Vector3(x, -3.5f + y, scale * 2 + 0.1f); + transform.position = new Vector3(x, 1.5f + y, 0); + shadow.transform.position = new Vector3(x, -3f + y, 0); var xscale = scale; if (y > 0) xscale *= -1; @@ -43,6 +43,7 @@ namespace RhythmHeavenMania.Games.WizardsWaltz if (PlayerInput.Pressed(true)) { animator.Play("Magic", 0, 0); + Jukebox.PlayOneShotGame("wizardsWaltz/wand"); } } diff --git a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs index fc7dd49f..d2fc101e 100644 --- a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs +++ b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs @@ -53,7 +53,7 @@ namespace RhythmHeavenMania.Games.WizardsWaltz MagicFX magic = Instantiate(fxBase, fxHolder.transform).GetComponent(); - magic.transform.position = new Vector3(x, 0.5f + y, scale * 2); + magic.transform.position = new Vector3(x, 0.5f + y, 0); magic.transform.localScale = wizard.gameObject.transform.localScale; magic.gameObject.SetActive(true); } @@ -86,14 +86,15 @@ namespace RhythmHeavenMania.Games.WizardsWaltz var songPos = Conductor.instance.songPositionInBeats; var am = (beatInterval / 2f); var x = Mathf.Sin(Mathf.PI * songPos / am) * 6; - var y = -3.5f + Mathf.Cos(Mathf.PI * songPos / am) * 2f; + var y = -3f + Mathf.Cos(Mathf.PI * songPos / am) * 1.5f; var scale = 1 - Mathf.Cos(Mathf.PI * songPos / am) * 0.35f; var xscale = scale; if (y > -3.5f) xscale *= -1; - plant.transform.localPosition = new Vector3(x, y, scale * 2); + plant.transform.localPosition = new Vector3(x, y, 0); plant.transform.localScale = new Vector3(xscale, scale, 1); + plant.order = (int)Math.Round((scale - 1) * 1000); plant.gameObject.SetActive(true); plant.createBeat = beat;