diff options
Diffstat (limited to 'test-client/main.ts')
-rw-r--r-- | test-client/main.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index 0cd5c4cb..c4db6935 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -159,6 +159,7 @@ function packet(p: PacketC) { if (p.player == my_id) return pl.position.x = pos.x pl.position.y = pos.y + pl.boosting = p.boosting pl.rot = p.rot break; } @@ -289,7 +290,7 @@ function set_interact(edge: boolean) { function tick_update() { const p = players.get(my_id) if (!p) return - send({ type: "position", pos: [p.position.x, p.position.y], rot: p.rot }) + send({ type: "position", pos: [p.position.x, p.position.y], rot: p.rot, boosting: p.boosting }) } function frame_update(dt: number) { |