mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:07:41 +02:00
Space Dance and Crop Stomp visual improvements + canvasScroll (#450)
* sprites1 * papapapunch * dancers sheet done * crop stomp * Particulate * Added veggie bag and particle to crop stomp, wip though * Space dance scrolling background has been added * cool * Canvas Scroll hype * Canvas scroll implemented in space soccer * 4k * gramps wip * more * assbun conflict fixed + long hair fix * Space dance bop modernization and fixes * ok * sprites done * wait. * fixed space dance stuff * Made miss return to idle * catchy tune 3 * epic --------- Co-authored-by: ev <85412919+evdial@users.noreply.github.com> Co-authored-by: minenice55 <star.elementa@gmail.com>
This commit is contained in:
@ -154,6 +154,7 @@ namespace HeavenStudio.Games
|
||||
using Scripts_SpaceSoccer;
|
||||
using HeavenStudio.Common;
|
||||
using UnityEngine.Rendering;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SpaceSoccer : Minigame
|
||||
{
|
||||
@ -193,7 +194,8 @@ namespace HeavenStudio.Games
|
||||
[SerializeField] private GameObject kickerPrefab;
|
||||
[SerializeField] private GameObject ballRef;
|
||||
[SerializeField] private List<Kicker> kickers;
|
||||
[SerializeField] private SuperScroll backgroundSprite;
|
||||
[SerializeField] private CanvasScroll backgroundSprite;
|
||||
[SerializeField] private RawImage bgImage;
|
||||
[SerializeField] private SpriteRenderer bg;
|
||||
|
||||
[Header("Properties")]
|
||||
@ -245,7 +247,7 @@ namespace HeavenStudio.Games
|
||||
float normalizedX = (Time.realtimeSinceStartup - scrollBeat) * currentScrollLengthX;
|
||||
float normalizedY = (Time.realtimeSinceStartup - scrollBeat) * currentScrollLengthY;
|
||||
backgroundSprite.NormalizedX = -scrollOffsetX - normalizedX;
|
||||
backgroundSprite.NormalizedY = -scrollOffsetY - normalizedY;
|
||||
backgroundSprite.NormalizedY = scrollOffsetY + normalizedY;
|
||||
|
||||
float normalizedEaseBeat = cond.GetPositionFromBeat(easeBeat, easeLength);
|
||||
if (normalizedEaseBeat <= 1 && normalizedEaseBeat > 0)
|
||||
@ -500,12 +502,12 @@ namespace HeavenStudio.Games
|
||||
if (seconds == 0)
|
||||
{
|
||||
bg.color = color;
|
||||
backgroundSprite.Material.SetColor("_Color", dotColor);
|
||||
bgImage.color = dotColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
bgColorTween = bg.DOColor(color, seconds);
|
||||
dotColorTween = backgroundSprite.Material.DOColor(dotColor, seconds);
|
||||
dotColorTween = bgImage.DOColor(dotColor, seconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user