Closed gricha2380 closed 6 years ago
Random lock is now functional within arcade levels. The toggle however does not yet work. The toggle is currently a checkbox, but the checkbox value is read on page load and remains stored for the duration of the session. This prevents the user from ever actually changing the state. What I need to do is have the checkbox trigger a localstorage variable so once the page reloads, the game reflects the value they chose before reload.
on battle.html create randomLock checkbox which defaults to on and randomly disables certain cards from the player's deck. This adds a layer of challenge and replayability to solving each level. It's main benefit is in arcade mode.