diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-22 16:55:17 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-22 16:55:17 +0200 |
| commit | 04e212f3ac61e9af772d803271875e057e498072 (patch) | |
| tree | d58197e626869463b3e8d49b03135c2861551c66 /test-client | |
| parent | b34b2a5b8d118974502c015912e1ed67fa6965b0 (diff) | |
| download | hurrycurry-04e212f3ac61e9af772d803271875e057e498072.tar hurrycurry-04e212f3ac61e9af772d803271875e057e498072.tar.bz2 hurrycurry-04e212f3ac61e9af772d803271875e057e498072.tar.zst | |
Fix step is_busy and stop moving when interacting
Diffstat (limited to 'test-client')
| -rw-r--r-- | test-client/main.ts | 2 | ||||
| -rw-r--r-- | test-client/protocol.ts | 3 | ||||
| -rw-r--r-- | test-client/visual.ts | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index 9267270b..fe21f1ac 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -338,7 +338,7 @@ function packet(p: PacketC) { } break; case "debug": - debug_events.set(p.key, { timeout: 0.5, ...p }) + debug_events.set(p.key, p) break; default: console.warn("unknown packet", p); diff --git a/test-client/protocol.ts b/test-client/protocol.ts index d0789376..609a4518 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -159,7 +159,8 @@ export interface DebugEvent { key: string, color: [number, number, number] display: DebugEventDisplay + timeout: number } export type DebugEventDisplay = { ty: "path", points: Vec2[] } - | { ty: "label", pos: Vec2, text: string }
\ No newline at end of file + | { ty: "label", pos: Vec2, text: string } diff --git a/test-client/visual.ts b/test-client/visual.ts index c06edff0..823fc006 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -114,9 +114,9 @@ function draw_debug_events() { ctx.stroke() } else if (ev.display.ty == "label") { ctx.font = "0.2px sans-serif" - ctx.strokeStyle = "black" + ctx.strokeStyle = "white" ctx.fillStyle = color - ctx.lineWidth = 0.1 + ctx.lineWidth = 0.05 ctx.textAlign = "center" ctx.textBaseline = "middle" ctx.lineJoin = "round" |