All Questions
Tagged with multiplayer javascript
87 questions
0
votes
0
answers
84
views
Tic Tack Toe Multiplayer
I'm going to create a tic tac toe multiplayer game with sockets and cookies, where it can include two players who can choose their own name and color, the game has a play again button that restarts ...
0
votes
0
answers
102
views
How would I synchronize a multiplayer pong game for all players in firebase realtime database?
I've been working on a simple multiplayer pong game for the browser using javascript but can't for the life of me figure out how to start the game for all players without everything getting desynced.
...
-1
votes
1
answer
707
views
need help making html(with js) chat application online
currently making a chat application with my friend that we intended on making online, after we made the chat system itself we wearnt actually sure how to make it online. we tried countless things but ...
0
votes
2
answers
63
views
Problems With Client Side Prediction for X-Velocity in JavaScript
So I'm trying to code a simple online multi player game using JavaScript and WebSockets.
And I'm currently working on combatting lag issues:
To do so I measure the amount of time it takes for the ...
0
votes
0
answers
235
views
Socket.io is connecting/creating 2 clients when it should be connecting 1
So I'm making a basic multiplayer game (my first multiplayer game)
just started on it, this is the code that I have for the socket.io connection
when 1 player connects to the server (opens localhost:...
0
votes
1
answer
227
views
Connecting players' local games together
I'm looking for a special answer that i can't find anywhere and i need your help/ideas:
The situaton:
I'm making a mobile web-game that is played on mobile phones. Every player has its own version and ...
1
vote
1
answer
308
views
Network a-frame with nav-mesh or collision is not working. Either of one is working and not both
I'm using camera attached to head template also added this camera inside a rig and that rig is constrained to nav-mesh but only one is working either movement control of rig or wasd control of camera ...
0
votes
1
answer
639
views
How to implement server-side multiplayer for a simple JS game?
Thank you, this is my first post so please correct me on any etiquette. I am a beginner programmer and I want to make a game in JavaScript for one of my classes. Specifically, my Latin class for an "...
3
votes
0
answers
597
views
How do I repeatedly interpolate linearly between two values within a requestAnimationFrame loop
I'm trying to implement multiplayer position interpolation for my canvas game but I'm having trouble using my linear interpolation (lerp) function. I experience slight jitter when using t = 0.1 so I'm ...
1
vote
1
answer
381
views
Check if user clicks on client besides them
I'm trying to detect if a user clicks on a client besides them. If you try the project (https://multiplayer-movement.stcollier.repl.co/) and open the console, (move with arrow keys) if you click on ...
2
votes
1
answer
509
views
How to share WebXR Anchors over the network?
I'm trying to share anchors from WebXR over the network with other clients. However, they only have one property, anchorSpace, which itself doesn't have any properties:
hitTestResult.createAnchor()....
0
votes
1
answer
524
views
How much data can be stored in single JS object on a server that shares state between clients?
I have a socket.io server that powers a multiplayer browser game. The separate ongoing matches are stored inside a single object in-memory on the server-side:
const matches = {};
When a player ...
0
votes
1
answer
34
views
Only Last Player Is Visible In Game
I'm trying to make a simple multiplayer game with HTML, and I can't figure out how to fix the problem with only 1 player being shown. Here's the relevant code:
socket.on('newpos', function(data){
...
0
votes
2
answers
966
views
How would I attach a randomly generated string to react router useParams()?
My question explanation:
Basically I am trying to create a multiplayer web game. I am running into a logical issue when trying to understand how to get a new page to open upon "Start new Game&...
1
vote
1
answer
112
views
Why does my player movement system not work when I set the position of the image to a variable?
I'm making a player movement system with WASD keys for my multiplayer .io game in HTML5 canvas and when I added the movement system and then changed the x, y,); parameters from constant numbers like ...