pretending to add monkey

Still not playable or anything like that
This commit is contained in:
blank3times 2024-01-24 21:30:42 -08:00
parent 41805eef9a
commit c510b77d49

View file

@ -25,6 +25,12 @@ namespace HeavenStudio.Games.Loaders
new GameAction("mandrill", "Mandrill (no visuals)") new GameAction("mandrill", "Mandrill (no visuals)")
{ {
function = delegate { HoleInOne.instance.DoMandrill(eventCaller.currentEntity.beat); }, function = delegate { HoleInOne.instance.DoMandrill(eventCaller.currentEntity.beat); },
defaultLength = 4.0f,
},
new GameAction("monkey", "Monkey (sound only)")
{
function = delegate { HoleInOne.instance.DoMonkey(eventCaller.currentEntity.beat); },
defaultLength = 3.0f,
} }
}//, }//,
// new List<string>() { "rvl", "normal" }, // new List<string>() { "rvl", "normal" },
@ -66,11 +72,9 @@ namespace HeavenStudio.Games
}); });
} }
public void DoMandrill(double beat) public void DoMandrill(double beat)
{ {
//Far Drop Multisound //Mandrill Multisound
ScheduleInput(beat, 3f, InputAction_BasicPress, CatchSuccess, CatchSuccess1, CatchSuccess2); ScheduleInput(beat, 3f, InputAction_BasicPress, CatchSuccess, CatchSuccess1, CatchSuccess2);
MultiSound.Play(new MultiSound.Sound[] { MultiSound.Play(new MultiSound.Sound[] {
new MultiSound.Sound("holeInOne/mandrill1", beat), new MultiSound.Sound("holeInOne/mandrill1", beat),
@ -88,6 +92,25 @@ namespace HeavenStudio.Games
} }
public void DoMonkey(double beat)
{
//Monkey Multisound
ScheduleInput(beat, 2f, InputAction_BasicPress, CatchSuccess, CatchSuccess1, CatchSuccess2);
MultiSound.Play(new MultiSound.Sound[] {
new MultiSound.Sound("holeInOne/monkey1", beat),
new MultiSound.Sound("holeInOne/monkey2", beat + 1f),
new MultiSound.Sound("holeInOne/hole1", beat + 2f),
});
// BeatAction.New(instance, new List<BeatAction.Action>()
// {
// new BeatAction.Action(beat, delegate { FarCrane.DoScaledAnimationAsync("Drop", 0.5f);}),
// new BeatAction.Action(beat + 1.0f, delegate { FarCrane.DoScaledAnimationAsync("Open", 0.5f);}),
// new BeatAction.Action(beat + 1.5f, delegate { FarCrane.DoScaledAnimationAsync("Lift", 0.5f);}),
// });
}
public void CatchSuccess(PlayerActionEvent caller, float state) public void CatchSuccess(PlayerActionEvent caller, float state)
{ {
SoundByte.PlayOneShotGame("holeInOne/whale"); SoundByte.PlayOneShotGame("holeInOne/whale");