ICEREG1992 / fungwafrenzy

Modern Offline Client for FMV Cult Classic "Fung-Wa Frenzy"
MIT License
0 stars 0 forks source link

Create music player #16

Closed ICEREG1992 closed 1 month ago

ICEREG1992 commented 2 months ago

Describe the addition

Context

Music plays separately alongside videos so that the video can loop, cut, change, and load freely. Music should play uninterrupted when a set of blocks all have that same track specified.

Proposed Solution

ICEREG1992 commented 2 months ago

Playing music uninterrupted through video changes is handled via React useState, hooray for react! Keeping this open before we figure out fade in/out

ICEREG1992 commented 2 months ago

To fade in/out: create a useEffect on the gameState property that says what music is being played, tie it to a function that raises/lowers the volume over 10 or so steps (tie this to a variable)

ICEREG1992 commented 1 month ago

This is finished as of the latest commit. Implemented using a new fader useState variable