A
A
Andrey K2012-08-25 07:50:59
Browsers
Andrey K, 2012-08-25 07:50:59

What to read about developing a server for a browser game?

Hello!

I set out to write a browser-based online game - a turn-based strategy.
On HTML5 client, JS. Not sure about the server yet.
Recommend literature (articles, books) about backend development for this task.

ps what technologies would you choose?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Damir Abdullin, 2012-08-25
@damirazo

VitaZheltyakov , no, I'm just leading to the fact that the role of the server is far from being

The role of the server in browser games is simple - to accept the client's request, send the request to the database and return the response to the client.

Just by such reasoning, any task will be reduced to only 1/2/5/50 queries to the database :) I, of course, am not familiar with the structure of your game, but in addition to what I wrote, there are a number of tasks. For example, in my opinion, it makes no sense to store the maximum level of life of the player in the database, I store only the current one. And I calculate the maximum using various algorithms based on other characteristics. And there are a whole bunch of other aspects like that. Calculation on the client at best only duplicates the functionality of the server, in some cases it is unnecessary. Above , Fally described the structure of his game a bit, I did about the same. In my case, the client requested the state of an object, for example, an enemy in battle, and received in response a json with the necessary characteristics, based on which the state of the object was displayed on the client.

P
pomeo, 2012-08-25
@pomeo

read the source code, there is github.com/tlhunter/Cobalt-Calibur-3 at hand, I
saw a few more open

D
Damir Abdullin, 2012-08-25
@damirazo

I write in tornado if real-time processing and output is required, or in django if this functionality is not required. Actually, in the second case, any other language/framework that can be used to create web applications can be suitable.

V
Vitaly Zheltyakov, 2012-08-25
@VitaZheltyakov

What is there to read?
All basic calculations take place on the client. The role of the server in browser games is simple - accept the client's request, send the request to the database, and return the response to the client. If you understand how the client works, then there will be no problems with the server.
This statement is based on personal experience.
Regarding technologies:
- Now I'm writing a step-by-step MMORPG in PHP. In the future, I plan to abandon PHP towards Node.js because of sockets.

T
TXr, 2012-08-26
@TXr

A very interesting option is Smart Fox Server. Many tasks have already been solved there. There are APIs for as3, unity 3d and a couple more. You can also expand the functionality of the rooms with java classes or in python. There is a convenient admin panel. Tutorials are attached.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question