From 805851a7f7fe28fd81d41550121f540d3f59eddb Mon Sep 17 00:00:00 2001 From: yukirij Date: Mon, 26 Aug 2024 20:23:14 -0700 Subject: [PATCH] Set drop animation origin to column start. --- www/js/interface.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/www/js/interface.js b/www/js/interface.js index 46c3e4e..57a694a 100644 --- a/www/js/interface.js +++ b/www/js/interface.js @@ -635,9 +635,14 @@ const INTERFACE = { // Lerp between pool and board positions. case 1: { - let coord_from = HEX.tile_to_hex(play.from); - from_x = basis_x + (radius * 14); - from_y = basis_y - (9 - (2 * coord_from.y)) * gui_scale; + //let coord_from = HEX.tile_to_hex(play.from); + //from_x = basis_x + (radius * 14); + from_x = to_x; + if((INTERFACE_DATA.player & 1) ^ INTERFACE_DATA.rotate == 0) { + from_y = basis_y - (4 * gui_scale); + } else { + from_y = basis_y + (12 * gui_scale); + } } break; }