A bi-directional WebSocket protocol makes possible more interaction between a browser and a web site, facilitating creation of real-time games.

learn more… | top users | synonyms

0
votes
1answer
140 views

How to solve problems with movement in simple tile based multiplayer game?

I'm making a simple tile based 2D multiplayer game in JavaScript using socket.io where you can move one tile every 200 ms. The two solutions I've tried are as follows: The client sends "walk one ...
0
votes
1answer
205 views

Developing a general use multiplayer API [closed]

I'm tasked with the development of a general use multiplayer API in JavaScript, with a Node.js back-end. The goal of the API is to provide a service to JavaScript mobile game developers so they can ...
0
votes
1answer
110 views

WebSockets and Python/PyGame

I am looking to start development on a game that will have the server be written in Python/PyGame and the front end be in HTML5. What I would like to do is, with as minimal impact as possible, open ...
0
votes
1answer
840 views

Websocket server thread per connection

I'm creating an html5 multiplayer game and am looking at how to create a websocket server. I've been looking at various libraries and one thing I noticed is that each one will create a new thread for ...
0
votes
3answers
622 views

timezone independant Date.now() for node.js game

I have a game I'm working on using node.js and socket.io. The issue I'm having, is I'm trying to have it so that players execute whatever actions they inputed about 50ms in the future, giving everyone ...
2
votes
1answer
217 views

Handle game flow in turn-based game on server or client side?

Im building a turn-based game using websockets and nodejs. At the end of each turn I want to show some scores before starting the next turn. Should that be controlled by the server using a timer? Or ...
1
vote
1answer
423 views

How to develop a real-time game server for html5 web app?

I'm contemplating a graduate project proposal of developing a rather complex HTML5 game that requires real-time server communication. The premise of the actual game play is simple: 10 players battle ...
0
votes
1answer
177 views

Structure examples for web-based chat for web-based game [closed]

What would be the best tools to use to create a web based chat/messaging system ? for client we have : Browser (any JS solution - preferably without using flash like in jsocket) for server we have : ...
1
vote
1answer
324 views

Tracking player location in realtime 2d mmo

I have read all of the answers here about tracking player locations, but still have some questions. I don't seem to understand how to do this efficiently, and feel that the internet could greatly ...
0
votes
1answer
191 views

Tips on building a real time multi player web platform + framework and/or tookit

I'm trying to develop a multi player game web app which basically should be able to achieve the following goals: Provide a game engine + framework/toolkit to let third party corporation integrate ...
1
vote
1answer
277 views

Is it sensible to run a Socket.IO setImmediate loop for each connected player?

Instead of a game loop, I want something different: My game does not have much action going on; just moving users over a tile map with correct timers in between. Since I am using Socket.IO, I want to ...
1
vote
4answers
458 views

What would be best practice of client comunication in a multiplayer game

Assume that we have a multiplayer game and the users are moving their characters (might be a circle) on the game area. At every game loop some changes can be happened. Should clients send their ...
4
votes
2answers
569 views

Collision detection in pong style multiplayer network game

I've recently implemented an authoritative server (node.js with socket.io) for a multiplayer pong game. I've looked at client side prediction and fixing timesteps and starting to grasp the notion of ...
2
votes
1answer
596 views

Browser UDP Relay with TCP Websocket

I'm wondering if this is possible and what obstacles I might face. I have a game that's browser based, and since I can't send UDP packets from a browser, Can I use a plugin that the browser connects ...
2
votes
1answer
335 views

Particle systems on multiplayer games

I'm working on a 2D javascript/Three.js multiplayer game, using web sockets and an authoritative server currently written in Python. The combat mechanic will be similar to Geometry Wars however i'm ...
1
vote
1answer
469 views

Architectural advice - websockets javascript/php integration

Myself and a friend have started making a game, he's likely to be using impact.js for the user interaction etc, but we need multiplayer functionality so some form of websockets for TCP connections ...
3
votes
4answers
1k views

Turn based game - HTTP or WebSocket?

My game will be a turn based game which will need a server gateway in order to send requests. What would be better for the server: using REST HTTP GET for making the requests? Or using WebSocket which ...
2
votes
2answers
3k views

How to build a turn-based multiplayer “real time” server

I want to build a TCG for mobile devices that is multiplayer over the web (not local wifi or bluetooth). As a player plays cards I want the second player to see what is being played in "real time" ...
0
votes
2answers
481 views

How to handle multiple game sessions where players turn can timeout, using Python and Socket.IO?

I want to make a multi player card game, allowing several people to play with each other (each game session should be able to have between 5 - 10 players). I'm doing this in Python (Django and ...
4
votes
2answers
2k views

In Socket.IO, should I use JSON for communication between server and client?

I'm building an MMO with Socket.IO and Node.js. It works quite fast (though I don't have 1000 players yet) but my feeling is that it's not very optimized. JSON is super cool and easy to use within ...
5
votes
5answers
695 views

How to keep track of players nearby other players in an MMO

I'm confused how to handle the players in my MMO server (using Socket.IO but I think this should apply to any MMO). Suppose there are 2 players in my server that are far away from eachother. I will ...
3
votes
1answer
206 views

What is the best method to serve a real time game on websockets?

The game consists of a world with just one force, gravity. All the players can do is jump and set their velocities with arrow keys. Physical AABBs and sphere's are used for collision. What is the ...
3
votes
1answer
3k views

Latency benchmarks for WebSocket games?

I'm trying to find some actual latency benchmarks for using WebSockets in HTML5 games. If I were to go down this route, I'd probably end up using (as you might expect) Node.js and Socket.IO. However, ...
9
votes
3answers
651 views

How often to update a Game Client about the World?

Using socket.io, I have a communication similar to that of other MMORPGs, a steady connection with messages. In my design so far, the client sends the player's position and animation frame with every ...
13
votes
1answer
12k views

Multiplayer HTML5, Node.js, Socket.IO [closed]

I trying create simple Multi-player with HTML5 Canvas, JavaScript(too using John Resig simple Inheritance library) and Node.js with Socket.IO. My client code: var canvas = ...
8
votes
2answers
3k views

Online multiplayer game basics [closed]

I'm currently working on a c# online multiplayer game in real-time. The aim is to have client/server based connection using the UDP protocol. So far I've used UDP for players' movements and TCP for ...
3
votes
3answers
759 views

Required Security Precautions for Flash / AS3 Multiplayer Game

I have created a couple of games in Flash/AS3 and am playing with programming a flash-based multiplayer (possibly mmo?) game where the application will communicate with a server over a socket ...
1
vote
1answer
2k views

Multiplayer game with Cocos2d-Javascript and Node.js

It is possible to make a multiplayer browser based game using cocos2d-javascript + node.js? If so, is there any tutorial about that?
25
votes
10answers
8k views

Browser-based MMOs (WebGL, WebSocket) [closed]

Do you think it is technically possible to write a fully-fledged 3D MMO client with Browser JavaScript - WebGL for graphics, and WebSocket for Networking? Do you think future MMOs (and games ...
2
votes
4answers
1k views

Serverside libs/examples for html5 WebSocket in .net?

Hey guys, I wanted to know what libraries or examples exist for WebSockets in .NET