Set drop animation origin to column start.

This commit is contained in:
yukirij 2024-08-26 20:23:14 -07:00
parent 645ac599a7
commit 805851a7f7

View File

@ -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;
}