D
D
dopingman2016-10-28 06:37:18
Game development
dopingman, 2016-10-28 06:37:18

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.
000ab7cfa1df4b498836249c627f3e77.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2016-10-28
@dopingman

Alexey Lebedev :

The game sucks, but at least in my current understanding.
This is how to say)
The main thing is that it is STEP-BY-STEP)
And the usual POST (or ajax) will do.
There are 2 steps in the game:
1. arrange x,y, rotate
2. view the generalized animated result (cartoon)
Realtime is parallel processes inside a single game world with simultaneous visualization of this world by several players.

A
Alexey Lebedev, 2016-10-28
@swanrnd

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 question

Ask a Question

731 491 924 answers to any question