54c4899f9d
* starting out with double date stuff :D not even the background is finished i just wanna get this on my fork so that it's safe * double date getting more initialized no animations, one block, nothing actually functions. but the boy is put in place, and the girl is almost put in place! just wanted to merge this with the main branch to play catchy tune * initialization done!!!!! gonna fix up the code, see what i can take out, see what i can standardize, see what i need to add. loving this so far, even with all of its annoyances * ughhhh animation stuff. this is gonna take me a day or two to even comprehend Co-authored-by: minenice55 <star.elementa@gmail.com>
64 lines
1.9 KiB
C#
64 lines
1.9 KiB
C#
using HeavenStudio.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace HeavenStudio.Games.Loaders
|
|
{
|
|
using static Minigames;
|
|
public static class RvlDoubleDateLoader
|
|
{
|
|
public static Minigame AddGame(EventCaller eventCaller) {
|
|
return new Minigame("doubleDate", "Double Date \n<color=#eb5454>[INITIALIZATION ONLY]</color>", "0058CE", false, false, new List<GameAction>()
|
|
{
|
|
new GameAction("soccerBall", "Soccer Ball")
|
|
{
|
|
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
|
|
defaultLength = 2,
|
|
},
|
|
new GameAction("basketball", "Basketball")
|
|
{
|
|
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
|
|
defaultLength = 2,
|
|
},
|
|
new GameAction("football", "Football")
|
|
{
|
|
function = delegate { var e = eventCaller.currentEntity; DoubleDate.instance.ball(e.beat, e["type"]); },
|
|
defaultLength = 2,
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace HeavenStudio.Games
|
|
{
|
|
using Scripts_DoubleDate;
|
|
|
|
public class DoubleDate : Minigame
|
|
{
|
|
public static DoubleDate instance;
|
|
|
|
[Header("Objects")]
|
|
public Animator soccerBallAnim;
|
|
public Animator basketballAnim;
|
|
public Animator footballAnim;
|
|
|
|
private void Awake()
|
|
{
|
|
instance = this;
|
|
}
|
|
|
|
private void HitSound(bool applause)
|
|
{
|
|
Jukebox.PlayOneShotGame("doubleDate/kick");
|
|
if (applause) Jukebox.PlayOneShot("applause");
|
|
}
|
|
|
|
public void ball(float beat, int type)
|
|
{
|
|
Jukebox.PlayOneShotGame("doubleDate/soccerBall");
|
|
}
|
|
}
|
|
|
|
} |