aboutsummaryrefslogtreecommitdiff
path: root/test-client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-22 16:55:17 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-22 16:55:17 +0200
commit04e212f3ac61e9af772d803271875e057e498072 (patch)
treed58197e626869463b3e8d49b03135c2861551c66 /test-client
parentb34b2a5b8d118974502c015912e1ed67fa6965b0 (diff)
downloadhurrycurry-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.ts2
-rw-r--r--test-client/protocol.ts3
-rw-r--r--test-client/visual.ts4
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"