Outils pour utilisateurs

Outils du site


en:yaml:tiles-tilemaps

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:yaml:tiles-tilemaps [2026/09/05 17:54] – 4.14 : precisions narratives et exemple de grille mixte 3x2 (FR/EN) cyrilfiestaen:yaml:tiles-tilemaps [2026/10/19 04:16] (Version actuelle) – Retrait du tutoriel 2D et de ses liens, a la demande de l'auteur cyrilfiesta
Ligne 23: Ligne 23:
 ===== Building A Grid ===== ===== Building A Grid =====
  
-This **3×2** grid has **3 columns and 2 rows**. It mixes direct images and tiles extracted from the showcase's 8×16 tileset:+This **3x2** grid has **3 columns and 2 rows**. It mixes direct images and tiles extracted from the showcase's 8x16 tileset:
  
 <code yaml> <code yaml>
Ligne 33: Ligne 33:
 </code> </code>
  
-The dimensions after ''grid:'' describe the assembled grid; those after an image URL describe its source spritesheet. Do not put ''%%[[…]]%%'' around individual cells. Each line supplies one row, with three cells separated by ''|''.+The dimensions after ''grid:'' describe the assembled grid; those after an image URL describe its source spritesheet. Do not put ''%%[[...]]%%'' around individual cells. Each line supplies one row, with three cells separated by ''|''.
  
 Each cell contains either an extracted tile with ''url:NxM:col:row'', or a direct picture URL. Cells are separated with ''|''. Each cell contains either an extracted tile with ''url:NxM:col:row'', or a direct picture URL. Cells are separated with ''|''.
Ligne 59: Ligne 59:
   * The linter reports incomplete grids.   * The linter reports incomplete grids.
   * On adapters that cannot display an interactive tilemap, a fallback rendering is used.   * On adapters that cannot display an interactive tilemap, a fallback rendering is used.
 +
 +===== Grid from a list (4.17) =====
 +
 +<code yaml>
 +lists:
 +  images: [portrait.png, '', 'tiles.png:8x16:2:1']
 +rooms:
 +  - id: gallery
 +    text: '[[grid:3:images]]'
 +</code>
 +
 +The first number sets the columns; rows are calculated. Each value is an image or sprite reference without tags. An empty string reserves a blank cell. The last row is padded if needed; an empty list displays one blank row. The total is limited to **1,000 cells**, including blanks.
 +
 +A list path also works, including inside a loop. Rendering changes no data and adds no movement or collision rules. The ''%%[[grid:3x2]]...[[/grid]]%%'' form remains available.
 +
 +HTML exports collect known images from declared lists and collections. Addresses calculated or received during play follow the dynamic media rules.
  
en/yaml/tiles-tilemaps.1788623651.txt.gz · Dernière modification : de cyrilfiesta