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.
21 questions with no upvoted or accepted answers
3
votes
0
answers
173
views
Backend architecture for multiplayer browser text game with a short gameloop
This is my first foray into game-dev and I only have webapp experience professionally. I'm creating a browser game in nodejs/react. It is mostly text-based, so no intensive graphics (think chess.com ...
3
votes
0
answers
149
views
Optimising my Node.js/Js/Socket shooter game
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 ...
1
vote
0
answers
47
views
How do I resolve glitches in grid-based movement due to lag in a network game where player input is handled on a fixed schedule?
Background
I am creating a networked web game using NodeJS, Express, and SocketIO (Note, however, that this question is agnostic to implementation details). I have implemented a client-server ...
1
vote
0
answers
798
views
How to make an update loop in a Node.js game server
I'm making a multiplayer game with a Node.js server, and I'm searching for how to write the game loop.
I'm currently using a setinterval every 15ms, but someone ...
1
vote
1
answer
345
views
NodeJS client gameloop running slightly faster than server gameloop
So I'm working on a real time multiplayer game in NodeJs (Client and Server). Both loops handle the same "physics" (movement at a constant rate) and both are running at 40hz or 40 times per second. I ...
1
vote
0
answers
60
views
How can I run a Node server on the player's machine?
I'm making a game with Unity. The game's multiplayer server runs on Node, but it's only run on my own machine. How do I bundle Node to my game's installer to install it on my player's machine?
1
vote
0
answers
223
views
What is Unity NetworkTransport message encoding and signature
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 ...
1
vote
0
answers
397
views
How to create communication with node.js server to client browser about monsters(object)
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, ...
1
vote
0
answers
120
views
Instanced based game with multiple node instances
I have a nginx load balancer with 4 nodejs instances behind it, and one Redis server to ...
1
vote
1
answer
1k
views
How to use Cocos2dJS to connect to a Socket.IO server?
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 ...
0
votes
0
answers
55
views
multiplayer game using express(for login, registration etc..) and socket.io(for game-actions) what is architecture and how to scale it horizontally?
Hey please sorry if I sound dumb and correct me!
So, I am building multiplayer game using react.js,express.js and socket.io and now really want to deploy after building so and also i want to make my ...
0
votes
0
answers
263
views
Handling big maps server side
How do games handle arrays/objects of billions of lines to load every gameobject/players positions of big maps for example (server side, for authoritative servers)?
I understand it could be split ...
0
votes
0
answers
37
views
Hashing images like CDs for Monster Rancher style randomizations
I have been kicking around an idea for creating a web based game where they can upload images in order to create random monsters/items. This I thought was most similar to how monster rancher ...
0
votes
0
answers
234
views
How do I store card game states in a NodeJS app hosted on Heroku?
I have a turn based card game node app, and in development env I store all game states in memory (1 object per "game" in a big parent object) since these objects are constantly changing and ...
0
votes
0
answers
226
views
Proper way to handle timers at scale
At scale for multi-users, what is the proper way to implement timer updates?
I'm making a game where Users have buildings to upgrade which involve timers (Yes I know there are plenty of questions ...