Jump to content

Need Help with Creating 2D TOP-DOWN Open World MMO


bpp
 Share

Recommended Posts

Hi everyone,

i would like to ask if any one stumbled upon a good tutorial or an article about creating an open world MMO top down 2D game in which the map changes as players build houses etc in game.

i'm using javascript but i would like a tutorial/book/article in any programming language just to get the principles and the logic behind building a game like that.

Link to comment
Share on other sites

Hi @bpp, welcome to the forums

Have a search around a bit, there are plenty of posts asking for resources on creating multiplayer games.

The general approach is to use websockets to create a duplex connection between clients and a single server. This allows the server to receive client updates i.e. Client A has created a House at [10, 15] and then propagate that state change to all clients i.e. Place House belonging to Client A at [10, 15].

This is a server-authoritive appoach i.e. the server is the sole arbiter of game state. Clients 'peek' at that state and request changes to it.

Most multiplayer games take this approach. Dealing with network latency is tough.

There are alternative approaches, such as peer-to-peer connections, these, in theory, are very attractive, but, they are very tough to get right. Interestingly, there is a bit of a shift towards more P2P things being available on the web i.e. people are nervous about Facebook or Twitter holding data in their server-authoritive model, blockchain is an example where data isn't stored in one single place but is instead distributed. Distributed computing is not a new concept at all, its incredibly attractive, but, tough to get right.

Good luck with your project.

https://github.com/mozilla/BrowserQuest is old but still a good example of a server-authoritive 2d top-down MMO. Note that I'm pretty sure browserquest predates websockets (browser support has only become ubiquitous relatively recently, last couple of years) so there are newer technologies that could be adopted, but, largely, the principles are the same.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...