Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

song code rewrite and stuff #91

Merged
merged 25 commits into from
Feb 21, 2025
Merged

song code rewrite and stuff #91

merged 25 commits into from
Feb 21, 2025

Conversation

riconuts
Copy link
Owner

@riconuts riconuts commented Feb 21, 2025

making a pr for this just to keep a lil summary of this commit nuke lol

Add the following functions to Song instances

  • getSongFile(fileName)
  • getMetadata(chartId)
  • getSwagSong(chartId)

Removed

  • Song.difficulties because this was mostly unused and only really existed because of psych weeks
  • difficultyIdx argument in loadSong because it was kinda redundant, again only existed because of psych

Added a songName field to SongMetadata used to set the displayed name of the song
Because of that Song.songName was replaced with Song.songId, this will be used to save the song's high-scores

Added a PlayState.song property to access the current song's SongMetadata and songId as well as audio tracks for the song

SwagSong.song will now be ignored for saving song high-scores and setting the song display name so long as PlayState.song isn't null

still making it fallback to the chart data, not sure if I want PlayState to be able to work without a reference to a Song object or not
it's only used because of psych week shit should maybe add difficulties to the metadata so menus can use them idk i want freeplay songs to be able to behave independently from their weeks/levels
hmmm might not go with this
song variations shouldn't have their metadata embedded into the chart file from now on
the loadSong stuff except it doesn't set any PlayState values
@riconuts riconuts merged commit 15a5567 into main Feb 21, 2025
4 of 5 checks passed
@riconuts riconuts deleted the song-bs branch February 22, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant