Skip to main content

Questions tagged [node.js]

Node.js is a framework for making server-side Javascript applications, which is becoming more and more popular for game development. It endorses asynchronous I/O and implements CommonJS standards.

Filter by
Sorted by
Tagged with
2 votes
1 answer
759 views

I am building a 2d top down multiplayer mmo. very lightweight. a note on architecture I am using Unity as an engine, I have a backend Nodejs/socket.io websockets server. and a main Master client ...
Svp's user avatar
  • 143
2 votes
1 answer
1k views

I have to implement cron jobs in to my MMO browser game. Its like in Travian game - you build something, and wait few minutes or hours.. But the problem is, that cron job shedulers made to be sheduled ...
mansim's user avatar
  • 191
1 vote
0 answers
442 views

I'm developing a game with LibGDX, and right now I'm trying the multiplayer part. I have managed to connect several players through Node.js and socketIO but when I try to make the lobby I am doubting ...
Kuru's user avatar
  • 11
3 votes
0 answers
150 views

So here I made a little shooter game just to play around with and on my pc it runs fine but for people with worse internet/less powerful computers (e.g at school/few friends of mine) it is quite laggy ...
JohnT's user avatar
  • 43
1 vote
0 answers
223 views

I'm new to exciting world of Unity, and I have problem establishing network connection using NetworkTransport API. I'm using NodeJS as server. And I have some questions. Does NetworkTransport.Connect ...
metsawyr's user avatar
0 votes
1 answer
806 views

I've made a simple multiplayer game using socket.io, and took a lot of help from YouTube and the Internet on how to do it. However, the tutorials only talk about how to run the server locally, and ...
SIMMORSAL's user avatar
  • 101
1 vote
1 answer
921 views

I have a question, I need a formula to calculate the distance and a force based on the speed that drags the finger up on the phone. And is there any way I can get a look? And also shows the trajectory ...
Lucas's user avatar
  • 31
0 votes
1 answer
106 views

So I am developing a poker card game using JS +node.js + socket.io. It is turn-based game. There will be a host and 4 other players.The flow is the players need to make a yes/no choice, then the host ...
Frostless's user avatar
  • 113
1 vote
0 answers
397 views

First hello and sorry for my English, and now about my problem. I create node.js server that communicates with the browser-client for player position, life, def, ...
Георги Няголов's user avatar
1 vote
2 answers
362 views

I am using JavaScript + Node.js+Websockets to develop a multiplayer card game. In my single game version the Win determining calculation is done on the client side (of course) with a function. It ...
Frostless's user avatar
  • 113
0 votes
2 answers
837 views

I am working on a MOBA game similar to League of Legends. I am building the game server system in NodeJS/Socket.IO but I'm running into issues on figuring out the best way to handle projectiles (aka ...
Jacob Cross's user avatar
0 votes
1 answer
100 views

I'm having trouble figuring out how to spawn more than one item in to a container with a weight limit. What I'm having trouble with is the understanding, rather than what statements to write; My ...
MoshMage's user avatar
  • 101
0 votes
1 answer
158 views

My server looks like this - ...
joe's user avatar
  • 121
0 votes
1 answer
130 views

I'm creating a small game to learn how NodeJS & Sails work (and by extension Waterline, Socket.io, Express, and all their components). I'm using websockets to make the server calculate the ...
Alex Rock's user avatar
  • 101
0 votes
1 answer
2k views

Recently I started developing my tiny html5 multiplayer game made in Node.js, Express.js, MongoDB(Mongoose), Socket.io and using Phaser.js. I am quite new to these frameworks and especially new to ...
UzendayoNE's user avatar
1 vote
1 answer
874 views

I am building a simple turn-based game in node.js using sockets.io. My web experience with node.js has typically involved saving everything to a relational database. I set this up for my game. I am ...
user5505266's user avatar
2 votes
0 answers
74 views

I'm trying to check if a pixel of a certain color at (x,y) has moved within a boundary of [(x1,y1),(x2,y2)] and also update its new position to console. I'm doing this as a desktop application so no ...
LazerStackr's user avatar
2 votes
2 answers
1k views

I am having a look at redeveloping an old flash based top-down zombie shooter game I made in highschool so that it supports multiplayer using socket.io. My ...
Marty's user avatar
  • 49
1 vote
0 answers
122 views

I have a nginx load balancer with 4 nodejs instances behind it, and one Redis server to ...
MakeWebSocketsGreatAgain's user avatar
0 votes
1 answer
2k views

If player's browser don't support WebGL, I want to redirect Web Player version. I think it's possible in UnityLoader.js file but how? ...
Friction's user avatar
9 votes
2 answers
2k views

I'm creating a simple racing game (spaceships, no gravity) using p2.js, phaser and node.js. What I have done: Client receives world state from server: extrapolate other players based on latest ...
Yozer's user avatar
  • 91
5 votes
2 answers
1k views

What's the usual way to handle events that are checked both on server and the client, like attacking? There's a cooldown timer to an attack of which the client is aware (so to prevent spamming server ...
TheAlmightyOne's user avatar
8 votes
2 answers
4k views

Is SSL necessary for a web game? I'm using Node.js with socket.io. Without it, when using unsecured networks someone on the LAN could change commands being sent to the server and "take over" a player....
Ronen Ness's user avatar
-1 votes
1 answer
2k views

I am developing a 2D multiplayer game as follow: semi-authoritative server handle up to 40 players per game. Players and other game objects will interact/collide with each other Physics like ...
Devester's user avatar
  • 133
1 vote
1 answer
1k views

OK guys, I have some experience with 2D game development (single player only), so that's fine no questions here. The problem is with multiplayer games. I already read lots of other questions and ...
Devester's user avatar
  • 133
1 vote
1 answer
668 views

So I've been coding a little project in JS recently, using node.js and socket.io to create a server, and HTML5 canvas to draw the client side. The user receives info from the server every 20ms, and ...
Cameron C's user avatar
2 votes
1 answer
142 views

I'm making a multiplayer game in HTML5 Canvas and Node using Express and Socket.io. It's a platformer style game and so far the players are able to see each other and move around on the screen. It ...
Phoenix1355's user avatar
2 votes
1 answer
1k views

I'm building this game mostly because I want to experiment with Node.js and Socket.io, and the game is more like a proof of concept. To start with, I have a 2D grid system as the game map. ...
Arch1tect's user avatar
  • 297
0 votes
1 answer
151 views

I'm making a collaborative whiteboard app so that when someone is drawing and uses a rectangle for example, a rectangle packet is sent to the server with parameters like ...
Lawrence Douglas's user avatar
1 vote
2 answers
160 views

I'm developing a game that has a lot of rooms and most rooms will have between 2 and 15 users. On the UI there is a list of all the players currently in the room. I'm wondering, when someone joins a ...
Charles Aube's user avatar
-1 votes
2 answers
752 views

I'm developing a network game with node.js and I have the choice between these three options: 1) Send each point individually (very user responsive) 2) Send an update every 25 points or so (decent ...
John Smith's user avatar
2 votes
3 answers
159 views

Sorry if my title is a little vague, I wasn't entirely certain how to word this specific question. I'm developing a small little MMORTS game, and in this game is the world map which consists of ...
josh's user avatar
  • 45
1 vote
1 answer
986 views

I'm in the process of learning how to create browser based html5 games. I'd like to eventually be able to achieve a game with mechanics very similar to that of the game agar.io. I've been observing ...
kylepdavis's user avatar
-3 votes
1 answer
333 views

I'm building a browser game about countries, cities, the user control his city, building it upgrading it, can fight other cities in the same country, elections and war between countries, peace, trade ...
Art3mix's user avatar
  • 107
1 vote
1 answer
1k views

How can I connect to a nodejs socket.io server from a cocos2djs game? I've google all the way to no avail. I tried this but it ...
Anderson Madeira's user avatar
0 votes
0 answers
164 views

I have a multiplayer game done with Phaser, which runs in the browser and on a node.js server. The server is authoritative, every 50ms or so it sends the game state object to all clients. The clients ...
Cristy's user avatar
  • 187
0 votes
2 answers
869 views

I am developing game using libGDX libraries . I want to create multiplayer mode , where several players can play at the same time in the same room , each player can create his own room and other ...
Vahe Muradyan's user avatar
0 votes
1 answer
298 views

I'm developing a card game server. I want to do this : While server process a turn for players, players have 20 seconds to do something. If players send a request to server within 20 secs, timer will ...
Dao Quoc Khanh's user avatar
0 votes
3 answers
2k views

I'm new to game server develop. I'm developing a card game server. How could I make nodejs server wait for few seconds then push data to client after an event fired ? Example : in poker game, one ...
Dao Quoc Khanh's user avatar
0 votes
1 answer
3k views

Would it be suitable for making 3D games in an open world? Of course provided that I : create a node add-on in order to bind opengl code a native layer for making threads and processes I can almost ...
Vinz243's user avatar
  • 133
0 votes
1 answer
1k views

I want to create a multiplayer game using Isogenic engine i understand that this technology uses html5 and canvas for rendering graphics in frontend and node.js for backend. I started working on how ...
Kumzis's user avatar
  • 3
3 votes
2 answers
2k views

I was wondering if Node.js was suitable for making games and apart from threads and engines, a big problem is can I port my game to Xbox or PS3/PS4?
Vinz243's user avatar
  • 133
1 vote
2 answers
218 views

With many games it is said that server will assume that clients keep track of the world accurately. Assuming this is true, for a browser based multiplier space invaders game you would only tell the ...
Nikos's user avatar
  • 141
0 votes
1 answer
632 views

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 ...
RB-Develop's user avatar
1 vote
1 answer
1k views

I am making a gamemaker multiplayer game using 39dll's tcp sockets. As I want to host the server (and my javascript knowledge is a lot better), I use node.js for the server. I have already got ...
MarijnS95's user avatar
  • 111
6 votes
1 answer
3k views

I'm currently creating a multiplayer game using the HTML5 framework Phaser. It's a game where zombies spawn on the map and players have to shoot them to kill them. The zombies target players that are ...
kalittles's user avatar
  • 163
1 vote
1 answer
843 views

Recently I made a 2D offline game with HTML5 Canvas and JavaScript. I'm detecting collisions by first checking whether image bounding boxes overlap. If they do, I check against the bounding boxes, ...
Matthew's user avatar
  • 21
1 vote
1 answer
2k views

Background I'm using the lockstep model for a multiplayer Node.js/Socket.IO game in a client-server architecture. User input (mouse or keypress) is parsed into commands like ...
Wakaka's user avatar
  • 147
0 votes
1 answer
548 views

I'm currently developing a HTML5 Canvas Multiplayer Game using NodeJS and Socket.IO. My current setup using a logic loop on the NodeJS Server-end and sending update information to all Clients in this ...
devlsh's user avatar
  • 223
9 votes
2 answers
9k views

I'm developing a 2D HTML5 Canvas Game, and I am trying to think of the most efficient way to implement a Physics Loop on the server-end of things, running NodeJS and Socket.IO. The only method I've ...
devlsh's user avatar
  • 223