no message
This commit is contained in:
@@ -76,6 +76,8 @@ export const CommonDefine = {
|
||||
Vehicle: 'Vehicle',
|
||||
BlockBase: 'Baseblock',
|
||||
BlockJump: 'JumpBlock',
|
||||
/** 墙砖贴图 key(Border 默认瓦片;仅此类参与墙遮挡) */
|
||||
BlockWall: 'WallBlock',
|
||||
};
|
||||
|
||||
export function addDirection(dir: Direction, delta: number): Direction {
|
||||
|
||||
@@ -80,7 +80,7 @@ export function getHalfCellSize(): { halfW: number; halfH: number } {
|
||||
return { halfW: HALF_W, halfH: HALF_H };
|
||||
}
|
||||
|
||||
/** 等距绘制深度(连续值,移动插值用;与 compareIsoDrawOrder 配套) */
|
||||
/** 等距绘制深度(连续值;关卡 sibling 排序已改用底边 Y + pivot) */
|
||||
export function isoDrawDepthFromWorld(world: Vec3): { x: number; y: number } {
|
||||
const cx = (world.y / HALF_H + world.x / HALF_W) * 0.5;
|
||||
const cy = (world.y / HALF_H - world.x / HALF_W) * 0.5;
|
||||
|
||||
Reference in New Issue
Block a user