Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Multiplayer web game - where to start?

4: Adsense

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   

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.

#2 DpakoH   Members   

1203
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   Members   

5967
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).


Working on an Emperor focused, no micromanagement, asymmetric, 4X, space empire builder:

Stellar Monarch (4X, turn based): GDN forum topic - Twitter - Facebook - YouTube

#4 EmployeeNumber8   Members   

1103
Like
0Likes
Like

Posted 07 February 2013 - 08:33 AM

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



#5 Kny069   Members   

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   Members   

2450
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.