anthyg / da_cards-2 Goto Github PK
View Code? Open in Web Editor NEWA Online Card-game, based on NodeJS, socket.io, and React.
License: Apache License 2.0
A Online Card-game, based on NodeJS, socket.io, and React.
License: Apache License 2.0
As #4 is closed, but there was another good idea there, I'll create a new one from that:
The isLoggedIn-check could also be achieved via an ExpressJS-session.
See this article for further information, on how to achieve something alike.
Self-explanatory.
The client could just try to log-in again
Also, in future, the userlists
won't just be an object in the server, but a real database, so that will prevent pretty much everything from being erased.
This could be useful for viewing running games and viewing/sharing results, when a game is finished.
It seems, that when both players reload their page, and join back in again, but in the "wrong" order, the host changes, causing some problems in the game-data getting sent to them respectively by the server.
Card-properties don't get correctly loaded in the Card
React-component, when the properties haven't yet been loaded from the Server, resulting in animations
in the draw
-function of CardFace
for a Card
being set to undefined
, thus crashing the draw
-loop of the CardFace
.
I probably need to re-write the stuff in the componentDidMount
and render
functions of Card
, to be able to fix this.
As this is currently missing, every socket.on
server-side is vulnerable to being called by a user, not in-game, which generates an TypeError
, thus crashes the server.
This can also be somewhat-prevented by solving issue #2
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.