From 544054658e4ec7cda694e902eebd7494baf448d5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 8 Jun 2025 14:35:57 +0200 Subject: test-client: proper two handed mode; closes #246 --- test-client/visual.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test-client/visual.ts') diff --git a/test-client/visual.ts b/test-client/visual.ts index c5f34c1c..80c36da2 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -147,7 +147,12 @@ function draw_player(player: PlayerData) { if (player.boosting) ctx.scale(1.3, 1.3) draw_character(player.class, player.character) ctx.restore() - if (player.item) draw_item(player.item) + ctx.save() + for (const h of player.hands) { + if (h.item) draw_item(h.item) + ctx.translate(0.2, 0.0) + } + ctx.restore() } function draw_player_nametag(player: PlayerData) { -- cgit v1.2.3-70-g09d2