Coder Social home page Coder Social logo

anthyg / da_cards-2 Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 4.67 MB

A Online Card-game, based on NodeJS, socket.io, and React.

License: Apache License 2.0

HTML 2.62% JavaScript 85.05% CSS 12.34%
nodejs multiplayer-online-game multiplayer-browser-game multiplayer-game-server card-game socket-io react

da_cards-2's Introduction

da_cards-2

Codacy Badge Build Status

A Online Card-game, based on NodeJS, socket.io, and React.

da_cards-2's People

Contributors

anthyg avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

drizzleraine

da_cards-2's Issues

use-async-requests :: Card-property loading bug

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.

Host-Change causing problems with sendGame

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.

Implement isLoggedIn- and isInGame-Check

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

GID in URL

This could be useful for viewing running games and viewing/sharing results, when a game is finished.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.