ZippoLag Posted April 2, 2013 Share Posted April 2, 2013 Yeah, it's far from ready for general audience, but I'm really excited about the possiblities! I'm even tempted to work naïvely with websockets on my experiments for now until proper implementation is ready, but I know any testing I do won't be very usefull outside of a LAN '^^ Quote Link to comment Share on other sites More sharing options...
Quetzacotl Posted April 5, 2013 Share Posted April 5, 2013 I think this topic should be moved to "Game coding and logic" section. Or we even should create "Multiplayer" section. Quote Link to comment Share on other sites More sharing options...
Chris Posted April 5, 2013 Share Posted April 5, 2013 Has been moved =] Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2013 Share Posted April 18, 2013 What about using Chrome Sockets API to create html5 realtime multiplayer game?It supports both TCP and UDP. http://developer.chrome.com/apps/app_network.html Quote Link to comment Share on other sites More sharing options...
Quetzacotl Posted April 18, 2013 Share Posted April 18, 2013 I don't know it yet but it seems that it only works under chrome, so I would not use it. Unfortunately for now there is no UDP support cross-browser without plugins :/ Quote Link to comment Share on other sites More sharing options...
Autarc Posted April 18, 2013 Share Posted April 18, 2013 Well, especially as it's not just for Chrome - but also limited for "Packaged Apps". The user has to install the extension on their system for local usage, which would probably scare potential players who expect an easy setup of a browser based game... Despite the fact they are still rough and in development unreliable DataChannel are based on UDP and partial implemented in Firefox Nightly & Chrome Canary. So far I wouldn't recommend you to use them for production - but at least there will be a technology which should be useful for multiplayer games in the future Quote Link to comment Share on other sites More sharing options...
enpu Posted April 29, 2013 Share Posted April 29, 2013 Are there currently any html5 fast-paced realtime multiplayer game with pvp collisions? Quote Link to comment Share on other sites More sharing options...
ZippoLag Posted April 29, 2013 Share Posted April 29, 2013 Are there currently any html5 fast-paced realtime multiplayer game with pvp collisions? As far as I know, there are none. The only prototype I'm aware of is this airhockey demo. BTW, for anyone who wishes for an in-depth manual/tutorial about multiplayer over the internet (with examples in C++) and an academically-sound discussion of UDP VS TCP, I highly reccomend: http://gafferongames.com/networking-for-game-programmers/udp-vs-tcp/ Also, IDK if it's allowed to link other forums, if it's not then apologies and I shall edit this out, but there's been a very simmilar discussion going on here: http://www.scirra.com/forum/viability-of-realtime-multiplayer-in-html5_topic55617.html Quote Link to comment Share on other sites More sharing options...
Lazer Posted May 3, 2013 Share Posted May 3, 2013 I've recently began dabbling with this and am having some success in a local environment. The gist of my game is multiplayer snail breeding and racing. Users can register and log in, save and load their snails, create races, etc - all of which gets pushed to a database on the server. Here is the total list of technologies/frameworks I'm using for this: ImpactJS for the engine. Node.js for the serverMongoDBMongooseSocket.ioNow that I've gotten the hang of the basic principles and guidelines getting data to and from the server is pretty simple. I predict that my main challenges will be:Finding free hosting for my serverManaging to migrate this to a live environment smoothlySecurity of the database Quote Link to comment Share on other sites More sharing options...
ZippoLag Posted May 3, 2013 Share Posted May 3, 2013 I've recently began dabbling with this and am having some success in a local environment. The gist of my game is multiplayer snail breeding and racing. Users can register and log in, save and load their snails, create races, etc - all of which gets pushed to a database on the server. Here is the total list of technologies/frameworks I'm using for this: ImpactJS for the engine. Node.js for the serverMongoDBMongooseSocket.ioNow that I've gotten the hang of the basic principles and guidelines getting data to and from the server is pretty simple. I predict that my main challenges will be:Finding free hosting for my serverManaging to migrate this to a live environment smoothlySecurity of the database Well, here you go with a list of node.js servers, some of which are free (and they are noted):https://github.com/joyent/node/wiki/Node-Hosting I remember there being "the free nodejs server" which was the best by far, but I can't remember what it was. I think they were affiliated with a learning site or something like that but I might be mixing them up. I'll update if I remember. update: well, as far as I can tell, it seems appfog's free plan is the best free option available. Someone please correct me if I'm wrong! Lazer 1 Quote Link to comment Share on other sites More sharing options...
Lazer Posted May 3, 2013 Share Posted May 3, 2013 Well, here you go with a list of node.js servers, some of which are free (and they are noted):https://github.com/joyent/node/wiki/Node-Hosting I remember there being "the free nodejs server" which was the best by far, but I can't remember what it was. I think they were affiliated with a learning site or something like that but I might be mixing them up. I'll update if I remember. update: well, as far as I can tell, it seems appfog's free plan is the best free option available. Someone please correct me if I'm wrong!Ah excellent, thank you! I will try appfrog. Quote Link to comment Share on other sites More sharing options...
Chris Posted May 3, 2013 Share Posted May 3, 2013 Appfog is great!It only has no websockets currently but they say they are working on an update. Quote Link to comment Share on other sites More sharing options...
Lazer Posted May 3, 2013 Share Posted May 3, 2013 Oh crap, that's a deal breaker for me I'll have to find something else(Edit: Actually, after some searching around I think I may be able to use it despite lack of websockets. It's not ideal and I'll keep looking around for other options, but at least there's that) Quote Link to comment Share on other sites More sharing options...
Autarc Posted May 5, 2013 Share Posted May 5, 2013 You can find a few provider in this thread as well. Depending on your plans (e.g. open vs. closed source), you can probably find one which fits your needs As for the database handling, I would recommend to use Firebase - still free during the beta - which allows you to store and retrieve the required data for the account managing quite easy. The security issue shouldn't be a problem, as you will probably just access the records from your backend and not send them directly from the client Quote Link to comment Share on other sites More sharing options...
stevejohnson Posted May 10, 2013 Share Posted May 10, 2013 I used Firebase for my Ludum Dare entry. It's probably no good for hyper-realtime stuff (anything with bullets), but for anything where 300ms latency is acceptable, it works great. Blog post: http://www.ludumdare.com/compo/2013/05/04/how-i-made-a-realtime-multiplayer-art-piece-in-48-hours-and-how-it-turned-out/ Game: http://www.ludumdare.com/compo/ludum-dare-26/?action=preview&uid=3120 Quote Link to comment Share on other sites More sharing options...
soybean Posted May 11, 2013 Share Posted May 11, 2013 I've tried using pubnub for a simple multiplaying game with ImpactJS. It's kinda awkward (for me at least) at first but once you get the idea, it's not so bad. I haven't tried it with more than 10 users at once though.. Quote Link to comment Share on other sites More sharing options...
whirlibulf Posted May 12, 2013 Share Posted May 12, 2013 I used pubnub for a while. They keep increasing the price or changing the pricing scheme without any notice. If your multiplayer game has small sessions (less than 10 players), it should be fine. If you are using it to broadcast messages to your entire player base (eg. sending a single message to hundreds of players at once) then it is quite expensive. Because of that, it's not very suitable for many kinds of games. Quote Link to comment Share on other sites More sharing options...
Chris Posted May 12, 2013 Share Posted May 12, 2013 At a first glance, pubnub looks very similar to http://pusher.com - which I found a bliss to use.Pubnub seems to be a little bit cheaper than pusher - on the other hand, pusher does offer a free plan with 20 connections and 100.000 messages/day. I would not recommend using both of those services for real-time games. Your server has to send a message to THEIR servers, which then forward it to your clients. The other way around, its the same.Its way faster to set up the game server in node.js and use for example socket.io for direct Websockets communication. Quote Link to comment Share on other sites More sharing options...
Quetzacotl Posted May 12, 2013 Share Posted May 12, 2013 I'm hosting my twisted websocket server on VPS at OVH and it works great. But you have to setup enviroment yourself, yet it's not a big problem. I pay about 10 euro per month, but I'm testing right now only, I'll probably need more resources later so price will raise. Quote Link to comment Share on other sites More sharing options...
soybean Posted May 12, 2013 Share Posted May 12, 2013 Is it true that Safari on iOS is unable to use websockets? I've been told so, and that's why I had considered pubnub. I don't have an iOS device so I really don't know. Does anyone know what did they use for BrowserQuest? Quote Link to comment Share on other sites More sharing options...
Quetzacotl Posted May 12, 2013 Share Posted May 12, 2013 BrowserQuest is using websocket protocol and node.js as a server. I would never use push technology for a real time game, it's too slow. Quote Link to comment Share on other sites More sharing options...
Chris Posted May 12, 2013 Share Posted May 12, 2013 Websockets are available on iOS but not on android stock browser. Quote Link to comment Share on other sites More sharing options...
kchecker Posted June 25, 2013 Share Posted June 25, 2013 gamooga.com and shephertz.com are good solutions for RT MP games I've just recently tried gamooga and it works fine. Plus its really easy to deploy. soybean 1 Quote Link to comment Share on other sites More sharing options...
Evan Burchard Posted July 4, 2013 Share Posted July 4, 2013 There is a really simple implementation of a 2-player real time game based on Stratego over here: https://github.com/EvanBurchard/jsarcade/tree/master/rts It uses craftyjs (http://craftyjs.com/) socket.io and node. Quote Link to comment Share on other sites More sharing options...
xerver Posted July 4, 2013 Share Posted July 4, 2013 AS a large proponent of node.js and a as a person who as put it into a production environment myself I can personally attest to it's ability to scale. It is as scalable as you build the system, and it scaled fantastically. Distributed network systems are exactly the type use cases node was created for. That being said, Pomelo is a pretty amazing game server framework. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.