Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Multiplayer web game - where to start?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 JvJ   Members   -  Reputation: 103

Like
0Likes
Like

Posted 07 February 2013 - 02:00 AM

I have an idea for a small web-based game that can be played by a few players (maybe 2 to 4). Im just not sure where to start with something like that (i.e. how I should handle exchange of information between players, how i should host it, etc.).

Id like to point out that Im an experienced programmer (and ive done games), so this isnt just a "how i make game?" question. Im just not great with web dev. Thanks.

Sponsor:

#2 DpakoH   Members   -  Reputation: 1029

Like
2Likes
Like

Posted 07 February 2013 - 03:11 AM

maybe you can take a look at node.js, web sockets. for links just google'em :)



#3 Acharis   Crossbones+   -  Reputation: 4003

Like
-2Likes
Like

Posted 07 February 2013 - 06:46 AM

Learn: HTML, PHP, MySQL (in that order). Once you get familiar with these it will become self explanatory how to make such a game (especially since you are an experienced programmer already).

 

Generally it works like that:

- PHP is the language, you write the game in this

- HTML is the rendering engine and keyboard input (you can also add extras later like CSS, JS, jQuery, AJAX)

- MySQL is your hard disk, you load and save data via it (note that in theory you don't need it and can use PHP for this, but is't soooo convenient and easy that it would be a suicide to not use it)

 

You should also take a look at cronjobs (it's a simkulator of someone clicking on your php script at a certain hour).


Europe1300.eu - Historical Realistic Medieval Sim (RELEASED!)

PocketSpaceEmpire - turn based 4X with no micromanagement FB


#4 EmployeeNumber8   Crossbones+   -  Reputation: 1103

Like
0Likes
Like

Posted 07 February 2013 - 08:33 AM

Take a look at Node.js and Socket.io.



#5 Kny069   Members   -  Reputation: 159

Like
0Likes
Like

Posted 07 February 2013 - 09:08 AM

You can communicate between players by using sockets. Also you can communicate with just HTTP for a turn-based game ;)

This you can use to make a game that start from the browser...

 

For just a text-based game in the browser you can use PHP/ASP.NET/JSP or JSF



#6 smr   GDNet+   -  Reputation: 1682

Like
0Likes
Like

Posted 07 February 2013 - 11:29 AM

Also, if python is your flavor, you can try tornado along with sock.js (client and tornado server implementation)for your web server and messaging. If CPython performance becomes an issue (it probably won't) you can swap out CPython for PyPy and get a significant performance bump, probably.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS