-
Notifications
You must be signed in to change notification settings - Fork 9
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
MatPlotPong #33
Comments
Check the list of things I want to think about for adding this. If you want to tackle any that's awesome! Not sure how soon it'll be before I get to all these.
|
I added in the same gist:
I'm not super familiar with websockets and how to handle state, but will attempt to figure it out still missing:
Possibly useful too:
|
@jerpint - If you're up for an experiment that I think will work and would be super simple, we could try storing it in the session. If that doesn't work I can point you in the right direction on state! @app.get('/whatever_route')
def whatever_func(sess):
sess['pong_state'] = sethatever dict/list/stuff you need
@app.get('/another_route')
def another_func(sess):
current_state = sess['pong_state'] |
Also, I will also want to take new small pieces to add to the gallery. For example, a minimal hotkey example under dynamic user interface that the |
I implemented a simple MatPlotPong, for now it's only single-player. Uses hotkeys for moving the paddles
see: https://x.com/jerpint/status/1826088979973755308
gist: https://gist.github.com/jerpint/07515420078949f7358fab7e1319e5c0
The text was updated successfully, but these errors were encountered: