public override void OnPrimaryActionFinished() { Juicer.ShakeCamera(0.5f); Juicer.PlaySound(1); GameConductor.KillNPC(); transform.parent.parent.Translate(0, -10, 0); }
public IEnumerator OnUpdate() { yield return(new WaitForSeconds(1)); bool isFinished = false; ScreenFader.FadeInThen(() => { Juicer.ShakeCamera(0.5f); MessageController.AddMessage("yo."); MessageController.AddMessage("this is game peanutbutters."); MessageController.AddMessage("it goes great with game jams."); MessageController.AddMessage("you may have noticed the camera and music change. very easy to do with cinemachine and the juicer.", postAction: () => { GameConductor.CameraStateTrigger("NextState"); }); MessageController.AddMessage("these bois are moving with the simplemover script. it's an easy way to get some nice motion with little effort. useful for pickups, simple enemies, etc.", postAction: () => { GameConductor.CameraStateTrigger("NextState"); }); MessageController.AddMessage("this is a fun script called textjacker. it jacks up text.", postAction: () => { GameConductor.CameraStateTrigger("NextState"); }); MessageController.AddMessage("after this message finishes, the game will transition to the next game state. a basic player object will be created.", postAction: () => isFinished = true); }); do { yield return(new WaitForSeconds(1)); } while (!isFinished); }
private IEnumerator Sprout() { Juicer.ShakeCamera(1); yield return(new WaitForSeconds(2)); DataDump.Set("LocalPetGrowthStage", 5); Juicer.ShakeCamera(3); }
private IEnumerator Rebirth() { Juicer.ShakeCamera(1); yield return(new WaitForSeconds(2)); DataDump.Set("LocalPetGrowthStage", 0); DataDump.Set("LocalPetPokes", 0); Juicer.ShakeCamera(3); }
private IEnumerator Grow() { Juicer.ShakeCamera(0.5f); MessageController.AddMessage("it's growing!!"); ImpulseMover.GoHomeHack(); yield return(new WaitForSeconds(3)); DataDump.Set("LocalPetGrowthStage", 3); Juicer.ShakeCamera(3); }
private IEnumerator Die() { CloseFoodMenu(); Juicer.ShakeCamera(1); MessageController.AddMessage("oh no..."); ImpulseMover.GoHomeHack(); yield return(new WaitForSeconds(3)); int nextGrowthTime = CurrentTime + (MinutesSpentDead * 60); DataDump.Set("LocalPetNextGrowthTime", nextGrowthTime); DataDump.Set("LocalPetGrowthStage", (int)GrowthStage.Dead); Juicer.ShakeCamera(3); }
IEnumerator DrunkSequence() { GameConductor.CameraStateTrigger("drunk"); GameConductor.FreezePlayer(); yield return(new WaitForSeconds(2)); Juicer.ShakeCamera(0.3f); Juicer.PlaySound(0); passedOutGuy.transform.position = transform.position; transform.parent.position = otherStart; yield return(new WaitForSeconds(2)); GameConductor.UnfreezePlayer(); GameConductor.CameraStateTrigger("FocusPlayer"); }
public void OnEnter() { player = GameObject.Instantiate(PlayerPrototype); player.transform.position = PlayerSpawnLocation; Juicer.CreateFx(0, PlayerSpawnLocation); Juicer.ShakeCamera(0.5f); MusicBox.ChangeMusic((int)Song.Boss); DataDump.Set("HP", maxHP); DataDump.Set("ScaledHP", 1.0f); var cam = GameObject.Find("CinemachineStateCamera/GameCam").GetComponent <CinemachineVirtualCamera>(); cam.Follow = player.transform; cam.LookAt = player.transform; GameConductor.SetShowHud(true); }
private IEnumerator Hatch() { Juicer.ShakeCamera(1); yield return(new WaitForSeconds(2)); DataDump.Set("LocalPetGrowthStage", 2); DataDump.Set("LocalPetFullness", InitialFullness); DataDump.Set("LocalPetBerriesEaten", 0); DataDump.Set("LocalPetCookiesEaten", 0); DataDump.Set("LocalPetFishEaten", 0); DataDump.Set("LocalPetHappiness", 0); DataDump.Set("LocalPetAnnoyance", 0); int nextGrowthTime = CurrentTime + (MinutesSpentAsChild * 60); DataDump.Set("LocalPetNextGrowthTime", nextGrowthTime); Juicer.ShakeCamera(3); }
public IEnumerator OnUpdate() { GameConductor.FreezePlayer(); GameConductor.CameraStateTrigger("OblexCam"); yield return(new WaitForSeconds(2)); // todo: shwink sound and animations GameConductor.GetGate.transform.Translate(0, -10, 0); Juicer.PlaySound(1); Juicer.ShakeCamera(0.1f); yield return(new WaitForSeconds(1)); GameConductor.CameraStateTrigger("NextState"); yield return(new WaitForSeconds(1)); Juicer.PlaySound(0); Juicer.ShakeCamera(1); yield return(new WaitForSeconds(1)); Juicer.PlaySound(1); Juicer.PlaySound(0); GameConductor.GetCurtain.transform.Translate(0, -10, 0); foreach (var npc in GameConductor.GetBandNPCs) { npc.transform.Translate(0, -10, 0); } GameConductor.GetOblexBody.SetActive(true); foreach (var npc in GameConductor.GetNPCs) { npc.GetComponentInChildren <OblexNPC>()?.Activate(); } // todo: disable doors GameConductor.IsOblexRevealed = true; yield return(new WaitForSeconds(3)); GameConductor.UnfreezePlayer(); GameConductor.CameraStateTrigger("FocusPlayer"); while (GameConductor.NPCsKilled < 11) { yield return(null); } }
public IEnumerator OnUpdate() { do { int currentHP = DataDump.Get <int>("HP") - 1; DataDump.Set("HP", currentHP); DataDump.Set("ScaledHP", (float)currentHP / maxHP); yield return(new WaitForSeconds(1)); } while (DataDump.Get <int>("HP") > 0); Juicer.CreateFx(0, player.transform.position); GameObject.Destroy(player); Juicer.ShakeCamera(1.5f); bool readyToMoveOn = false; MessageController.AddMessage("butterboi is dead now.", postAction: () => readyToMoveOn = true); while (!readyToMoveOn) { yield return(null); } }
public void OnEnter() { Juicer.ShakeCamera(0.5f); }