1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Adjust item size

This commit is contained in:
tobspr 2020-09-22 11:21:45 +02:00
parent 1ec8b4fe28
commit b0058cb59b

View File

@ -112,7 +112,7 @@ export class MapChunkView extends MapChunk {
if (patch.item.getItemType() === "shape") { if (patch.item.getItemType() === "shape") {
const destX = this.x * dims + patch.pos.x * globalConfig.tileSize; const destX = this.x * dims + patch.pos.x * globalConfig.tileSize;
const destY = this.y * dims + patch.pos.y * globalConfig.tileSize; const destY = this.y * dims + patch.pos.y * globalConfig.tileSize;
const diameter = 100 / Math.pow(parameters.zoomLevel, 0.35); const diameter = 80 / Math.pow(parameters.zoomLevel, 0.35);
patch.item.drawItemCenteredClipped(destX, destY, parameters, diameter); patch.item.drawItemCenteredClipped(destX, destY, parameters, diameter);
} }
} }