Ask coding questions

← Back to all posts
How to make a community game?
MikeJMS8910 (159)

So I have a game idea and some parts of it require users to be able to interact with each other. So there would be a community marketplace and you would also be able to trade items with each other. So how would I be able to make things like this?

Answered by InvisibleOne (2931) [earned 5 cycles]
View Answer
Comments
hotnewtop
InvisibleOne (2931)

I'm guessing you would probably want to make a node server and then use socket.io for talking back and forth between the users. It would be a bit tricky but I can see ways it could be done.

MikeJMS8910 (159)

@InvisibleOne ok thanks can you give me a link or something to some documentation for it?

InvisibleOne (2931)

Yeah sure.
Here's the stuff for node: https://nodejs.org/en/docs/
And then here's the stuff for Socket.io: https://socket.io/get-started/chat
Here's a tutorial for a chat app, but it teaches the basics of Socket, Node and Express so you can get the idea of how it works: https://www.youtube.com/watch?v=jD7FnbI76Hg
@MikeJMS8910

MikeJMS8910 (159)

@InvisibleOne one last question. All of this is compatible with repl, right? Or would I need to download something maybe?

InvisibleOne (2931)

You should be able to do everything in a repl @MikeJMS8910