Questions tagged [lance]
Lance is an open source JavaScript platform for real-time multiplayer game development. Its primary scope is physics networking and smooth coordination of game object position and attribute for multiple remote players.
2
votes
1answer
22 views
Lance GG : Is it posible to activate game pause?
Is it possible to add pause function to the game.
Without setting all DynamicObject velocity to 0. E.g. the pong game.
0
votes
0answers
17 views
How to include Lance Engine in TypeScript project?
I trying to include Lance Engine in my TypeScript project with no success.
I made several attempts to create a type definition lance.d.ts for lance, but ...
What is the right way to include big ...
2
votes
1answer
67 views
Lance JS library: Spaaace tutorial unresponsive to touch input on mobile
Started trying out the Lance JS library for building multiplayer games. I can't get the Spaace tutorial to accept input on my Android device, a Pixel 2 XL running Android 8.1.0. The game works fine on ...
3
votes
1answer
182 views
Lance.gg in multiplayer html5 game does not sync
I'm trying to make a multiplayer game in HTML5. I found lance.gg and play around. I modified the Pong game like this.
remove Paddle (only Ball left)
set gravity to (0, 0.1)
set Ball.velocity.y = -3 ...
2
votes
1answer
68 views
How do I move objects side to side with lance
Can someone help me make the paddles in the ponggame demo move sideways? I've added the keybinds:
this.controls = new KeyboardControls(this);
this.controls.bindKey('up', 'up', { repeat: true }...
2
votes
1answer
156 views
Best way to communicate server-generated map to client
I am starting out with lance-gg and am building a game in which a new game map is generated every few minutes. The client game engine needs to receive the generated map. Currently I am registering the ...
2
votes
1answer
96 views
What is the proper way to bound an object to another?
I want to have an object that stay at one side of an actor, and so its physics don't need to be computed, and the prediction can be done with the actor itself.
How do I do this properly ?
2
votes
1answer
83 views
Lance Game Engine pong tutorial gets syntax error
In the Lance Game Engine when I try to run their pong tutorial I type:
sudo yarn start
I get this error:
/var/nodes/lancegame/node_modules/lance-gg/src/ClientEngine.js:125
connect(options = {}) ...
4
votes
1answer
101 views
Is it necessary to include GameObjects whose physics are deterministic in worldUpdate?
In order to reduce data transfer size and the computational time for serializing world objects for each worldUpdate, I was wondering if it is possible to omit syncs for objects whose physics can be ...
3
votes
1answer
301 views
Sending “secret” data to individual players in Lance Game
I'm wondering if there is an easy way in lance-gg to send player specific data to each player only, rather than emitting all data to all players.
I wish to have create a poker game, and don't want ...
3
votes
1answer
112 views
What is the best way from grabbing information from a listener and getting it to the game engine?
[Lance] What is the best way from grabbing information from a listener and getting it to the game engine? Currently trying to make the Spaaaceship follow my mouse. I have made a MouseControls.js that ...
3
votes
1answer
1k views
Can I make a multiplayer Phaser game using Lance?
How do I take an existing Phaser game and make it multiplayer?
Can I use the Lance library for this purpose? Both libraries control their own game objects so I don't know how to use the two ...