darkneon / space-concordia-wars Goto Github PK
View Code? Open in Web Editor NEWA team building game
A team building game
@Darkneon: Sometimes when I join a pre-existing room the Iridescence game immediately begins playing for the person who joined the room, sometimes not.
Just wanted to let you know about this in case you were unaware of it. I know you're in the middle of developing the feature and it's incomplete, so if you already know about the problem then feel free to just close the issue.
They should be implemented as their own modules
TypeError: Cannot call method 'removePlayer' of undefined
at Socket.io.sockets.on.socket.on.playerList.(anonymous function).data (c:\Users\umroot\Downloads\space-concordia-wars\server\index.js:217:31)
at Socket.emit (events.js:95:17)
at Socket.emit (c:\Users\umroot\Downloads\space-concordia-wars\server\node_modules\socket.io\lib\socket.js:129:10)
at Socket.onclose (c:\Users\umroot\Downloads\space-concordia-wars\server\node_modules\socket.io\lib\socket.js:399:8)
at Client.onclose (c:\Users\umroot\Downloads\space-concordia-wars\server\node_modules\socket.io\lib\client.js:208:12)
at Socket.emit (events.js:117:20)
at Socket.onClose (c:\Users\umroot\Downloads\space-concordia-wars\server\node_modules\socket.io\node_modules\engine.io\lib\socket.js:243:10)
at WebSocket.g (events.js:180:16)
at WebSocket.emit (events.js:92:17)
at WebSocket.Transport.onClose (c:\Users\umroot\Downloads\space-concordia-wars\server\node_modules\socket.io\node_modules\engine.io\lib\transport.js:113:8)
No game should be started until all the players have loaded it.
Receiving nulls from the server in the array, not sure why.
Currently when someone joins a room the following occurs:
I am thinking it would be better to swap the order of steps 2 and 3, but that would probably involve making validation its own socket message (e.g. socket.on("validateNick")
) as opposed to it being part of joinRoom
/ newRoom
@Darkneon: What do you think about this?
@Darkneon I know you mentioned looking into REST today but I was actually thinking it would be better (if not necessary) to instead use sockets. The main reason for this is because with sockets we can use room-level broadcasts about team changes. Upon joining / leaving a game room the socket would have to join / leave the socket.io room.
Your thoughts?
Old rooms should be removed on the server after everyone from the room disconnects.
Maybe needed in the future, maybe not.
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.