D
D
des1roer2015-04-23 17:42:36
Yii
des1roer, 2015-04-23 17:42:36

Yii combat game?

Let's assume attack\defense I take from basis. how to figure out the fight? on js through setinterval output flash? type player 1 dealt that much damage? who sees / did / thinks how it will be right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2015-04-23
@des1roer

He after all at you strikes after any action of the user? If so, then send a request with Ajax, write the health indicators to the database on the server and send the damage inflicted from the server in response, just substitute the desired value on the client.

M
Maxim Grechushnikov, 2015-04-23
@maxyc_webber

do as you wish. for example ganjawars.ru wekings.ru botva.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question