Increase icon size in last played.

This commit is contained in:
yukirij 2024-10-13 21:15:03 -07:00
parent 2104e1e097
commit 9a9eecdb9c

View File

@ -248,9 +248,9 @@ const UI = {
let piece_name = GAME.Const.Piece[piece].name; let piece_name = GAME.Const.Piece[piece].name;
if(promoted) { if(promoted) {
GAME_ASSET.Image.Promote.draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); GAME_ASSET.Image.Promote.draw(ctx, canvas.height, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote);
} }
GAME_ASSET.Image[piece_name].draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], color); GAME_ASSET.Image[piece_name].draw(ctx, canvas.height, [size * (1 + (2 * i)), size], color);
} }
}, 10, moves, record.moves); }, 10, moves, record.moves);
@ -404,9 +404,9 @@ const UI = {
let piece_name = GAME.Const.Piece[piece].name; let piece_name = GAME.Const.Piece[piece].name;
if(promoted) { if(promoted) {
GAME_ASSET.Image.Promote.draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote); GAME_ASSET.Image.Promote.draw(ctx, canvas.height, [size * (1 + (2 * i)), size], INTERFACE.Color.Promote);
} }
GAME_ASSET.Image[piece_name].draw(ctx, 1.5 * size, [size * (1 + (2 * i)), size], color); GAME_ASSET.Image[piece_name].draw(ctx, canvas.height, [size * (1 + (2 * i)), size], color);
} }
}, 10, moves, record.moves); }, 10, moves, record.moves);