use TileRef instead of tile

This commit is contained in:
evanpelle
2025-02-01 12:05:11 -08:00
committed by Evan
parent 2068e42982
commit a17ae48cd3
13 changed files with 149 additions and 98 deletions
+7
View File
@@ -15,9 +15,16 @@ export interface Rectangle {
}
export function placeName(game: Game, player: Player): NameViewData {
return {
x: 0,
y: 0,
size: 0
}
const boundingBox = calculateBoundingBox(player.borderTiles());
const rawScalingFactor = (boundingBox.max.x - boundingBox.min.x) / 100
const scalingFactor = within(Math.floor(rawScalingFactor), 1, 1000)