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

Prochaine révision
Révision précédente
en:yaml:tiles-tilemaps [2026/05/07 03:16] – Documentation interactions YAML cyrilfiestaen:yaml:tiles-tilemaps [2026/07/15 01:41] (Version actuelle) – maj 4.13 : modes d'interface + corrections cyrilfiesta
Ligne 11: Ligne 11:
 </code> </code>
  
-The complete form is+The complete form is %%[[url:NxM:col:row]]%%.
- +
-<code> +
-[[url:NxM:col:row]] +
-</code>+
  
   * ''N'' is the number of columns in the spritesheet.   * ''N'' is the number of columns in the spritesheet.
   * ''M'' is the number of rows in the spritesheet.   * ''M'' is the number of rows in the spritesheet.
   * ''col'' and ''row'' are the tile coordinates, starting at 0.   * ''col'' and ''row'' are the tile coordinates, starting at 0.
 +
 +Inside text, a tile is limited to the same size as a regular picture. Clicking it enlarges only the selected cell, not the whole spritesheet.
  
 ===== Building A Grid ===== ===== Building A Grid =====
Ligne 41: Ligne 39:
 frame: | frame: |
   [[grid:3x3]]   [[grid:3x3]]
-  /scenarios/images/test/tiles.png:4x4:{map_x}:{map_y}+  /scenarios/images/test/tiles.png:4x4:0:0 | /scenarios/images/test/tiles.png:4x4:1:0 | /scenarios/images/test/tiles.png:4x4:2:
 +  /scenarios/images/test/tiles.png:4x4:0:1 | /scenarios/images/test/tiles.png:4x4:{map_x}:{map_y} | /scenarios/images/test/tiles.png:4x4:2:
 +  /scenarios/images/test/tiles.png:4x4:0:2 | /scenarios/images/test/tiles.png:4x4:1:2 | /scenarios/images/test/tiles.png:4x4:2:2
   [[/grid]]   [[/grid]]
 </code> </code>
Ligne 51: Ligne 51:
   * If the grid has fewer cells than expected, missing cells are filled with white placeholders.   * If the grid has fewer cells than expected, missing cells are filled with white placeholders.
   * If tiles with different sizes are mixed, display is normalized to one common size.   * If tiles with different sizes are mixed, display is normalized to one common size.
 +  * Several cells may use the same spritesheet, including when it is already cached.
   * 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.
en/yaml/tiles-tilemaps.1778116560.txt.gz · Dernière modification : de cyrilfiesta