Is making multiplayer games possible?

so is it possible on wick?

you can make mutiplayer games!

arrow keys (player 1), wasd keys (player 2)

or you can use:
left click (1), right click (2)

I know that, I was just asking about cloud multiplayer.

Any? But when I used that “tweet” code, the require function did not work lol

I just don’t get HOW we would install socket.io without any extra tools or anything.

That happend because you probably did not have socket.io installed

I think you need node.js. I think this because I went to the socket.io website and it showed sample code, which had require commands on the top, JavaScript-like syntax, and it looked like code for a server. Node.js has a require command, is JavaScript, and is used to make server code. From these, I concluded that you need Node.js to use socket.io for servers.

Also I think you can use socket.io for regular JavaScript but since regular JavaScript is client-side, if that were the case it could probably only send requests to servers.

you can check also this solution


to make a peet to peer connection

I found this online of how the require function works and how to rewrite it in normale javascript.

It might be helpful, yet I’m not really sure if it works, but it goes through how the require function works. I didn’t have the time to read it fully, but it might interest anyone

There is a small glitch that allows you to use any Java file in Wick.

I think you mean Javascript, not Java. Java is a completely different programming language. And Wick Editor can’t run Java. Also, the ability for Wick Editor to run any Javascript code is not a glitch, if that’s what you mean.

Oh yeah, Javascript. But you can use any .js file with Wick.

there is a js file when you export a zip for interactive or at least im sure

back to discussion on the multiplayer, i dont think p2p is the best way to go with it.
sure it will be easier as you dont have to pay for VPS hosting. But with p2p, players can find other players IP addresses. And the loading times will be slow depending on internet speeds.

can you please put servers for multi games because the servers are important please
add into 1.20

probably not everything costs money

thats a big ask from them. vps servers can cost, at a minimum, $30 a month.

I think it would be very well possible to make a multiplayer game in JS with Node.js and socket.io. I have a template for a multiplayer game in HTML5 in js, but not for wick at the moment. If your problem is hosting, then I’d suggest you use Glitch. Its completely free to sign up and I use it to host my wick projects. It has support for node.js, socket.io, npm, react, vue.js and so much more. Sorry if I sound like an ad lol.

2 Likes

Glitch is good, but I’d suggest using Firebase or repl.it

1 Like

You have a good point lol its just idk how to switch

1 Like