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-06-04 04:30:42 +00:00
return new Minigame ( "mrUpbeat" , "Mr. Upbeat" , "E0E0E0" , false , false , new List < GameAction > ( )
2022-04-12 16:14:46 +00:00
{
2023-06-04 04:30:42 +00:00
new GameAction ( "prepare" , "Prepare" )
2022-04-12 16:14:46 +00:00
{
2023-06-04 04:30:42 +00:00
preFunction = delegate {
var e = eventCaller . currentEntity ;
MrUpbeat . StartStepping ( e . beat , e . length ) ;
} ,
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 ,
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-06-04 04:30:42 +00:00
preFunction = delegate {
2023-05-15 19:52:41 +00:00
var e = eventCaller . currentEntity ;
2023-06-04 04:30:42 +00:00
MrUpbeat . Ding ( e . beat , e [ "toggle" ] , e [ "stopBlipping" ] ) ;
} ,
2023-05-15 19:52:41 +00:00
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?" ) ,
2023-06-04 04:30:42 +00:00
} ,
preFunctionLength = 1f ,
2023-05-15 19:52:41 +00:00
} ,
new GameAction ( "changeBG" , "Change Background Color" )
{
function = delegate {
var e = eventCaller . currentEntity ;
2023-06-04 04:30:42 +00:00
MrUpbeat . instance . FadeBackgroundColor ( e [ "start" ] , e [ "end" ] , e . length , e [ "toggle" ] ) ;
} ,
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" ) ,
2023-06-04 04:30:42 +00:00
new Param ( "shouldGrow" , true , "Grow Antenna?" , "Should Mr. Upbeat's antenna grow every blip?" ) ,
2023-05-15 19:52:41 +00:00
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
}
} ,
2023-06-04 04:30:42 +00:00
// will implement these soon
new GameAction ( "fourBeatCountInOffbeat" , "4 Beat Count-In" )
{
preFunction = delegate {
var e = eventCaller . currentEntity ;
//MrUpbeat.CountIn(e.beat, e.length);
} ,
defaultLength = 4f ,
resizable = true ,
hidden = true ,
} ,
new GameAction ( "countOffbeat" , "4 Beat Count-In" )
{
//function = delegate { MrUpbeat.Count(eventCaller.currentEntity["number"]); },
parameters = new List < Param > ( )
{
new Param ( "number" , SoundEffects . CountNumbers . One , "Number" , "The sound to play" ) ,
} ,
hidden = true ,
} ,
// backwards compatibility !!!!
new GameAction ( "start stepping" , "Start Stepping" )
{
hidden = true ,
preFunction = delegate { var e = eventCaller . currentEntity ; MrUpbeat . StartStepping ( e . beat , e . length ) ; } ,
resizable = true ,
} ,
2023-05-28 17:34:44 +00:00
} ,
new List < string > ( ) { "agb" , "keep" } ,
"agboffbeat" , "en" ,
new List < string > ( ) { }
) ;
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-06-10 19:13:29 +00:00
static List < double > queuedInputs = new ( ) ;
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 bool shouldBlip ;
2023-06-04 04:30:42 +00:00
static bool isStepping ;
static bool shouldntStop ;
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-06-04 04:30:42 +00:00
isStepping = false ;
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
shouldBlip = false ;
2023-06-04 04:30:42 +00:00
isStepping = false ;
2023-05-15 19:52:41 +00:00
stepIterate = 0 ;
2023-06-03 23:30:17 +00:00
foreach ( var evt in scheduledInputs )
{
evt . Disable ( ) ;
}
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
{
2023-06-04 04:30:42 +00:00
if ( Conductor . instance . isPlaying & & ! Conductor . instance . isPaused ) {
2023-05-15 19:52:41 +00:00
if ( queuedInputs . Count > 0 ) {
foreach ( var input in queuedInputs ) {
string dir = stepIterate % 2 = = 1 ? "Right" : "Left" ;
BeatAction . New ( instance . gameObject , new List < BeatAction . Action > ( ) {
2023-06-04 04:30:42 +00:00
new BeatAction . Action ( input , delegate {
2023-05-15 19:52:41 +00:00
instance . metronomeAnim . DoScaledAnimationAsync ( "MetronomeGo" + dir , 0.5f ) ;
2023-06-10 19:13:29 +00:00
SoundByte . PlayOneShotGame ( "mrUpbeat/metronome" + dir ) ;
2023-05-15 19:52:41 +00:00
ScheduleInput ( input , 0.5f , InputType . STANDARD_DOWN , Success , Miss , Nothing ) ;
2023-06-04 04:30:42 +00:00
if ( MrUpbeat . shouldntStop ) queuedInputs . Add ( input + 1 ) ;
2023-05-15 19:52:41 +00:00
} ) ,
} ) ;
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-06-10 19:13:29 +00:00
public static void Ding ( double beat , 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
{
2023-06-04 04:30:42 +00:00
MrUpbeat . shouldntStop = false ;
BeatAction . New ( instance . gameObject , new List < BeatAction . Action > ( ) {
new BeatAction . Action ( beat , delegate {
MrUpbeat . isStepping = false ;
2023-06-10 19:13:29 +00:00
SoundByte . PlayOneShotGame ( "mrUpbeat/ding" ) ;
if ( applause ) SoundByte . PlayOneShot ( "applause" ) ;
2023-06-04 04:30:42 +00:00
if ( stopBlipping ) MrUpbeat . 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-06-10 19:13:29 +00:00
public static void StartStepping ( double beat , float length )
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-06-04 04:30:42 +00:00
if ( MrUpbeat . isStepping ) return ;
MrUpbeat . isStepping = true ;
2023-05-15 19:52:41 +00:00
if ( GameManager . instance . currentGame ! = "mrUpbeat" ) {
Blipping ( beat , length ) ;
MrUpbeat . shouldBlip = true ;
} else {
BeatAction . New ( instance . gameObject , new List < BeatAction . Action > ( ) {
2023-06-10 19:13:29 +00:00
new BeatAction . Action ( Math . Floor ( beat ) , delegate {
2023-06-04 04:30:42 +00:00
MrUpbeat . shouldBlip = true ;
2023-05-15 19:52:41 +00:00
} ) ,
} ) ;
}
2023-06-04 04:30:42 +00:00
MrUpbeat . shouldntStop = true ;
2023-06-10 19:13:29 +00:00
queuedInputs . Add ( Math . Floor ( beat + length ) ) ;
2022-03-05 03:10:10 +00:00
}
2023-06-10 19:13:29 +00:00
public static void Blipping ( double 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
2023-06-10 19:13:29 +00:00
for ( int i = 0 ; i < switchGames [ whichSwitch ] . beat - Math . Floor ( beat ) - 0.5f ; i + + ) {
blips . Add ( new MultiSound . Sound ( "mrUpbeat/blip" , Math . Floor ( 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-06-04 04:30:42 +00:00
man . shouldGrow = shouldGrow ;
if ( resetBlip ) {
man . blipSize = 0 ;
man . shouldGrow = false ;
}
2023-05-15 19:52:41 +00:00
man . blipString = inputLetter ;
shouldBlip = blip ;
2022-03-06 19:37:50 +00:00
}
2023-06-04 04:30:42 +00:00
/ *
public static void Count ( int number )
{
Jukebox . PlayOneShotGame ( "mrUpbeat/count" + ( number + 1 ) , forcePlay : true ) ;
}
public static void CountIn ( float beat , float length )
{
var sound = new List < MultiSound . Sound > ( ) {
} ;
MultiSound . Play ( sound . ToArray ( ) , forcePlay : true ) ;
}
* /
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
}
}