N
N
Nik Gubin2016-03-28 12:32:25
PHP
Nik Gubin, 2016-03-28 12:32:25

How can you implement map movement in an online game?

Good afternoon, colleagues!

Please don’t kick and throw slippers right away, don’t crush your childhood dream :-D

At one time I started working on a browser toy, found good artists in the team, wrote a lot of code, text, drew tons of graphics, but then I realized that the game is terribly old school (you know, 2D text toys from 2007). I decided to correct my mistake while it was possible and make it more or less alive, with an open world, locations, studying the map, searching, etc.

The bottom line is - I have no idea how to correctly do this very phenomenon, like moving around the map. I won’t have live combat on the map, and I don’t require absolutely brilliant synchronization (although it would be great), but in any case it’s scary to do Ajax, either common sense tells me, or lack of experience in developing such things.

Advise in which direction to push the search in Google? To what technology? I came across tips to write in Unity3D, but now I'm only looking towards familiar technologies. I plan to get acquainted with the unit, but not on this project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mr4x, 2016-03-28
@gubin_niko

Load the map as an array [{x: ..., y: ..., id: }, ...] and the necessary graphics, and then draw only the visible part. Try Tiled :-)

V
Vitaly Stolyarov, 2016-03-28
@Ni55aN

Web Sockets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question