i think i know how to make cloud multiplayer so you make a json file and put it online then probably like
if (json.key==="b") {
a.setText("b")
}
i dont know if wick supports json but i do know it supports api
i think i know how to make cloud multiplayer so you make a json file and put it online then probably like
if (json.key==="b") {
a.setText("b")
}
i dont know if wick supports json but i do know it supports api
multiplayer using static files? everytime the player wants to get the status of the game or something like where all the players are, they would have to get the game file and then parse it and do the stuffs with it, and when you want to like move a player, you would have to get the game file and modify it and then send the new file to the server. and other people would be doing that at the same time which would probably cause a lot of problems, for example player 1 would send the server the game file where he moved left, but at the same time player 2 would send the game file where he moved left but player 1 was where he was before moving left, overwriting player 1’s position ending in player 1 not moving at all in the end (hopefully that would make sense). also it would be very easy to hack you don’t even like need a hacked client all you would need is the dev console and just write a script that sends a broken game file it’d be just like 2 lines of code, and now you just hacked.
var req = new XMLHttpRequest();
req.open("POST", "https://serverlocation.notarealwebsite");
req.send("{\"isHacked\":\"yes\"");
so this idea would be a disaster.
besides you would need a server to store the game status file. and if you have a server you can write programs for, then you basically have all you need, you just would need to write a server program that stores the game state and stuff, and then clients would connect and they would send, for example, “I moved 5 pixels”, then the server would change the position of that player that is stored on the server 5 pixels, instead of having the player tell the server “This is where everyone is now” in your solution of using a static file to store the game data.
Hopefully that made sense.
The multiplayer would be a good idea if you make a casual game and try it with friends, but, if you try to make an online game to publish it, then it would be a very bad idea…probably the servers would be very bad if it has so much players, and, as @pumpkinhead said, it would be pretty easy to modify the code…i don’t know almost anything about coding, this is just my opinion.
the vast majority of multiplayer games use client server structure. you can share the game state in json but you have to have a server validating the game and creating and sharing the jsons
for a client client multiplayer it could be possible to use something like that