2022-05-28 02:40:16 +00:00
|
|
|
using HeavenStudio.Util;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.Rendering;
|
|
|
|
|
|
|
|
namespace HeavenStudio.Games.Loaders
|
|
|
|
{
|
|
|
|
using static Minigames;
|
|
|
|
public static class CtrPillowLoader
|
|
|
|
{
|
|
|
|
public static Minigame AddGame(EventCaller eventCaller) {
|
2023-04-02 02:28:23 +00:00
|
|
|
return new Minigame("pajamaParty", "Pajama Party", "fc9ac3", false, false, new List<GameAction>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
new GameAction("bop", "Bop")
|
|
|
|
{
|
|
|
|
function = delegate { var e = eventCaller.currentEntity; PajamaParty.instance.Bop(e.beat, e.length, e["bop"], e["autoBop"]); },
|
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
|
|
|
new Param("bop", true, "Keep Bopping", "Should Mako and the monkeys bop for the duration of the block?"),
|
|
|
|
new Param("autoBop", false, "Keep Bopping (Auto)", "Should Mako and the monkeys bop indefinitely?"),
|
|
|
|
},
|
|
|
|
resizable = true,
|
|
|
|
},
|
2022-06-12 19:32:00 +00:00
|
|
|
// both same timing
|
2022-08-20 23:03:51 +00:00
|
|
|
new GameAction("jump (side to middle)", "Side to Middle Jumps")
|
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
function = delegate { PajamaParty.instance.DoThreeJump(eventCaller.currentEntity.beat); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 4f,
|
2023-06-13 22:47:52 +00:00
|
|
|
inactiveFunction = delegate { PajamaParty.WarnThreeJump(eventCaller.currentEntity.beat); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
|
|
|
new GameAction("jump (back to front)", "Back to Front Jumps")
|
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
function = delegate { PajamaParty.instance.DoFiveJump(eventCaller.currentEntity.beat); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 4f,
|
2023-06-13 22:47:52 +00:00
|
|
|
inactiveFunction = delegate { PajamaParty.WarnFiveJump(eventCaller.currentEntity.beat); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
2022-06-12 19:32:00 +00:00
|
|
|
//idem
|
2022-08-20 23:03:51 +00:00
|
|
|
new GameAction("slumber", "Slumber")
|
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; PajamaParty.instance.DoSleepSequence(e.beat, e["toggle"], e["type"]); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 8f,
|
|
|
|
parameters = new List<Param>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2022-06-18 06:31:19 +00:00
|
|
|
new Param("type", PajamaParty.SleepType.Normal, "Sleep Type", "Type of sleep action to use"),
|
2022-06-12 19:32:00 +00:00
|
|
|
new Param("toggle", false, "Alt. Animation", "Use an alternate animation for Mako")
|
|
|
|
},
|
2023-06-13 22:47:52 +00:00
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; PajamaParty.WarnSleepSequence(e.beat, e["toggle"], e["type"]); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
|
|
|
new GameAction("throw", "Throw Pillows")
|
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
function = delegate { PajamaParty.instance.DoThrowSequence(eventCaller.currentEntity.beat); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 8f,
|
2023-06-13 22:47:52 +00:00
|
|
|
inactiveFunction = delegate { PajamaParty.WarnThrowSequence(eventCaller.currentEntity.beat); }
|
|
|
|
},
|
|
|
|
new GameAction("instant slumber", "Instant Slumber")
|
|
|
|
{
|
|
|
|
function = delegate { var e = eventCaller.currentEntity; PajamaParty.instance.DoInstantSleep(e.beat + e.length - 1, e["type"]); },
|
|
|
|
defaultLength = 0.5f,
|
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; PajamaParty.WarnInstantSleep(e.beat, e.length, e["type"]); },
|
|
|
|
resizable = true,
|
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
|
|
|
new Param("type", PajamaParty.SleepType.Normal, "Sleep Type", "Type of sleep action to use"),
|
|
|
|
},
|
|
|
|
priority = 5,
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
|
|
|
// todo cosmetic crap
|
|
|
|
// background stuff
|
2022-06-12 19:32:00 +00:00
|
|
|
// do shit with mako's face? (talking?)
|
|
|
|
},
|
|
|
|
new List<string>() {"ctr", "normal"},
|
|
|
|
"ctrpillow", "jp",
|
|
|
|
new List<string>() {"en", "jp", "ko"}
|
|
|
|
);
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace HeavenStudio.Games
|
|
|
|
{
|
|
|
|
using Scripts_PajamaParty;
|
|
|
|
public class PajamaParty : Minigame
|
|
|
|
{
|
|
|
|
[Header("Objects")]
|
|
|
|
public CtrPillowPlayer Mako;
|
|
|
|
public GameObject Bed;
|
|
|
|
public GameObject MonkeyPrefab;
|
|
|
|
|
|
|
|
[Header("Positions")]
|
|
|
|
public Transform SpawnRoot;
|
|
|
|
|
|
|
|
//game scene
|
|
|
|
public static PajamaParty instance;
|
|
|
|
CtrPillowMonkey[,] monkeys;
|
|
|
|
|
|
|
|
//cues while unoaded
|
2023-06-10 19:17:06 +00:00
|
|
|
static double WantThreeJump = double.MinValue;
|
|
|
|
static double WantFiveJump = double.MinValue;
|
|
|
|
static double WantThrowSequence = double.MinValue;
|
|
|
|
static double WantSleepSequence = double.MinValue;
|
2023-06-13 22:47:52 +00:00
|
|
|
static double WantInstantSleep = Single.MinValue;
|
2022-05-28 02:40:16 +00:00
|
|
|
static bool WantSleepType = false;
|
2022-06-18 06:31:19 +00:00
|
|
|
static int WantSleepAction = (int) PajamaParty.SleepType.Normal;
|
2023-06-13 22:47:52 +00:00
|
|
|
static int WantInstantSleepAction = (int) PajamaParty.SleepType.Normal;
|
|
|
|
|
2022-06-18 06:31:19 +00:00
|
|
|
public enum SleepType {
|
|
|
|
Normal,
|
|
|
|
NoAwake,
|
|
|
|
}
|
2022-05-28 02:40:16 +00:00
|
|
|
|
|
|
|
void Awake()
|
|
|
|
{
|
|
|
|
instance = this;
|
|
|
|
|
|
|
|
//spawn monkeys
|
|
|
|
// is 5x5 grid with row 0, col 2 being empty (the player)
|
|
|
|
// m m m m m
|
|
|
|
// m m m m m
|
|
|
|
// m m m m m
|
|
|
|
// m m m m m
|
|
|
|
// m m P m m
|
|
|
|
monkeys = new CtrPillowMonkey[5,5];
|
|
|
|
float RADIUS = 2.75f;
|
|
|
|
float scale = 1.0f;
|
|
|
|
int sorting = 10;
|
|
|
|
//set our start position (at Mako + 2*radius to the right)
|
|
|
|
Vector3 spawnPos = SpawnRoot.position + new Vector3(-RADIUS*3, 0);
|
|
|
|
for (int y = 0; y < 5; y++)
|
|
|
|
{
|
|
|
|
for (int x = 0; x < 5; x++)
|
|
|
|
{
|
|
|
|
//on x-axis we go left to right
|
|
|
|
spawnPos += new Vector3(RADIUS*scale, 0);
|
|
|
|
if (!(y == 0 && x == 2)) //don't spawn at the player's position
|
|
|
|
{
|
|
|
|
GameObject mobj = Instantiate(MonkeyPrefab, SpawnRoot.parent);
|
|
|
|
CtrPillowMonkey monkey = mobj.GetComponent<CtrPillowMonkey>();
|
|
|
|
mobj.GetComponent<SortingGroup>().sortingOrder = sorting;
|
|
|
|
mobj.transform.localPosition = new Vector3(spawnPos.x, spawnPos.y, spawnPos.z);
|
|
|
|
mobj.transform.localScale = new Vector3(scale, scale);
|
|
|
|
monkey.row = y;
|
|
|
|
monkey.col = x;
|
|
|
|
monkeys[x, y] = monkey;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// on the y-axis we go front to back (player to the rear)
|
|
|
|
scale -= 0.1f;
|
|
|
|
spawnPos = SpawnRoot.position - new Vector3(RADIUS*3*scale, -RADIUS/3.75f*(y+1), -RADIUS/5f*(y+1));
|
|
|
|
sorting--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public override void OnGameSwitch(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
2023-06-10 19:17:06 +00:00
|
|
|
if (WantThreeJump != double.MinValue)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
DoThreeJump(WantThreeJump, false);
|
2023-06-10 19:17:06 +00:00
|
|
|
WantThreeJump = double.MinValue;
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
2023-06-10 19:17:06 +00:00
|
|
|
if (WantFiveJump != double.MinValue)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
DoFiveJump(WantFiveJump, false);
|
2023-06-10 19:17:06 +00:00
|
|
|
WantFiveJump = double.MinValue;
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
2023-06-10 19:17:06 +00:00
|
|
|
if (WantThrowSequence != double.MinValue)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
DoThrowSequence(WantThrowSequence, false);
|
2023-06-10 19:17:06 +00:00
|
|
|
WantThrowSequence = double.MinValue;
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
2023-06-10 19:17:06 +00:00
|
|
|
if (WantSleepSequence != double.MinValue)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
2022-06-18 06:31:19 +00:00
|
|
|
DoSleepSequence(WantSleepSequence, WantSleepType, WantSleepAction, false);
|
2023-06-10 19:17:06 +00:00
|
|
|
WantSleepSequence = double.MinValue;
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
2023-06-13 22:47:52 +00:00
|
|
|
if (WantInstantSleep != double.MinValue)
|
|
|
|
{
|
|
|
|
DoInstantSleep(WantInstantSleep, WantInstantSleepAction);
|
|
|
|
WantInstantSleep = double.MinValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Bop(double beat, double length, bool doesBop, bool autoBop)
|
|
|
|
{
|
|
|
|
void Bops(bool bop) {
|
|
|
|
Mako.shouldBop = bop;
|
|
|
|
for (int y = 0; y < 5; y++) {
|
|
|
|
for (int x = 0; x < 5; x++) {
|
|
|
|
if (!(y == 0 && x == 2)) monkeys[x, y].shouldBop = bop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Bops(autoBop || doesBop);
|
|
|
|
if (!autoBop && doesBop) {
|
|
|
|
BeatAction.New(gameObject, new List<BeatAction.Action>() {
|
|
|
|
new BeatAction.Action(beat + length, delegate {
|
|
|
|
Bops(false);
|
|
|
|
})
|
|
|
|
});
|
|
|
|
}
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void DoThreeJump(double beat, bool doSound = true)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
Mako.ScheduleJump(beat);
|
|
|
|
if (doSound)
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/three1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/three2", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/three3", beat + 2f),
|
|
|
|
});
|
|
|
|
|
|
|
|
BeatAction.New(Bed, new List<BeatAction.Action>()
|
|
|
|
{
|
|
|
|
new BeatAction.Action(
|
|
|
|
beat,
|
|
|
|
delegate {
|
|
|
|
JumpCol(0, beat);
|
|
|
|
JumpCol(4, beat);
|
|
|
|
}
|
|
|
|
),
|
|
|
|
new BeatAction.Action(
|
|
|
|
beat + 1,
|
|
|
|
delegate {
|
|
|
|
JumpCol(1, beat + 1, 3);
|
|
|
|
JumpCol(3, beat + 1, 3);
|
|
|
|
}
|
|
|
|
),
|
|
|
|
new BeatAction.Action(
|
|
|
|
beat + 2,
|
|
|
|
delegate {
|
|
|
|
JumpCol(2, beat + 2);
|
|
|
|
}
|
|
|
|
),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public static void WarnThreeJump(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/three1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/three2", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/three3", beat + 2f),
|
|
|
|
}, forcePlay:true);
|
|
|
|
WantThreeJump = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void DoFiveJump(double beat, bool doSound = true)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
Mako.ScheduleJump(beat);
|
|
|
|
if (doSound)
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/five1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/five2", beat + 0.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five3", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five4", beat + 1.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five5", beat + 2f)
|
|
|
|
});
|
|
|
|
|
|
|
|
BeatAction.New(Bed, new List<BeatAction.Action>()
|
|
|
|
{
|
|
|
|
new BeatAction.Action( beat, delegate { JumpRow(4, beat); }),
|
|
|
|
new BeatAction.Action( beat + 0.5f, delegate { JumpRow(3, beat + 0.5f, 2); }),
|
|
|
|
new BeatAction.Action( beat + 1f, delegate { JumpRow(2, beat + 1f); }),
|
|
|
|
new BeatAction.Action( beat + 1.5f, delegate { JumpRow(1, beat + 1.5f, 2); }),
|
|
|
|
new BeatAction.Action( beat + 2f, delegate { JumpRow(0, beat + 2f); }),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public static void WarnFiveJump(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/five1", beat),
|
2022-05-28 02:40:16 +00:00
|
|
|
new MultiSound.Sound("pajamaParty/five2", beat + 0.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five3", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five4", beat + 1.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/five5", beat + 2f)
|
|
|
|
}, forcePlay:true);
|
|
|
|
WantFiveJump = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void DoThrowSequence(double beat, bool doSound = true)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
Mako.ScheduleThrow(beat);
|
|
|
|
if (doSound)
|
|
|
|
PlayThrowSequenceSound(beat);
|
|
|
|
|
|
|
|
BeatAction.New(Mako.Player, new List<BeatAction.Action>()
|
|
|
|
{
|
2023-06-13 22:47:52 +00:00
|
|
|
new BeatAction.Action(beat + 2f, delegate { MonkeyCharge(beat + 2f); } ),
|
|
|
|
new BeatAction.Action(beat + 3f, delegate { MonkeyThrow(beat + 3f); } ),
|
2022-05-28 02:40:16 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public static void WarnThrowSequence(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
PlayThrowSequenceSound(beat, true);
|
|
|
|
WantThrowSequence = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public static void PlayThrowSequenceSound(double beat, bool force = false)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/throw1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/throw2", beat + 0.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/throw3", beat + 1f),
|
2022-06-12 19:32:00 +00:00
|
|
|
|
2022-05-28 02:40:16 +00:00
|
|
|
//TODO: change when locales are a thing
|
2022-06-12 19:32:00 +00:00
|
|
|
new MultiSound.Sound("pajamaParty/throw4a", beat + 1.5f),
|
|
|
|
|
2022-05-28 02:40:16 +00:00
|
|
|
new MultiSound.Sound("pajamaParty/charge", beat + 2f),
|
|
|
|
}, forcePlay: force);
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void DoSleepSequence(double beat, bool alt = false, int action = (int) PajamaParty.SleepType.Normal, bool doSound = true)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
2022-06-18 06:31:19 +00:00
|
|
|
Mako.StartSleepSequence(beat, alt, action);
|
|
|
|
MonkeySleep(beat, action);
|
2022-05-28 02:40:16 +00:00
|
|
|
if (doSound)
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta2", beat + 0.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 2.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 4f)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public static void WarnSleepSequence(double beat, bool alt = false, int action = (int) PajamaParty.SleepType.Normal)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta1", beat),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta2", beat + 0.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 1f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 2.5f),
|
|
|
|
new MultiSound.Sound("pajamaParty/siesta3", beat + 4f)
|
|
|
|
}, forcePlay: true);
|
|
|
|
WantSleepSequence = beat;
|
|
|
|
WantSleepType = alt;
|
2023-01-05 04:04:31 +00:00
|
|
|
WantSleepAction = action;
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
|
|
|
|
2023-06-13 22:47:52 +00:00
|
|
|
public void DoInstantSleep(double deslumber, int action)
|
|
|
|
{
|
|
|
|
Mako.anim.Play("MakoSleepJust", -1, 1);
|
|
|
|
for (int y = 0; y < 5; y++) {
|
|
|
|
for (int x = 0; x < 5; x++) {
|
|
|
|
if (!(y == 0 && x == 2)) monkeys[x, y].anim.Play("MonkeySleep02", -1, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (action == 1) return;
|
|
|
|
BeatAction.New(gameObject, new List<BeatAction.Action>() {
|
|
|
|
new BeatAction.Action(deslumber, delegate {
|
|
|
|
Mako.anim.DoScaledAnimationAsync("MakoAwake", 0.5f);
|
|
|
|
SoundByte.PlayOneShotGame("pajamaParty/siestaDone");
|
|
|
|
for (int y = 0; y < 5; y++) {
|
|
|
|
for (int x = 0; x < 5; x++) {
|
|
|
|
if (!(y == 0 && x == 2)) monkeys[x, y].anim.DoScaledAnimationAsync("MonkeyAwake", 0.5f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void WarnInstantSleep(double beat, double length, int action)
|
|
|
|
{
|
|
|
|
WantInstantSleep = beat + length - 1;
|
|
|
|
WantInstantSleepAction = action;
|
|
|
|
}
|
|
|
|
|
2022-05-28 02:40:16 +00:00
|
|
|
public void DoBedImpact()
|
|
|
|
{
|
|
|
|
Bed.GetComponent<Animator>().Play("BedImpact", -1, 0);
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void JumpRow(int row, double beat, int alt = 1)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
if (row > 4 || row < 0)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
{
|
|
|
|
if (!(i == 2 && row == 0))
|
|
|
|
{
|
|
|
|
monkeys[i, row].Jump(beat, alt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void JumpCol(int col, double beat, int alt = 1)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
if (col > 4 || col < 0)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
{
|
|
|
|
if (!(col == 2 && i == 0))
|
|
|
|
{
|
|
|
|
monkeys[col, i].Jump(beat, alt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void MonkeyCharge(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
foreach (CtrPillowMonkey monkey in monkeys)
|
|
|
|
{
|
|
|
|
if (monkey != null)
|
|
|
|
{
|
|
|
|
monkey.Charge(beat);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void MonkeyThrow(double beat)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
foreach (CtrPillowMonkey monkey in monkeys)
|
|
|
|
{
|
|
|
|
if (monkey != null)
|
|
|
|
{
|
|
|
|
monkey.Throw(beat);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:17:06 +00:00
|
|
|
public void MonkeySleep(double beat, int action)
|
2022-05-28 02:40:16 +00:00
|
|
|
{
|
|
|
|
foreach (CtrPillowMonkey monkey in monkeys)
|
|
|
|
{
|
|
|
|
if (monkey != null)
|
|
|
|
{
|
2022-06-18 06:31:19 +00:00
|
|
|
monkey.ReadySleep(beat, action);
|
2022-05-28 02:40:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|