Z
Z
Zimaell2020-06-30 18:02:08
Game development
Zimaell, 2020-06-30 18:02:08

How to synchronize a fight between two or more players?

The bottom line is this - a tower defense style game online, presumably on android (although it seems to me that it doesn't matter), one player builds a defense and the other then attacks.
It was decided that the attacker should be online, the scene of the defender is loaded for him.
How to proceed, I mean that she both saw the same thing?
Should one fight take place and the other observe? while the data is stored on the server and issued to another.
Or how is it done right?
If possible, examples of code implementation or an article where this is described ...
And is it possible to do the server part in PHP or use C for such cases ...

In general, I would like to discuss this topic, how to implement this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2020-06-30
@Zimaell

Well, look, for example, towards ready-made solutions - the same Photon.

X
xmoonlight, 2020-06-30
@xmoonlight

Technology - websocket.
Language doesn't matter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question