Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Nip in the Bud Updates & VHS Effect for Retro TV! #12

Merged
merged 6 commits into from
Aug 29, 2024

Conversation

wookywok
Copy link
Contributor

@wookywok wookywok commented Jul 4, 2024

Added some features to Nip in the Bud:

  • Expressions! Toggle automatic expression reactions for hitting or missing cues.
  • Background color change!
  • bugfixes

Added more options to the Retro TV filter, bumping it up from F tier to a solid E-!

  • Make your remix look like it stepped straight out of an old VHS tape!
  • I wanted to add this when I first added Retro TV, but only now is there an actually good VHS filter with an MIT license...

@@ -89,20 +109,34 @@ public class NipInTheBud : Minigame
{
public static NipInTheBud instance;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be nice if we could set a standard of never using static instances when unneeded, just use eventCaller.gameManager.TryGetMinigame() in the events list or gameManager.TryGetMinigame() in the minigame script

@@ -116,42 +150,60 @@ public override void OnBeatPulse(double beat)
{
if (BeatIsInBopRegion(beat))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bop regions are less flexible and less optimized (though it doesn't matter too much) than just making a list of beataction actions and making a new beataction with that

if (allEventsBeforeBeat.Count > 0)
{
allEventsBeforeBeat.Sort((x, y) => x.beat.CompareTo(y.beat)); //just in case
var lastEvent = allEventsBeforeBeat[^1];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of FindAll, use FindLast. it spends less time finding objects and doesn't create a new list. the sorting is also redundant, as whenever events can be used, they're sorted. if they aren't, we have an even bigger issue.

@AstrlJelly AstrlJelly merged commit a47865a into RHeavenStudioPlus:main Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants