2023-01-20 15:48:30 +00:00
|
|
|
using HeavenStudio.Util;
|
2023-10-29 19:44:47 +00:00
|
|
|
using HeavenStudio.InputSystem;
|
2023-01-20 15:48:30 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
2023-07-19 01:09:02 +00:00
|
|
|
using Jukebox;
|
2023-01-20 15:48:30 +00:00
|
|
|
|
|
|
|
namespace HeavenStudio.Games.Loaders
|
|
|
|
{
|
|
|
|
using static Minigames;
|
|
|
|
public static class RvlTambourineLoader
|
|
|
|
{
|
|
|
|
public static Minigame AddGame(EventCaller eventCaller)
|
|
|
|
{
|
2023-04-02 02:28:23 +00:00
|
|
|
return new Minigame("tambourine", "Tambourine", "388cd0", false, false, new List<GameAction>()
|
2023-01-20 15:48:30 +00:00
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new GameAction("bop", "Bop")
|
|
|
|
{
|
|
|
|
function = delegate {var e = eventCaller.currentEntity; Tambourine.instance.Bop(e.beat, e.length, e["whoBops"], e["whoBopsAuto"]); },
|
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
|
|
|
new Param("whoBops", Tambourine.WhoBops.Both, "Bop", "Set the character(s) to bop for the duration of this event."),
|
|
|
|
new Param("whoBopsAuto", Tambourine.WhoBops.None, "Bop (Auto)", "Set the character(s) to automatically bop until another Bop event is reached."),
|
|
|
|
},
|
|
|
|
resizable = true,
|
|
|
|
priority = 4
|
|
|
|
},
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
new GameAction("beat intervals", "Start Interval")
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
preFunction = delegate {var e = eventCaller.currentEntity; Tambourine.PreInterval(e.beat, e.length, e["auto"]); },
|
2023-09-08 14:27:07 +00:00
|
|
|
defaultLength = 7f,
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
resizable = true,
|
2023-07-19 01:09:02 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("auto", true, "Auto Pass Turn", "Toggle if the turn should be passed automatically at the end of the start interval.")
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
},
|
|
|
|
new GameAction("shake", "Shake")
|
|
|
|
{
|
|
|
|
defaultLength = 0.5f,
|
|
|
|
},
|
|
|
|
new GameAction("hit", "Hit")
|
|
|
|
{
|
|
|
|
defaultLength = 0.5f,
|
|
|
|
},
|
|
|
|
new GameAction("pass turn", "Pass Turn")
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
preFunction = delegate
|
|
|
|
{
|
|
|
|
Tambourine.PrePassTurn(eventCaller.currentEntity.beat);
|
|
|
|
},
|
2023-09-08 14:27:07 +00:00
|
|
|
resizable = true,
|
2023-07-19 01:09:02 +00:00
|
|
|
preFunctionLength = 1f
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
},
|
|
|
|
new GameAction("success", "Success")
|
|
|
|
{
|
|
|
|
function = delegate {var e = eventCaller.currentEntity; Tambourine.instance.SuccessFace(e.beat); },
|
|
|
|
defaultLength = 1f,
|
|
|
|
priority = 4,
|
|
|
|
},
|
2023-04-23 20:17:21 +00:00
|
|
|
new GameAction("fade background", "Background Color")
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-08-12 03:30:03 +00:00
|
|
|
function = delegate {var e = eventCaller.currentEntity; Tambourine.instance.BackgroundColor(e.beat, e.length, e["colorStart"], e["colorEnd"], e["ease"]); },
|
2023-04-23 20:17:21 +00:00
|
|
|
defaultLength = 4f,
|
|
|
|
resizable = true,
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("colorStart", Color.white, "Start Color", "Set the color at the start of the event."),
|
|
|
|
new Param("colorEnd", Tambourine.defaultBGColor, "End Color", "Set the color at the end of the event."),
|
|
|
|
new Param("ease", Util.EasingFunction.Ease.Linear, "Ease", "Set the easing of the action.")
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
},
|
2023-05-28 17:34:44 +00:00
|
|
|
},
|
|
|
|
new List<string>() {"rvl", "repeat"},
|
|
|
|
"rvldrum", "en",
|
|
|
|
new List<string>() {}
|
|
|
|
);
|
2023-01-20 15:48:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace HeavenStudio.Games
|
|
|
|
{
|
|
|
|
public class Tambourine : Minigame
|
|
|
|
{
|
2024-03-04 03:50:46 +00:00
|
|
|
public static Color defaultBGColor = new Color(0.22f, 0.55f, 0.82f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
|
2023-01-20 15:48:30 +00:00
|
|
|
[Header("Components")]
|
|
|
|
[SerializeField] Animator handsAnimator;
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
[SerializeField] SpriteRenderer bg;
|
|
|
|
[SerializeField] Animator monkeyAnimator;
|
|
|
|
[SerializeField] ParticleSystem flowerParticles;
|
|
|
|
[SerializeField] GameObject happyFace;
|
|
|
|
[SerializeField] GameObject sadFace;
|
|
|
|
[SerializeField] Animator sweatAnimator;
|
|
|
|
[SerializeField] Animator frogAnimator;
|
|
|
|
|
|
|
|
[Header("Variables")]
|
|
|
|
float misses;
|
|
|
|
bool frogPresent;
|
2023-03-07 17:22:32 +00:00
|
|
|
bool monkeyGoBop;
|
|
|
|
bool handsGoBop;
|
|
|
|
public GameEvent bop = new GameEvent();
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
|
|
|
|
public enum WhoBops
|
|
|
|
{
|
|
|
|
Monkey,
|
|
|
|
Player,
|
2023-03-07 17:22:32 +00:00
|
|
|
Both,
|
|
|
|
None
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-01-20 15:48:30 +00:00
|
|
|
public static Tambourine instance;
|
|
|
|
|
2023-10-29 19:44:47 +00:00
|
|
|
const int IA_AltPress = IAMAXCAT;
|
|
|
|
protected static bool IA_TouchNrmPress(out double dt)
|
|
|
|
{
|
|
|
|
return PlayerInput.GetTouchDown(InputController.ActionsTouch.Tap, out dt)
|
|
|
|
&& !instance.IsExpectingInputNow(InputAction_Alt);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected static bool IA_PadAltPress(out double dt)
|
|
|
|
{
|
|
|
|
return PlayerInput.GetPadDown(InputController.ActionsPad.South, out dt);
|
|
|
|
}
|
|
|
|
protected static bool IA_BatonAltPress(out double dt)
|
|
|
|
{
|
|
|
|
return PlayerInput.GetSqueezeDown(out dt);
|
|
|
|
}
|
|
|
|
protected static bool IA_TouchAltPress(out double dt)
|
|
|
|
{
|
|
|
|
return PlayerInput.GetTouchDown(InputController.ActionsTouch.Tap, out dt)
|
|
|
|
&& instance.IsExpectingInputNow(InputAction_Alt);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static PlayerInput.InputAction InputAction_Nrm =
|
|
|
|
new("RvlDrumAlt", new int[] { IAPressCat, IAPressCat, IAPressCat },
|
|
|
|
IA_PadBasicPress, IA_TouchNrmPress, IA_BatonBasicPress);
|
|
|
|
public static PlayerInput.InputAction InputAction_Alt =
|
|
|
|
new("RvlDrumAlt", new int[] { IA_AltPress, IA_AltPress, IA_AltPress },
|
|
|
|
IA_PadAltPress, IA_TouchAltPress, IA_BatonAltPress);
|
|
|
|
|
2023-01-20 15:48:30 +00:00
|
|
|
void Awake()
|
|
|
|
{
|
|
|
|
instance = this;
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
sweatAnimator.Play("NoSweat", 0, 0);
|
|
|
|
frogAnimator.Play("FrogExited", 0, 0);
|
2023-01-21 20:37:09 +00:00
|
|
|
handsAnimator.Play("Idle", 0, 0);
|
|
|
|
monkeyAnimator.Play("MonkeyIdle", 0, 0);
|
2023-01-20 15:48:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Update()
|
|
|
|
{
|
2023-08-12 03:30:03 +00:00
|
|
|
BackgroundColorUpdate();
|
2023-03-07 17:22:32 +00:00
|
|
|
if (Conductor.instance.ReportBeat(ref bop.lastReportedBeat, bop.startBeat % 1))
|
|
|
|
{
|
|
|
|
if (monkeyGoBop)
|
|
|
|
{
|
|
|
|
monkeyAnimator.Play("MonkeyBop", 0, 0);
|
|
|
|
}
|
|
|
|
if (handsGoBop)
|
|
|
|
{
|
|
|
|
handsAnimator.Play("Bop", 0, 0);
|
|
|
|
}
|
|
|
|
}
|
2023-10-29 19:44:47 +00:00
|
|
|
if (PlayerInput.GetIsAction(InputAction_Nrm) && !IsExpectingInputNow(InputAction_Nrm))
|
2023-01-20 15:48:30 +00:00
|
|
|
{
|
|
|
|
handsAnimator.Play("Shake", 0, 0);
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/shake/{UnityEngine.Random.Range(1, 6)}");
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
sweatAnimator.Play("Sweating", 0, 0);
|
|
|
|
SummonFrog();
|
2023-01-25 03:54:19 +00:00
|
|
|
ScoreMiss();
|
2023-07-19 01:09:02 +00:00
|
|
|
if (!IntervalIsGoingOn())
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
sadFace.SetActive(true);
|
|
|
|
}
|
2023-01-20 15:48:30 +00:00
|
|
|
}
|
2023-10-29 19:44:47 +00:00
|
|
|
else if (PlayerInput.GetIsAction(InputAction_Alt) && !IsExpectingInputNow(InputAction_Alt))
|
2023-01-20 15:48:30 +00:00
|
|
|
{
|
|
|
|
handsAnimator.Play("Smack", 0, 0);
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/hit/{UnityEngine.Random.Range(1, 6)}");
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
sweatAnimator.Play("Sweating", 0, 0);
|
|
|
|
SummonFrog();
|
2023-01-25 03:54:19 +00:00
|
|
|
ScoreMiss();
|
2023-07-19 01:09:02 +00:00
|
|
|
if (!IntervalIsGoingOn())
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
sadFace.SetActive(true);
|
|
|
|
}
|
|
|
|
}
|
2023-07-19 01:09:02 +00:00
|
|
|
|
|
|
|
if (passedTurns.Count > 0)
|
|
|
|
{
|
|
|
|
foreach (var pass in passedTurns)
|
|
|
|
{
|
|
|
|
PassTurnStandalone(pass);
|
|
|
|
}
|
|
|
|
passedTurns.Clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private bool IntervalIsGoingOn()
|
|
|
|
{
|
|
|
|
double beat = Conductor.instance.songPositionInBeats;
|
|
|
|
return EventCaller.GetAllInGameManagerList("tambourine", new string[] { "beat intervals" }).Find(x => beat >= x.beat && beat < x.beat + x.length) != null;
|
|
|
|
}
|
|
|
|
|
|
|
|
private List<RiqEntity> GetAllInputsBetweenBeat(double beat, double endBeat)
|
|
|
|
{
|
|
|
|
return EventCaller.GetAllInGameManagerList("tambourine", new string[] { "shake", "hit" }).FindAll(x => x.beat >= beat && x.beat < endBeat);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-19 01:09:02 +00:00
|
|
|
public static void PreInterval(double beat, float interval, bool autoPassTurn)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
if (GameManager.instance.currentGame == "tambourine")
|
|
|
|
{
|
|
|
|
instance.StartInterval(beat, interval, beat, autoPassTurn);
|
|
|
|
}
|
|
|
|
else
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
queuedIntervals.Add(new QueuedInterval()
|
|
|
|
{
|
|
|
|
beat = beat,
|
|
|
|
interval = interval,
|
|
|
|
autoPassTurn = autoPassTurn
|
|
|
|
});
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-19 01:09:02 +00:00
|
|
|
public override void OnGameSwitch(double beat)
|
|
|
|
{
|
|
|
|
if (queuedIntervals.Count > 0)
|
|
|
|
{
|
|
|
|
foreach (var interval in queuedIntervals)
|
|
|
|
{
|
|
|
|
StartInterval(interval.beat, interval.interval, beat, interval.autoPassTurn);
|
|
|
|
}
|
|
|
|
queuedIntervals.Clear();
|
|
|
|
}
|
2023-08-12 03:30:03 +00:00
|
|
|
PersistColor(beat);
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private struct QueuedInterval
|
|
|
|
{
|
|
|
|
public double beat;
|
|
|
|
public float interval;
|
|
|
|
public bool autoPassTurn;
|
|
|
|
}
|
|
|
|
|
|
|
|
private static List<QueuedInterval> queuedIntervals = new();
|
|
|
|
|
|
|
|
private void StartInterval(double beat, float interval, double gameSwitchBeat, bool autoPassTurn)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
List<BeatAction.Action> actions = new()
|
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate
|
|
|
|
{
|
|
|
|
DesummonFrog();
|
|
|
|
sadFace.SetActive(false);
|
|
|
|
})
|
|
|
|
};
|
|
|
|
|
|
|
|
var relevantInputs = GetAllInputsBetweenBeat(beat, beat + interval);
|
|
|
|
relevantInputs.Sort((x, y) => x.beat.CompareTo(y.beat));
|
|
|
|
|
2024-02-11 05:24:52 +00:00
|
|
|
List<MultiSound.Sound> sounds = new();
|
2023-07-19 01:09:02 +00:00
|
|
|
for (int i = 0; i < relevantInputs.Count; i++)
|
|
|
|
{
|
|
|
|
bool isHit = relevantInputs[i].datamodel == "tambourine/hit";
|
|
|
|
double inputBeat = relevantInputs[i].beat;
|
|
|
|
if (inputBeat >= gameSwitchBeat)
|
|
|
|
{
|
|
|
|
actions.Add(new BeatAction.Action(inputBeat, delegate
|
|
|
|
{
|
|
|
|
MonkeyInput(inputBeat, isHit);
|
|
|
|
}));
|
2024-02-11 05:24:52 +00:00
|
|
|
sounds.Add(new MultiSound.Sound($"tambourine/monkey/{(isHit ? "hit" : "shake")}/m{(isHit ? "h" : "s")}{UnityEngine.Random.Range(1, 6)}", inputBeat));
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, actions);
|
2024-02-11 05:24:52 +00:00
|
|
|
MultiSound.Play(sounds.ToArray(), true, true);
|
2023-07-19 01:09:02 +00:00
|
|
|
|
|
|
|
if (autoPassTurn)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-09-08 14:27:07 +00:00
|
|
|
PassTurn(beat + interval, beat, interval, 1);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void MonkeyInput(double beat, bool hit)
|
|
|
|
{
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
if (hit)
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
monkeyAnimator.DoScaledAnimationAsync("MonkeySmack", 0.5f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
monkeyAnimator.DoScaledAnimationAsync("MonkeyShake", 0.5f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private RiqEntity GetLastIntervalBeforeBeat(double beat)
|
|
|
|
{
|
|
|
|
return EventCaller.GetAllInGameManagerList("tambourine", new string[] { "beat intervals" }).FindLast(x => x.beat <= beat);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void PrePassTurn(double beat)
|
|
|
|
{
|
|
|
|
if (GameManager.instance.currentGame == "tambourine")
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
instance.PassTurnStandalone(beat);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
passedTurns.Add(beat);
|
|
|
|
}
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-19 01:09:02 +00:00
|
|
|
private static List<double> passedTurns = new();
|
|
|
|
|
|
|
|
private void PassTurnStandalone(double beat)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
var lastInterval = GetLastIntervalBeforeBeat(beat);
|
2023-09-08 14:27:07 +00:00
|
|
|
float length = EventCaller.GetAllInGameManagerList("tambourine", new string[] { "pass turn" }).Find(x => x.beat == beat).length;
|
|
|
|
if (lastInterval != null) PassTurn(beat, lastInterval.beat, lastInterval.length, length);
|
2023-07-19 01:09:02 +00:00
|
|
|
}
|
|
|
|
|
2023-09-08 14:27:07 +00:00
|
|
|
private void PassTurn(double beat, double intervalBeat, float intervalLength, float length)
|
2023-07-19 01:09:02 +00:00
|
|
|
{
|
2024-02-11 05:24:52 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/monkey/turnPass/tp{UnityEngine.Random.Range(1, 6)}", beat);
|
2023-07-19 01:09:02 +00:00
|
|
|
List<BeatAction.Action> actions = new()
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
new BeatAction.Action(beat, delegate
|
|
|
|
{
|
|
|
|
monkeyAnimator.DoScaledAnimationAsync("MonkeyPassTurn", 0.5f);
|
|
|
|
happyFace.SetActive(true);
|
|
|
|
}),
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
new BeatAction.Action(beat + 0.3f, delegate { happyFace.SetActive(false); })
|
2023-07-19 01:09:02 +00:00
|
|
|
};
|
|
|
|
var relevantInputs = GetAllInputsBetweenBeat(intervalBeat, intervalBeat + intervalLength);
|
|
|
|
relevantInputs.Sort((x, y) => x.beat.CompareTo(y.beat));
|
|
|
|
for (int i = 0; i < relevantInputs.Count; i++)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
bool isHit = relevantInputs[i].datamodel == "tambourine/hit";
|
|
|
|
double inputBeat = relevantInputs[i].beat - intervalBeat;
|
|
|
|
actions.Add(new BeatAction.Action(inputBeat, delegate
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-10-29 19:44:47 +00:00
|
|
|
if (isHit) ScheduleInput(beat + length, inputBeat, InputAction_Alt, JustHit, Miss, Nothing);
|
|
|
|
else ScheduleInput(beat + length, inputBeat, InputAction_Nrm, JustShake, Miss, Nothing);
|
2023-09-08 14:27:07 +00:00
|
|
|
Bop(beat + length + inputBeat, 1, (int)WhoBops.Monkey, (int)WhoBops.None);
|
2023-07-19 01:09:02 +00:00
|
|
|
}));
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, actions);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void Bop(double beat, float length, int whoBops, int whoBopsAuto)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-03-07 17:22:32 +00:00
|
|
|
monkeyGoBop = whoBopsAuto == (int)WhoBops.Monkey || whoBopsAuto == (int)WhoBops.Both;
|
|
|
|
handsGoBop = whoBopsAuto == (int)WhoBops.Player || whoBopsAuto == (int)WhoBops.Both;
|
|
|
|
for (int i = 0; i < length; i++)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2023-03-07 17:22:32 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat + i, delegate
|
|
|
|
{
|
|
|
|
switch (whoBops)
|
|
|
|
{
|
|
|
|
case (int) WhoBops.Monkey:
|
2023-07-19 01:09:02 +00:00
|
|
|
monkeyAnimator.DoScaledAnimationAsync("MonkeyBop", 0.5f);
|
2023-03-07 17:22:32 +00:00
|
|
|
break;
|
|
|
|
case (int) WhoBops.Player:
|
2023-07-19 01:09:02 +00:00
|
|
|
handsAnimator.DoScaledAnimationAsync("Bop", 0.5f);
|
2023-03-07 17:22:32 +00:00
|
|
|
break;
|
|
|
|
case (int) WhoBops.Both:
|
2023-07-19 01:09:02 +00:00
|
|
|
monkeyAnimator.DoScaledAnimationAsync("MonkeyBop", 0.5f);
|
|
|
|
handsAnimator.DoScaledAnimationAsync("Bop", 0.5f);
|
2023-03-07 17:22:32 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
2023-03-07 17:22:32 +00:00
|
|
|
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void SuccessFace(double beat)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
DesummonFrog();
|
|
|
|
if (misses > 0) return;
|
|
|
|
flowerParticles.Play();
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/turnPass/sweep");
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
MultiSound.Play(new MultiSound.Sound[]
|
|
|
|
{
|
|
|
|
new MultiSound.Sound("tambourine/player/turnPass/note1", beat),
|
|
|
|
new MultiSound.Sound("tambourine/player/turnPass/note2", beat + 0.1f),
|
|
|
|
new MultiSound.Sound("tambourine/player/turnPass/note3", beat + 0.2f),
|
2024-05-08 19:26:43 +00:00
|
|
|
new MultiSound.Sound("tambourine/player/turnPass/note4", beat + 0.3f),
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}, forcePlay: true);
|
|
|
|
happyFace.SetActive(true);
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat + 1, delegate { happyFace.SetActive(false); }),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public void JustHit(PlayerActionEvent caller, float state)
|
|
|
|
{
|
|
|
|
if (state >= 1f || state <= -1f)
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
handsAnimator.DoScaledAnimationAsync("Smack", 0.5f);
|
2024-02-11 05:24:52 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/hit/ph{UnityEngine.Random.Range(1, 6)}");
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame("tambourine/miss");
|
2023-07-19 01:09:02 +00:00
|
|
|
sweatAnimator.DoScaledAnimationAsync("Sweating", 0.5f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
misses++;
|
2023-07-19 01:09:02 +00:00
|
|
|
if (!IntervalIsGoingOn())
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
sadFace.SetActive(true);
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Success(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void JustShake(PlayerActionEvent caller, float state)
|
|
|
|
{
|
|
|
|
if (state >= 1f || state <= -1f)
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
handsAnimator.DoScaledAnimationAsync("Shake", 0.5f);
|
2024-02-11 05:24:52 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/shake/ps{UnityEngine.Random.Range(1, 6)}");
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame("tambourine/miss");
|
2023-07-19 01:09:02 +00:00
|
|
|
sweatAnimator.DoScaledAnimationAsync("Sweating", 0.5f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
misses++;
|
2023-07-19 01:09:02 +00:00
|
|
|
if (!IntervalIsGoingOn())
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
sadFace.SetActive(true);
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Success(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Success(bool hit)
|
|
|
|
{
|
|
|
|
sadFace.SetActive(false);
|
|
|
|
if (hit)
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
handsAnimator.DoScaledAnimationAsync("Smack", 0.5f);
|
2024-02-11 05:24:52 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/hit/ph{UnityEngine.Random.Range(1, 6)}");
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-07-19 01:09:02 +00:00
|
|
|
handsAnimator.DoScaledAnimationAsync("Shake", 0.5f);
|
2024-02-11 05:24:52 +00:00
|
|
|
SoundByte.PlayOneShotGame($"tambourine/player/shake/ps{UnityEngine.Random.Range(1, 6)}");
|
2023-01-20 15:48:30 +00:00
|
|
|
}
|
|
|
|
}
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
|
|
|
|
public void Miss(PlayerActionEvent caller)
|
|
|
|
{
|
|
|
|
SummonFrog();
|
2023-07-19 01:09:02 +00:00
|
|
|
sweatAnimator.DoScaledAnimationAsync("Sweating", 0.5f);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
misses++;
|
2023-07-19 01:09:02 +00:00
|
|
|
if (!IntervalIsGoingOn())
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
|
|
|
sadFace.SetActive(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-05 18:04:14 +00:00
|
|
|
private ColorEase bgColorEase = new(defaultBGColor);
|
2023-08-12 03:30:03 +00:00
|
|
|
|
|
|
|
//call this in update
|
|
|
|
private void BackgroundColorUpdate()
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2024-03-04 03:50:46 +00:00
|
|
|
bg.color = bgColorEase.GetColor();
|
2023-08-12 03:30:03 +00:00
|
|
|
}
|
|
|
|
|
2024-03-04 03:50:46 +00:00
|
|
|
public void BackgroundColor(double beat, float length, Color startColor, Color endColor, int ease)
|
2023-08-12 03:30:03 +00:00
|
|
|
{
|
2024-03-04 03:50:46 +00:00
|
|
|
bgColorEase = new(beat, length, startColor, endColor, ease);
|
2023-08-12 03:30:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//call this in OnPlay(double beat) and OnGameSwitch(double beat)
|
|
|
|
private void PersistColor(double beat)
|
|
|
|
{
|
|
|
|
var allEventsBeforeBeat = EventCaller.GetAllInGameManagerList("tambourine", new string[] { "fade background" }).FindAll(x => x.beat < beat);
|
|
|
|
if (allEventsBeforeBeat.Count > 0)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-08-12 03:30:03 +00:00
|
|
|
allEventsBeforeBeat.Sort((x, y) => x.beat.CompareTo(y.beat)); //just in case
|
|
|
|
var lastEvent = allEventsBeforeBeat[^1];
|
|
|
|
BackgroundColor(lastEvent.beat, lastEvent.length, lastEvent["colorStart"], lastEvent["colorEnd"], lastEvent["ease"]);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-12 03:30:03 +00:00
|
|
|
public override void OnPlay(double beat)
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
{
|
2023-08-12 03:30:03 +00:00
|
|
|
PersistColor(beat);
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void SummonFrog()
|
|
|
|
{
|
|
|
|
if (frogPresent) return;
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame("tambourine/frog");
|
Added Tambourine, only missing HD frog sprites. Also fixed Tambourine + Working Dough Icons (#216)
* Added sfx, sprites and folders neccesary. And also made an empty game object for working dough
* Started work on the background
* Implemented all unanimated sprites
* Added Init
* Added Prefabs
* Added Jumping and Idle Animatins for the Dough Dudes
* SmallFix
* Start Interval Event Implemented
* Added Audio and Small and Big Ball events
* Code Improvement + starting making the balls
* Added bezier curves
* Added First Rendition of Balls
* Added NPC Balls and starting doing small transporting animations
* SmallFixes
* SmallSoundChanges
* Implemented Audio and prefunction, not done with it though
* In process of fixing set interval
* Added more prefunction stuff and also started working on player input
* Tried adding player balls, not done, many bugs to fix
* Reverted trying to make the playerenterdoughball handle inputs, gonna do it through the main script instead
* Sat up input code for later
* Input works now! Need to add barely and wrong input animations and fix bugs
* Tiny fix
* Added first draft of wronginput animations
* Finished all input anims, trying to fix bugs
* Added finished Spaceship animations
* Added Mr Game and Watch WIP and lifting dough dudes
* Finished GANDW, fixed some bugs and still fixing bugs, almost done!
* DONE
* Begun development on tambourine
* Working Dough Polish
* Added many animations for tambourine
* Added Events
* Inputs added, near completion
* Miss Anims
* Animation changes
* DONE
2023-01-21 19:41:57 +00:00
|
|
|
frogAnimator.Play("FrogEnter", 0, 0);
|
|
|
|
frogPresent = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void DesummonFrog()
|
|
|
|
{
|
|
|
|
if (!frogPresent) return;
|
|
|
|
frogAnimator.Play("FrogExit", 0, 0);
|
|
|
|
frogPresent = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Nothing(PlayerActionEvent caller) {}
|
2023-01-20 15:48:30 +00:00
|
|
|
}
|
|
|
|
}
|