<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.tt-wiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juzza1</id>
	<title>TTWiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://www.tt-wiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juzza1"/>
	<link rel="alternate" type="text/html" href="https://www.tt-wiki.net/wiki/Special:Contributions/Juzza1"/>
	<updated>2026-05-17T10:52:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.tt-wiki.net/index.php?title=GraphicsTemplates&amp;diff=8992</id>
		<title>GraphicsTemplates</title>
		<link rel="alternate" type="text/html" href="https://www.tt-wiki.net/index.php?title=GraphicsTemplates&amp;diff=8992"/>
		<updated>2014-01-30T12:05:32Z</updated>

		<summary type="html">&lt;p&gt;Juzza1: /* Roads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page shall just provide a list of templates for easy use and to avoid re-doing the alignment task&lt;br /&gt;
&lt;br /&gt;
== Landscape ==&lt;br /&gt;
=== Ground tiles ===&lt;br /&gt;
[[File:ground_tiles.png]]&lt;br /&gt;
Normal terrain has 19 different slopes as in the order in the image above. Shown are the grid lines which are part of each ground tile.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
template tmpl_groundsprites(x, y) {&lt;br /&gt;
    [   0+x,   y, 64, 31, -31,  0 ]&lt;br /&gt;
    [  80+x,   y, 64, 31, -31,  0 ]&lt;br /&gt;
    [ 160+x,   y, 64, 23, -31,  0 ]&lt;br /&gt;
    [ 240+x,   y, 64, 23, -31,  0 ]&lt;br /&gt;
&lt;br /&gt;
    [ 320+x,   y, 64, 31, -31,  0 ]&lt;br /&gt;
    [ 398+x,   y, 64, 31, -31,  0 ]&lt;br /&gt;
    [ 478+x,   y, 64, 23, -31,  0 ]&lt;br /&gt;
    [ 558+x,   y, 64, 23, -31,  0 ]&lt;br /&gt;
&lt;br /&gt;
    [ 638+x,   y, 64, 39, -31, -8 ]&lt;br /&gt;
    [ 718+x,   y, 64, 39, -31, -8 ]&lt;br /&gt;
    [ 798+x,   y, 64, 31, -31, -8 ]&lt;br /&gt;
    [ 878+x,   y, 64, 31, -31, -8 ]&lt;br /&gt;
&lt;br /&gt;
    [ 958+x,   y, 64, 39, -31, -8 ]&lt;br /&gt;
    [1038+x,   y, 64, 39, -31, -8 ]&lt;br /&gt;
    [1118+x,   y, 64, 31, -31, -8 ]&lt;br /&gt;
    [1196+x,   y, 64, 47, -31,-16 ]&lt;br /&gt;
&lt;br /&gt;
    [1276+x,   y, 64, 15, -31,  0 ]&lt;br /&gt;
    [1356+x,   y, 64, 31, -31, -8 ]&lt;br /&gt;
    [1436+x,   y, 64, 31, -31, -8 ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are four additional flat rough tiles. They need to be inserted after the usual 19 rough tiles:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
template tmpl_rough(x, y) {&lt;br /&gt;
    tmpl_level_ground(    x, y)&lt;br /&gt;
    tmpl_level_ground( 80+x, y)&lt;br /&gt;
    tmpl_level_ground(160+x, y)&lt;br /&gt;
    tmpl_level_ground(240+x, y)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
template tmpl_additional_rough(x, y) {&lt;br /&gt;
	tmpl_rough(1510+x, y)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Infrastructure ==&lt;br /&gt;
Roads and (default) tracks share a common layout to ease drawing of level crossings and avoid much copy &amp;amp; paste of the underlaying ground tiles, best done by using a layered graphics file.&lt;br /&gt;
=== Roads ===&lt;br /&gt;
Not all tiles are covered by road. The tiles without road can be safely ignored when only adressing roads.&lt;br /&gt;
[[File:template_roads.png]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
template tmpl_level_ground(x, y) { [ x, y, 64, 31, -31,  0 ] }&lt;br /&gt;
template tmpl_short_slope(x, y)  { [ x, y, 64, 23, -31,  0 ] }&lt;br /&gt;
template tmpl_long_slope(x, y)   { [ x, y, 64, 39, -31, -8 ] }&lt;br /&gt;
&lt;br /&gt;
template tmpl_infrastructure_road() {&lt;br /&gt;
    /* Level road tiles */&lt;br /&gt;
    tmpl_level_ground( 82, 40)&lt;br /&gt;
    tmpl_level_ground(162, 40)&lt;br /&gt;
    tmpl_level_ground(242, 40)&lt;br /&gt;
    tmpl_level_ground(322, 40)&lt;br /&gt;
    tmpl_level_ground(402, 40)&lt;br /&gt;
    tmpl_level_ground(482, 40)&lt;br /&gt;
    tmpl_level_ground(562, 40)&lt;br /&gt;
    tmpl_level_ground(642, 40)&lt;br /&gt;
    tmpl_level_ground(722, 40)&lt;br /&gt;
    tmpl_level_ground(  2, 88)&lt;br /&gt;
    tmpl_level_ground( 82, 88)&lt;br /&gt;
&lt;br /&gt;
    /* slopes */&lt;br /&gt;
    tmpl_long_slope (  82, 152)&lt;br /&gt;
    tmpl_short_slope( 162, 152)&lt;br /&gt;
    tmpl_short_slope( 242, 152)&lt;br /&gt;
    tmpl_long_slope ( 322, 152)&lt;br /&gt;
&lt;br /&gt;
    /* Half road tiles */&lt;br /&gt;
    tmpl_level_ground(402, 152)&lt;br /&gt;
    tmpl_level_ground(482, 152)&lt;br /&gt;
    tmpl_level_ground(562, 152)&lt;br /&gt;
    tmpl_level_ground(642, 152)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juzza1</name></author>
	</entry>
</feed>