Sign in to follow this  
bpp

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

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.