2022-03-04 20:47:40 +00:00
using System.Collections ;
using System.Collections.Generic ;
2022-03-12 01:54:05 +00:00
using System.Linq ;
2022-03-04 20:47:40 +00:00
using UnityEngine ;
using System ;
2023-05-15 19:52:41 +00:00
using DG.Tweening ;
2022-03-04 20:47:40 +00:00
2022-03-14 14:21:05 +00:00
using HeavenStudio.Util ;
2022-03-04 20:47:40 +00:00
2022-04-12 16:14:46 +00:00
namespace HeavenStudio.Games.Loaders
{
using static Minigames ;
public static class AgbUpbeatLoader
{
public static Minigame AddGame ( EventCaller eventCaller ) {
2023-04-02 02:28:23 +00:00
return new Minigame ( "mrUpbeat" , "Mr. Upbeat" , "ffffff" , false , false , new List < GameAction > ( )
2022-04-12 16:14:46 +00:00
{
2023-05-15 19:52:41 +00:00
new GameAction ( "start stepping" , "Start Stepping" )
2022-04-12 16:14:46 +00:00
{
2023-05-15 19:52:41 +00:00
preFunction = delegate { var e = eventCaller . currentEntity ; MrUpbeat . StartStepping ( e . beat , e . length , e [ "force" ] ) ; } ,
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
defaultLength = 4f ,
2023-05-07 04:45:44 +00:00
resizable = true ,
2023-05-15 19:52:41 +00:00
parameters = new List < Param > ( )
{
new Param ( "force" , false , "Force Mr. Downbeat" , "Forces inputs to not be only on the offbeats" ) ,
}
2022-08-21 03:13:52 +00:00
} ,
2023-05-15 19:52:41 +00:00
new GameAction ( "ding" , "Ding!" )
2022-08-21 03:13:52 +00:00
{
2023-05-15 19:52:41 +00:00
function = delegate {
var e = eventCaller . currentEntity ;
MrUpbeat . instance . Ding ( eventCaller . currentEntity [ "toggle" ] , e [ "stopBlipping" ] ) ; } ,
defaultLength = 0.5f ,
parameters = new List < Param > ( )
{
new Param ( "toggle" , false , "Applause" , "Plays an applause sound effect." ) ,
new Param ( "stopBlipping" , true , "Stop Blipping?" , "When the stepping stops, should the blipping stop too?" ) ,
}
} ,
new GameAction ( "changeBG" , "Change Background Color" )
{
function = delegate {
var e = eventCaller . currentEntity ;
MrUpbeat . instance . FadeBackgroundColor ( e [ "start" ] , e [ "end" ] , e . length , e [ "toggle" ] ) ; } ,
defaultLength = 1f ,
2023-05-07 04:45:44 +00:00
resizable = true ,
2023-05-15 19:52:41 +00:00
parameters = new List < Param > ( )
{
new Param ( "start" , new Color ( 0.878f , 0.878f , 0.878f ) , "Start Color" , "The start color for the fade or the color that will be switched to if -instant- is ticked on." ) ,
new Param ( "end" , new Color ( 0.878f , 0.878f , 0.878f ) , "End Color" , "The end color for the fade." ) ,
new Param ( "toggle" , false , "Instant" , "Should the background instantly change color?" )
}
} ,
new GameAction ( "upbeatColors" , "Upbeat Colors" )
{
function = delegate {
var e = eventCaller . currentEntity ;
MrUpbeat . instance . UpbeatColors ( e [ "blipColor" ] , e [ "setShadow" ] , e [ "shadowColor" ] ) ;
} ,
defaultLength = 0.5f ,
parameters = new List < Param > ( )
{
new Param ( "blipColor" , new Color ( 0 , 1f , 0 ) , "Blip Color" , "Change blip color" ) ,
new Param ( "setShadow" , false , "Set Shadow Color?" , "Should Mr. Upbeat's shadow be custom?" ) ,
new Param ( "shadowColor" , new Color ( 1f , 1f , 1f , 0 ) , "Shadow Color" , "If \"Set Shadow Color\" is checked, this will set the shadow's color." ) ,
}
2022-08-21 03:13:52 +00:00
} ,
2023-05-15 19:52:41 +00:00
new GameAction ( "blipEvents" , "Blip Events" )
2022-08-21 03:13:52 +00:00
{
2023-05-15 19:52:41 +00:00
function = delegate {
var e = eventCaller . currentEntity ;
MrUpbeat . instance . BlipEvents ( e [ "letter" ] , e [ "shouldGrow" ] , e [ "resetBlip" ] , e [ "blip" ] ) ;
} ,
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
defaultLength = 0.5f ,
2022-08-21 03:13:52 +00:00
parameters = new List < Param > ( )
{
2023-05-15 19:52:41 +00:00
new Param ( "letter" , "" , "Letter To Appear" , "Which letter to appear on the blip" ) ,
new Param ( "shouldGrow" , true , "Grow Antenna?" , "Should Mr. Upbeat's antenna grow?" ) ,
new Param ( "resetBlip" , false , "Reset Antenna?" , "Should Mr. Upbeat's antenna reset?" ) ,
new Param ( "blip" , true , "Should Blip?" , "Should Mr. Upbeat blip every offbeat?" ) ,
2022-08-21 03:13:52 +00:00
}
} ,
2022-04-12 16:14:46 +00:00
} ) ;
}
}
}
2022-03-14 14:21:05 +00:00
namespace HeavenStudio.Games
2022-03-04 20:47:40 +00:00
{
2022-03-12 04:10:13 +00:00
using Scripts_MrUpbeat ;
2022-03-04 20:47:40 +00:00
public class MrUpbeat : Minigame
{
2023-05-15 19:52:41 +00:00
static List < float > queuedInputs = new List < float > ( ) ;
2023-05-07 04:45:44 +00:00
[Header("References")]
2023-05-15 19:52:41 +00:00
[SerializeField] Animator metronomeAnim ;
[SerializeField] UpbeatMan man ;
[SerializeField] Material blipMaterial ;
[SerializeField] SpriteRenderer bg ;
[SerializeField] SpriteRenderer [ ] shadowSr ;
2023-05-07 04:45:44 +00:00
[Header("Properties")]
2023-05-15 19:52:41 +00:00
private Tween bgColorTween ;
public int stepIterate = 0 ;
public static float downbeatMod = 0.5f ;
public static bool shouldBlip ;
static bool noDing ;
2022-03-12 01:54:05 +00:00
2022-03-04 20:47:40 +00:00
public static MrUpbeat instance ;
private void Awake ( )
{
instance = this ;
2023-05-15 19:52:41 +00:00
blipMaterial . SetColor ( "_ColorBravo" , new Color ( 0 , 1f , 0 ) ) ;
}
private void Start ( )
{
man . Blip ( ) ;
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
}
2022-03-12 01:54:05 +00:00
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
void OnDestroy ( )
{
2023-05-15 19:52:41 +00:00
if ( ! Conductor . instance . isPlaying | | Conductor . instance . isPaused ) {
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
if ( queuedInputs . Count > 0 ) queuedInputs . Clear ( ) ;
2022-03-12 01:54:05 +00:00
}
2023-05-15 19:52:41 +00:00
// these variables wouldn't get reset, even when you go in and out of unity play mode???
shouldBlip = false ;
stepIterate = 0 ;
2022-03-06 17:34:54 +00:00
}
2022-03-05 03:10:10 +00:00
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
public void Update ( )
2022-03-06 17:34:54 +00:00
{
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
var cond = Conductor . instance ;
2023-05-15 19:52:41 +00:00
if ( cond . isPlaying & & ! cond . isPaused ) {
if ( queuedInputs . Count > 0 ) {
foreach ( var input in queuedInputs ) {
string dir = stepIterate % 2 = = 1 ? "Right" : "Left" ;
BeatAction . New ( instance . gameObject , new List < BeatAction . Action > ( ) {
new BeatAction . Action ( input , delegate {
instance . metronomeAnim . DoScaledAnimationAsync ( "MetronomeGo" + dir , 0.5f ) ;
Jukebox . PlayOneShotGame ( "mrUpbeat/metronome" + dir ) ;
ScheduleInput ( input , 0.5f , InputType . STANDARD_DOWN , Success , Miss , Nothing ) ;
if ( MrUpbeat . noDing ) queuedInputs . Add ( input + 1 ) ;
} ) ,
} ) ;
stepIterate + + ;
2023-01-25 15:29:09 +00:00
}
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
queuedInputs . Clear ( ) ;
2022-03-04 22:03:57 +00:00
}
2023-05-07 04:45:44 +00:00
2023-05-15 19:52:41 +00:00
if ( PlayerInput . Pressed ( ) & & ! IsExpectingInputNow ( InputType . STANDARD_DOWN ) ) {
man . Step ( ) ;
2023-05-07 04:45:44 +00:00
}
}
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
}
2022-03-04 22:03:57 +00:00
2023-05-15 19:52:41 +00:00
public void Ding ( bool applause , bool stopBlipping )
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
{
Jukebox . PlayOneShotGame ( "mrUpbeat/ding" ) ;
if ( applause ) Jukebox . PlayOneShot ( "applause" ) ;
2023-05-15 19:52:41 +00:00
if ( stopBlipping ) shouldBlip = false ;
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
}
2022-03-06 17:34:54 +00:00
2023-05-15 19:52:41 +00:00
public static void StartStepping ( float beat , float length , bool force )
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
{
2023-05-15 19:52:41 +00:00
// mr. downbeat stuff. god i hate mr. downbeat
// force != true means that mr. upbeat will always blip/step on the offbeats
beat = force ? beat - 0.5f : MathF . Floor ( beat ) ;
downbeatMod = force ? ( beat % 1 ) : 0.5f ;
if ( GameManager . instance . currentGame ! = "mrUpbeat" ) {
Blipping ( beat , length ) ;
MrUpbeat . shouldBlip = true ;
} else {
BeatAction . New ( instance . gameObject , new List < BeatAction . Action > ( ) {
new BeatAction . Action ( beat , delegate {
MrUpbeat . shouldBlip = true ;
} ) ,
} ) ;
}
var dings = EventCaller . GetAllInGameManagerList ( "mrUpbeat" , new string [ ] { "ding" } ) ;
if ( dings . Count = = 0 ) {
MrUpbeat . noDing = true ;
queuedInputs . Add ( beat + ( force ? length : MathF . Floor ( length ) ) ) ;
return ;
}
MrUpbeat . noDing = false ;
int whichDing = 0 ;
for ( int i = 0 ; i < dings . Count ; i + + ) {
if ( dings [ i ] . beat > beat ) {
whichDing = i ;
break ;
}
}
for ( int i = ( int ) length ; i < dings [ whichDing ] . beat - beat ; i + + ) {
queuedInputs . Add ( beat + i - ( force ? downbeatMod : 0 ) ) ;
2022-03-05 03:10:10 +00:00
}
}
2023-05-15 19:52:41 +00:00
public static void Blipping ( float beat , float length )
2022-03-08 04:46:49 +00:00
{
2023-05-15 19:52:41 +00:00
List < MultiSound . Sound > blips = new List < MultiSound . Sound > ( ) ;
var switchGames = EventCaller . GetAllInGameManagerList ( "gameManager" , new string [ ] { "switchGame" } ) ;
int whichSwitch = 0 ;
if ( switchGames . Count ! = 0 ) {
for ( int i = 0 ; i < switchGames . Count ; i + + ) {
if ( switchGames [ i ] . beat > beat ) {
whichSwitch = i ;
break ;
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
}
2023-01-25 15:29:09 +00:00
}
2022-03-08 04:46:49 +00:00
}
2023-05-15 19:52:41 +00:00
for ( int i = 0 ; i < switchGames [ whichSwitch ] . beat - beat - 0.5f ; i + + ) {
blips . Add ( new MultiSound . Sound ( "mrUpbeat/blip" , beat + 0.5f + i ) ) ;
2022-03-08 04:46:49 +00:00
}
2023-05-15 19:52:41 +00:00
MultiSound . Play ( blips . ToArray ( ) , forcePlay : true ) ;
2022-03-08 04:46:49 +00:00
}
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
public void Success ( PlayerActionEvent caller , float state )
2022-03-05 03:10:10 +00:00
{
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
man . Step ( ) ;
2022-03-04 22:03:57 +00:00
}
2022-03-04 20:47:40 +00:00
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
public void Miss ( PlayerActionEvent caller )
2022-03-06 19:48:39 +00:00
{
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
man . Fall ( ) ;
2022-03-06 19:48:39 +00:00
}
2022-03-06 19:37:50 +00:00
2023-05-15 19:52:41 +00:00
public void ChangeBackgroundColor ( Color color , float beats )
{
var seconds = Conductor . instance . secPerBeat * beats ;
if ( bgColorTween ! = null )
bgColorTween . Kill ( true ) ;
if ( seconds = = 0 ) {
bg . color = color ;
} else {
bgColorTween = bg . DOColor ( color , seconds ) ;
}
}
public void FadeBackgroundColor ( Color start , Color end , float beats , bool instant )
{
ChangeBackgroundColor ( start , 0f ) ;
if ( ! instant ) ChangeBackgroundColor ( end , beats ) ;
}
public void UpbeatColors ( Color blipColor , bool setShadow , Color shadowColor )
{
blipMaterial . SetColor ( "_ColorBravo" , blipColor ) ;
if ( setShadow ) foreach ( var shadow in shadowSr ) {
shadow . color = new Color ( shadowColor . r , shadowColor . g , shadowColor . b , 1 ) ;
}
}
public void BlipEvents ( string inputLetter , bool shouldGrow , bool resetBlip , bool blip )
2022-03-06 19:37:50 +00:00
{
2023-05-15 19:52:41 +00:00
if ( shouldGrow & & man . blipSize < 4 ) man . blipSize + + ;
if ( resetBlip ) man . blipSize = 0 ;
man . blipString = inputLetter ;
shouldBlip = blip ;
2022-03-06 19:37:50 +00:00
}
Playable lockstep + Mr. Upbeat fix! (Lockstep is missing recolorable switchsteppers, many of them, and bach portraits) (#227)
* 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
* fix
* FIXED???
* FIXED FOR REAL
* Begun fixing lockstep, just needs small fixes and features
* Smol fix-ish
* Started work on mr upbeat
* MrUpbeat fixed, finishing up lockstep
* Added BG to lockstep
* Added bg colour change
* Done with my part
2023-01-23 22:48:05 +00:00
public void Nothing ( PlayerActionEvent caller ) { }
2022-03-04 20:47:40 +00:00
}
}