callmehiphop / mario-cards

68 stars 6 forks source link

Multiple games highschool/audio issue #5

Closed jmc734 closed 11 years ago

jmc734 commented 11 years ago

When multiple games are played sequentially, without a refresh, the game win audio does not play and the high score does not update (both local storage and display).

Won game with fewer attempts than the current high score

beat_high_score

Clicked "Reset" and still not updated

no_high_score_update

callmehiphop commented 11 years ago

Good catch, thanks for the issue submission! I just put a fix in for this via https://github.com/callmehiphop/mario-cards/commit/75f02e9199f37c9a7336327b327b2858be352c52

Forgot to reset the unmatchedPairs counter :[ I'll do a push to gh-pages later today