Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when play with Safari on Mac OS X #19

Open
phlo46 opened this issue Jan 5, 2017 · 6 comments
Open

Bug when play with Safari on Mac OS X #19

phlo46 opened this issue Jan 5, 2017 · 6 comments

Comments

@phlo46
Copy link

phlo46 commented Jan 5, 2017

After I close the Macbook's lid and reopen it, the game is frozen.

Refresh the browser doesn't work. The only thing I can do is click the button "Pause" and "Resume" again and again.

You should add a "New Game" button or something like that. Right now, I can't play with Safari !!

@w0rm
Copy link
Owner

w0rm commented Jan 5, 2017

@lnguyen46 could be related to the time between animation frames. I guess if something like this happened, you have to erase local storage in order to continue the game.

Can you also copy the broken state from local storage and paste it here?

@phlo46
Copy link
Author

phlo46 commented Jan 5, 2017

active: [{pos: [2, 0], val: [237, 101, 47]},
{pos: [0, 1], val: [237, 101, 47]},
{pos: [1, 1], val: [237, 101, 47]},
{pos: [2, 1], val: [237, 101, 47]}] (4)

grid: [{pos: [1, 19], val: [237, 101, 47]},
{pos: [1, 18], val: [237, 101, 47]},
{pos: [6, 19], val: [232, 65, 56]},
{pos: [5, 19], val: [232, 65, 56]},
{pos: [5, 18], val: [232, 65, 56]},
{pos: [4, 18], val: [232, 65, 56]},
{pos: [0, 19], val: [60, 199, 214]},
{pos: [0, 18], val: [60, 199, 214]},
{pos: [3, 19], val: [57, 147, 208]},
{pos: [4, 19], val: [57, 147, 208]}] (10)

lines: 151

next: [{pos: [0, 0], val: [251, 180, 20]},
{pos: [1, 0], val: [251, 180, 20]},
{pos: [0, 1], val: [251, 180, 20]},
{pos: [1, 1], val: [251, 180, 20]}] (4)

positionX: 0

positionY: -6859.722189797607

score: 147644

state: "playing"

@w0rm
Copy link
Owner

w0rm commented Jan 5, 2017

@lnguyen46 so it fell below the screen bounds positionY: -6859.722189797607 and kept falling down

@phlo46
Copy link
Author

phlo46 commented Jan 6, 2017

Following @w0rm advice, I have to clear localStorage to play again.

@phlo46 phlo46 closed this as completed Jan 6, 2017
@phlo46
Copy link
Author

phlo46 commented Jan 6, 2017

It would be nice if you can fix this bug though. I don't want to clear localStorage everytime I reopen my laptop's lid.

@w0rm w0rm reopened this Jan 6, 2017
@w0rm
Copy link
Owner

w0rm commented Jan 6, 2017

@lnguyen46 sure, this must be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants