pixelart_suggest_tile_size
Suggests an optimal pixel size for a single tile in a pixel art game. Uses object category or screen resolution to determine tile dimensions, ensuring even division of the screen.
Instructions
Suggest an ideal size in pixels for ONE tile -- NOT a full tilemap/level image.
Uses a 16-pixel-per-unit (PPU) base-grid convention by default. If
category is given (small_prop, character, large_character,
structure, large_structure) it takes priority. Otherwise, if a
target screen resolution is given, picks a PPU that divides the
screen evenly. Falls back to a 16x16 default.
IMPORTANT: the result is one tile's size. A playable tilemap/level is a grid of MANY tiles at this size, not a single canvas this size -- call pixelart_suggest_tilemap_layout next to work out the grid, then pixelart_create_tileset to build it. Never export a single tile-sized canvas as if it were the whole tilemap.
Args: params: category, screen_width, screen_height (all optional). Returns: JSON string: {"tile_width", "tile_height", "ppu", "reasoning", "note"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |