<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=DKRDS_Tilemap_%28File_Format%29</id>
	<title>DKRDS Tilemap (File Format) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=DKRDS_Tilemap_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=DKRDS_Tilemap_(File_Format)&amp;action=history"/>
	<updated>2026-06-09T01:34:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.wexosmk.xyz/index.php?title=DKRDS_Tilemap_(File_Format)&amp;diff=667&amp;oldid=prev</id>
		<title>Atlas: Created page with &quot;&#039;&#039;&#039;DKRDS Tilemap&#039;&#039;&#039; is a nameless file format used in &#039;&#039;[https://en.wikipedia.org/wiki/Diddy_Kong_Racing_DS Diddy Kong Racing DS]&#039;&#039; which defines a grid of 32x32 tile cells in order to assemble an image. Each cell in the grid is equivalent to one entry from the accompanying DKRDS Tile Layout file. Rendering all cells in order (from the top-left to the bottom-right tile) produces the complete image. Other filetypes that are commonly associated with tilemaps, and neces...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=DKRDS_Tilemap_(File_Format)&amp;diff=667&amp;oldid=prev"/>
		<updated>2026-05-26T22:18:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;DKRDS Tilemap&amp;#039;&amp;#039;&amp;#039; is a nameless file format used in &amp;#039;&amp;#039;[https://en.wikipedia.org/wiki/Diddy_Kong_Racing_DS Diddy Kong Racing DS]&amp;#039;&amp;#039; which defines a grid of 32x32 tile cells in order to assemble an image. Each cell in the grid is equivalent to one entry from the accompanying &lt;a href=&quot;/index.php/DKRDS_Tile_Layout&quot; class=&quot;mw-redirect&quot; title=&quot;DKRDS Tile Layout&quot;&gt;DKRDS Tile Layout&lt;/a&gt; file. Rendering all cells in order (from the top-left to the bottom-right tile) produces the complete image. Other filetypes that are commonly associated with tilemaps, and neces...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;DKRDS Tilemap&amp;#039;&amp;#039;&amp;#039; is a nameless file format used in &amp;#039;&amp;#039;[https://en.wikipedia.org/wiki/Diddy_Kong_Racing_DS Diddy Kong Racing DS]&amp;#039;&amp;#039; which defines a grid of 32x32 tile cells in order to assemble an image. Each cell in the grid is equivalent to one entry from the accompanying [[DKRDS Tile Layout]] file. Rendering all cells in order (from the top-left to the bottom-right tile) produces the complete image. Other filetypes that are commonly associated with tilemaps, and necessary to create screen backgrounds, are [[DKRDS Texture Tileset]] and [[DKRDS Palette Bank]]. Its type identifier in [[assets.bin]] is &amp;#039;&amp;#039;&amp;#039;0x00&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
The file byte order is always little endian.&lt;br /&gt;
&lt;br /&gt;
== Structure ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Map width&amp;#039;&amp;#039;&amp;#039; in tiles (&amp;#039;&amp;#039;&amp;#039;W&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Map height&amp;#039;&amp;#039;&amp;#039; in tiles (&amp;#039;&amp;#039;&amp;#039;H&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16[&amp;#039;&amp;#039;&amp;#039;W&amp;#039;&amp;#039;&amp;#039;][&amp;#039;&amp;#039;&amp;#039;H&amp;#039;&amp;#039;&amp;#039;] || &amp;#039;&amp;#039;&amp;#039;Grid of tile entries&amp;#039;&amp;#039;&amp;#039;, row-major.&lt;br /&gt;
|}&lt;br /&gt;
 &lt;br /&gt;
=== Tile Entry ===&lt;br /&gt;
Each entry represents a 32x32 tile which contains a reference index and flip attributes. They use the following bit layout:&lt;br /&gt;
&lt;br /&gt;
 A  A  A  A  B  C  D  D  D  D  D  D  D  D  D  D&lt;br /&gt;
 0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Bits !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0-3 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown&amp;#039;&amp;#039;&amp;#039;. Always 0?}}&lt;br /&gt;
|-&lt;br /&gt;
| 4 || &amp;#039;&amp;#039;&amp;#039;Flip vertical&amp;#039;&amp;#039;&amp;#039;. If 1, it mirrors the 32x32 tile on the Y axis.&lt;br /&gt;
|-&lt;br /&gt;
| 5 || &amp;#039;&amp;#039;&amp;#039;Flip horizontal&amp;#039;&amp;#039;&amp;#039;. If 1, it mirrors the 32x32 tile on the X axis.&lt;br /&gt;
|-&lt;br /&gt;
| 6-15 || &amp;#039;&amp;#039;&amp;#039;Tile ID&amp;#039;&amp;#039;&amp;#039;. This is the index into the [[DKRDS Tile Layout]] file (0-1023).&lt;br /&gt;
|}&lt;br /&gt;
 &lt;br /&gt;
== Notes ==&lt;br /&gt;
* Tile index 0 typically represents an empty or fully-transparent background tile. In minimaps, large regions surrounding the track consist entirely of index-0 entries.&lt;br /&gt;
* The flip fields apply to the rendered 32x32 output of the whole 32x32 tile, &amp;#039;&amp;#039;&amp;#039;after&amp;#039;&amp;#039;&amp;#039; all 8x8 sub-tiles within it have been composited. They are independent of the per-sub-tile flip flags stored in the [[DKRDS Tile Layout]] file.&lt;br /&gt;
 &lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle DKRDS Tilemap:&lt;br /&gt;
* (none)&lt;br /&gt;
&lt;br /&gt;
[[Category:Diddy Kong Racing DS File Formats]]&lt;/div&gt;</summary>
		<author><name>Atlas</name></author>
	</entry>
</feed>