PraxTube / ace-of-the-heavens

Fast paced online 1vs1 action game in an arcade-like, 2D top-down style
https://praxtube.itch.io/ace-of-the-heavens
MIT License
12 stars 0 forks source link

GLITCH: Music desyncs when one peer went to Main Menu and then reconnects with another peer #48

Closed PraxTube closed 1 year ago

PraxTube commented 1 year ago

If one peer already played some rounds and then gets back to the Main Menu and plays again with some peer, the music will be desynced between peers. Is this even a problem though? I don't quite know why this is, as the music should be synced, at least I thought that.

PraxTube commented 1 year ago

Okay this is worse then I thought. There seem to be all sorts of issues with the music when reconnecting to new rounds after playing. I should definitely investigate this issue.

PraxTube commented 1 year ago

So the issue appears to be that when the player presses P (enters Matchmaking) very quickly after entering the Main Menu when his peer disconnects then the BGM doesn't start in the next round. The music is actually playing exactly 50% of the time.