diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-08 14:35:57 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-08 14:35:57 +0200 |
commit | 544054658e4ec7cda694e902eebd7494baf448d5 (patch) | |
tree | 0495c1cbb9aacb87cc8297480df58c545c08ba9f /test-client/visual.ts | |
parent | dc2d0509963afb2d0b23aeb8a9085ade5e5bba93 (diff) | |
download | hurrycurry-544054658e4ec7cda694e902eebd7494baf448d5.tar hurrycurry-544054658e4ec7cda694e902eebd7494baf448d5.tar.bz2 hurrycurry-544054658e4ec7cda694e902eebd7494baf448d5.tar.zst |
test-client: proper two handed mode; closes #246
Diffstat (limited to 'test-client/visual.ts')
-rw-r--r-- | test-client/visual.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |