-
Notifications
You must be signed in to change notification settings - Fork 0
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
Wizard Tower integration #11
Comments
I think, theoretically, the game elements should run in separate containers and manually apply changes to the database, not touching Django. |
I agree they should be separate. Probably easier to do for future game elements too, since it would be software independent, and anyone could do it anyway they want as long as it can edit the Db. Any ideas how we would have it also tell Django to update the score so it is up to date? Probably something we'll have to figure out later. |
I'm working on this. I successfully have the serial-to-USB devices connecting to the new Docker container (from the new Compose service) in the The remaining work on this part is to:
This will be spring break work for me as well, I imagine. |
Communicating with Django through websockets in Python seems like it should be pretty doable, and then the Django side is easy as well, since it would be built in. So we're on the same page, this is what I see as the necessary ideal communications to/from this container: To:
Note: The game could conceivably be paused until after the old From:
|
With more experienced eyes, I think now that we need to have a small API that allows external apps (e.g. wizard towers) to This way, the current match state doesn't have to be kept in multiple places. If a tower submits a score event to e.g. This strategy can also extend to other things. We can even use this API in our own apps; manual scoring can just be buttons that send |
Neat. How much of the websocket communication would this replace? All, scoring, timing, score updates? I used it primarily since we needed the clients to update dynamically, and it's an easy way I found to do that, but idk if it's the right way. I'm familiar with the concept of APIs, but haven't used them much at all, so I'm not super sure of all the capabilities, or exactly how to use them. We can't communicate back out to clients, right? Also, would we use Ajax requests for the scoring |
Let's talk about this at the meeting.
…On August 2, 2020 22:35:43 mgale456 ***@***.***> wrote:
Neat. How much of the websocket communication would this replace? All,
scoring, timing, score updates? I used it primarily since we needed the
clients to update dynamically, and it's an easy way I found to do that, but
idk if it's the right way.
I'm familiar with the concept of APIs, but haven't used them much at all,
so I'm not super sure of all the capabilities, or exactly how to use them.
We can't communicate back out to clients, right? Also, would we use Ajax
requests for the scoring POST requests from the judges? I've heard of that
as an option for sending requests without changing the page.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Somehow we need to integrate the wizard towers into the gameserver. Possibly as a separate python script.
In order to score it, it can just update the Db directly and wouldn't have to mess with Django. Once we figure out how we are dynamically updating the score on the screen, we may need to adjust this.
The text was updated successfully, but these errors were encountered: