21 questions
0
votes
0
answers
71
views
Parse date from lancedb formatted iso string to chrono in Rust
I'm working on an application that uses lancedb's Rust crate for storage. I'm saving dates as unix integers, but LanceDB formats them as iso strings with a trailing decimal... sometimes.
Last Read: &...
0
votes
1
answer
479
views
How do you time travel across groups of tables in delta/iceberg?
I am new to these table formats that allow time travel (Dela/iceberg/lance), but it's unclear to me how to manage dependencies across tables.
Suppose you have tables A, B, and C, where C builds on B ...
1
vote
1
answer
100
views
How does lance-gg know whether to load the client
I am trying to write a unit test for a Renderer subclass from lance-gg
// test/client.js
const lance = require('lance-gg');
console.log(lance);
{
GameEngine: [Function: GameEngine],
GameWorld: [...
1
vote
1
answer
162
views
Lance-gg game socket.io failed to load resource on digital ocean
My lance-gg game works on localhost, but now that I have tried to deploy on digital ocean the site seems to be hosting but I can't connect the socket.io. The error in the client browser is:
[Error] ...
0
votes
1
answer
41
views
player position bending collides with wall
I want my player position to be forcefully set to a new position behind a static wall. On clients even with position bending at 1.0 the players smash into the wall rather than go through to the other ...
1
vote
0
answers
58
views
Lance Pong example not working in browser: 'bundle.js' missing
I hope everyone is safe and well. I followed the Lance Pong tutorial, all went well, server is running on 3000 on an ubuntu server with apache with ProxyPass enabled, and happily reporting players 1 ...
1
vote
1
answer
94
views
What is the frame sync sync option?
Interpolation and extrapolation are explained in the docs, and they make sense. What is the frame sync option? I tried looking at the code a bit, but it would help to get an official description.
1
vote
0
answers
330
views
Multiple Game Instances
Im playing around with Lance, and i was wondering how you would manage multiple games on a single server. Let's say a game can have a Max of 5 users, how would this setup look? Thanks in advance.
...
2
votes
1
answer
259
views
Aframe component can't reference el from event handler
I am trying to write a game using lance-gg library.
I tried to implement a simple aframe component, that print entity's object3D position and rotation in world space.
The problem is that I cannot ...
2
votes
1
answer
222
views
Tile-based movement with Lance game engine?
I'm using Lance for a game where the gameplay area is a tiled map. When a player presses the left-arrow key, their character should move one tile to the left, etc. I tried two approaches, see below, ...
2
votes
2
answers
156
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.
2
votes
1
answer
187
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
1
answer
614
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
1
answer
107
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
1
answer
298
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
1
answer
135
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
1
answer
114
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
1
answer
149
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 ...
5
votes
1
answer
545
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 ...
4
votes
1
answer
149
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 ...
4
votes
1
answer
3k
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 ...