louis-tarvin / draw_game Goto Github PK
View Code? Open in Web Editor NEWA web-based multiplayer drawing game
Home Page: https://draw.dewardt.uk
License: MIT License
A web-based multiplayer drawing game
Home Page: https://draw.dewardt.uk
License: MIT License
Currently there are only 15 words, which is fine for testing but over 100 would be good for a proper game
This will creating a UI to show the user list + points.
Also a system to update the score of a user and to send the score on room join
This should happen client side.
Most tasks in the 1.2 milestone are about room settings, we need to create a easily extensible way to create both the UI and server elements for this.
The create room message should be expanded to include these additional options, and the join room message (from server to client) needs to send them.
It's not clear whether csv will work into the future as the data is a bit more complicated.
If we don't receive a corresponding pong within 30 seconds we can safely assume there has been some kind of disconnection.
Needs a server API and a client implementation.
This should be optional as part of room settings
New front-end design
Let users pick a username before joining a room
We should probably have a relatively simple automated test suite for the server API.
It just needs to send web socket commands and check that it get's back the correct ones.
This isn't a priority but it would help when deploying code.
When creating a room there should be a way to choose from a list of words packs.
This will require:
When the server disconnects the state should revert back to the pre-connected phase (null socketID, null room). Currently there isn't any handling for null socketID, there should probably be a 'Connecting' message or we somehow disable the buttons for join/connect room. Perhaps a small banner at the top saying "Not connected".
When 'join room' is pressed with an invalid room key, nothing will happen. Perhaps the server should broadcast an event telling the client the room doesn't exist to inform the user
When a user goes to join a room if their username already exists within the room they will not be allowed to enter
the server needs to send the word optionally and the client should show the main word and, if it was used, the alternate word.
Get rid of all println! statements and then use https://docs.rs/log/0.4.10/log/ + https://docs.rs/env_logger/0.7.1/env_logger/ so that we can have extremely detailed trace! logs during development and the warn logs during deployment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.