const scale = 12 const size = 25 scale; const longSide = Mathmax1360 739; const count = MathceillongSide size; 计算在屏幕中心点位置
假设屏幕的宽度为screenWidth,高度为screenHeight,则屏幕中心点位置为:
const centerX = screenWidth / 2; const centerY = screenHeight / 2;
原文地址: https://www.cveoy.top/t/topic/fEp8 著作权归作者所有。请勿转载和采集!