From a4e929212f9b12496287f098f45863e8ba869f34 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 29 Oct 2026 08:49:27 +0800 Subject: [PATCH] context: a part of a few tokens on the map is a tile one sees, not a strip under the gap (AIGCFREE on Discord) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The floor under a part's tile was an area (700px²), so a part laid in a long row beside large ones met it as a strip: 49 tokens of memory beside 72K, the window unknown, came out 193×3.6px, under the tiles' 3px gap, and hidden. A part's tile is now 16px across both ways: one thinner has its value raised by as much and the parts are laid again. --- internal/gui/assets/context.js | 17 +++++++-- internal/gui/tests/context-map.test.cjs | 48 +++++++++++++++++++++---- 2 files changed, 56 insertions(+), 9 deletions(-) diff --git a/internal/gui/assets/context.js b/internal/gui/assets/context.js index 6c31c8457..9cca13a4e 100644 --- a/internal/gui/assets/context.js +++ b/internal/gui/assets/context.js @@ -304,7 +304,7 @@ // to read goes in one tile with the part's other small ones; a part too // small for its items is one tile. Each tile: key (stays across draws), // kind, its item (it), the items it stands for (its), rect in px. - const TILE_MIN = 1500, TILE_MAX = 12, TILE_FLOOR = 700; + const TILE_MIN = 1500, TILE_MAX = 12, TILE_FLOOR = 700, TILE_SIDE = 16; // the look switch's marks: tiles, and a grid of cells const LOOK_MAP = ''; const LOOK_GRID = '