From 3ebb7582afc24992674cf6ebc0d6f314569d727f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 7 Jul 2024 15:25:48 +0200 Subject: transmit boosting state --- test-client/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test-client/main.ts') 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) { -- cgit v1.2.3-70-g09d2