diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-07 15:25:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-07 15:25:48 +0200 |
commit | 3ebb7582afc24992674cf6ebc0d6f314569d727f (patch) | |
tree | 093d355bb411b051e4e6ba3d80bb061f77b4939b /test-client/main.ts | |
parent | 120eb58c117f251fc548275a7440c2b2492ec6aa (diff) | |
download | hurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar hurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar.bz2 hurrycurry-3ebb7582afc24992674cf6ebc0d6f314569d727f.tar.zst |
transmit boosting state
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) { |