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

Pong gui #10

Merged
merged 8 commits into from Aug 20, 2016
Merged

Pong gui #10

merged 8 commits into from Aug 20, 2016

Conversation

dskvr
Copy link

@dskvr dskvr commented Aug 20, 2016

Known issues, too may to list

(1) Issues with socket.io after time, hanging clients. Prevents new clients from connecting. I had this issue with the old GUI before the refactor, after multiple attach/detaches but couldn't figure out what was going on. Should really upgrade to engine.io, far more consistent (would require entire blinken websockets refactor) ... This has apparently been an issue with socket.io since 2011, still an issue as of 10 days ago (socketio/socket.io#430)

I have fixed this temporarily with an ugly ping/pong workaround (no pun intended)

(2) Countdown only happens once, conditions are skipped likely due to hanging clients.
(3) Sometimes it will start playing, but controls won't work.
(4) Paddle sends repetitive data, should only send when the value has changed (it's normalized, so it may send the same pos more than once in sequence.)
(5) One oft he paddles is backwards. Someone over there needs to determine which one, and it's a relatively easy fix.
(6) If a client/leaves or joins during certain states, it gets glitchy (edge cases)

Solutions, tomorrow
(1) Remove auto-attach, replace with idle/waiting attach (fixes at least 3 of those)
(2) Debug states further (it's not the correct solution, but didn't have the time to do game state management correctly)
(3) Fix paddle sequential send
(4) All else fails, turn it off and on again :)

That said, it works...kinda

GUI is in pong2.html.

Again it's buggy, will do my best to fix tomorrow. Looked at snake again, feel good about it. One player, super simple, no backend refactor required for GUI

@dskvr
Copy link
Author

dskvr commented Aug 20, 2016

@factor8 you already merged the other branch so might as well. Doesn't affect old gui

@dskvr dskvr merged commit aa8dd71 into ideafablabs:master Aug 20, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant