zero-to-mastery / ZTM-Quest

A fun little 2D top-down rpg where you can explore the world of zero-to-mastery. Be prepared for funny and serious content and of course, Bruno.
https://zero-to-mastery.github.io/ZTM-Quest/
27 stars 92 forks source link

Bug: Unable to move after entering arcade #167

Closed BrianCheung1 closed 1 month ago

BrianCheung1 commented 1 month ago

Expected Behavior

Player should still be able to move freely

Current Behavior

Player is unable to move around with mouse clicks or WASD/Arrow keys even when refreshing page or starting a new game

Possible Solution

N/A

Steps to Reproduce

  1. Fresh Start at the academy
  2. Use Toilet and wash hand
  3. Talk to bruce and exit academy
  4. Mute sounds and walk into arcade
  5. Unable to move character after entering arcade

Browser/OS

Tested Version 129.0.6668.101 (Official Build) (64-bit) Chrome/ Windows 10 Tested IOS 16/Safari

r4pt0s commented 1 month ago

The same problem occurs if you go to one of the snack bars or stalls. Also, by going back into the academy.

This is related to the last rewrite and the isInDialog state from localstorage.

@fullspeccoder : do you want to look into it?

fullspeccoder commented 1 month ago

@r4pt0s Yes, I just fixed it! Very simple 😅