Answer the question
In order to leave comments, you need to log in
On what technologies to implement an online game?
There is a website with registered users. For them, you need to create a game through the site.
The essence of the game.
Each of the users on the map (top view) puts his cannon and indicates the direction of the cannon's shot, while seeing only his own cannon. A minute later, the battle begins (users only watch). Cannons simultaneously automatically fire in the directions specified before the battle, hitting the enemy and killing him.
So what am I on about?
On what sheaf it is the best of all to implement the client-server to this very probably trivial task.
There are tons of tutorials on HTML 5 on a bunch of all sorts of Phase and analogues on Habré, but there is no clear definition for choosing the right tool for such needs.
Yes, and I just can’t understand. Here the user interacts with the JS code using the browser, which implements the game process, but if this is a multiplayer game and the Browser also needs to exchange packets with the Server, are there any specially game solutions or is it only WebSocket (With them already familiar).
I don’t want to invent some kind of bicycle, if there are already hundreds of them, but we need our bicycle.
Answer the question
In order to leave comments, you need to log in
Alexey Lebedev :
The game sucks, but at least in my current understanding.This is how to say)
The game sucks, but at least in my current understanding.
But it can be done very simply, with one request.
1) go to the page, place the gun and save it on the server.
2) start the timer if this is the first gun.
3) go to the page, place the gun and save it on the server. REPEAT as many times as necessary
4) Timer 2, one on the server, the other for each client, can be synchronized via Websocket. However, this is not necessary.
5) Then calculations are made on the server and saved in text form, then distributed to all users.
6) They will make a request according to their client timer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question