<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silveira Neto &#187; Mappy</title>
	<atom:link href="http://silveiraneto.net/tag/mappy/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description></description>
	<lastBuildDate>Fri, 09 Mar 2012 04:13:27 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Game map edition using Tiled</title>
		<link>http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/</link>
		<comments>http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 20:48:25 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Adam Turk]]></category>
		<category><![CDATA[Bjørn Lindeijer]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[game map]]></category>
		<category><![CDATA[gamedev]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[map editor]]></category>
		<category><![CDATA[Mappy]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[Tiled]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2085</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/" title="Game map edition using Tiled"></a>Tiled is general purpose game map editor, with support of several map formats (XML, JSON), multi plataform and runs installed or from browser, supports plugins to read and write others map formats and all free (under GPL license). Installing You &#8230;<p class="read-more"><a href="http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/" title="Game map edition using Tiled"></a><p style="text-align: center;"><img class="size-full wp-image-2146 aligncenter" title="Tiled logo" src="http://silveiraneto.net/wp-content/uploads/2009/01/logo.png" alt="Tiled logo" width="200" height="104" /></p>
<p><a href="http://mapeditor.org/">Tiled</a> is general purpose game map editor, with support of several map formats (XML, JSON), multi plataform and runs installed or from browser, supports plugins to read and write others map formats and all free (under GPL license).</p>
<p><a href="http://silveiraneto.net/wp-content/uploads/2009/01/map_editor_tiles_tileset_game-deveopment.png"><img class="size-medium wp-image-2114 aligncenter" title="map editor tiles tileset game deveopment" src="http://silveiraneto.net/wp-content/uploads/2009/01/map_editor_tiles_tileset_game-deveopment-500x343.png" alt="map editor tiles tileset game deveopment" width="500" height="343" /></a></p>
<p><strong>Installing</strong></p>
<p>You can <a title="JNPL" href="http://mapeditor.org/tiled.jnlp">lauch Tiled via Java Web Start</a> or <a title="map editor download" href="http://mapeditor.org/downloads.html">download it&#8217;s lastest version</a> zip file. After download it just unzip it and run:</p>
<blockquote><p>java -jar tiled.jar</p></blockquote>
<p>Make sure you have at least Java 1.5 installed and configured.</p>
<p><strong>Creating a empty map</strong></p>
<p>After<strong> </strong>lauching it, open the menu <em>File</em> → <em>New</em> and create a new 10&#215;10 orthogonal map<strong> </strong>with 32&#215;32 tiles.</p>
<p style="text-align: center;"><strong><img class="size-full wp-image-2137 aligncenter" title="Tiled: New Map" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_new_map.png" alt="Tiled: New Map" width="314" height="223" /></strong></p>
<p>Like this one</p>
<p style="text-align: center;"><img class="size-medium wp-image-2140 aligncenter" title="tiled 10x10 map" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_10x10_map-500x366.png" alt="tiled 10x10 map" width="500" height="366" /></p>
<p><strong>Creating a tileset<br />
</strong></p>
<p>Now we need to add a tileset to start drawing a map. Let&#8217;s use this one</p>
<p style="text-align: center;"><img class="size-full wp-image-2141 aligncenter" title="batalhao tileset cc by sa" src="http://silveiraneto.net/wp-content/uploads/2009/01/batalhao_tileset_cc_by_sa.png" alt="batalhao tileset cc by sa" width="512" height="96" /></p>
<p>Save the tileset image above.  Open the menu <em>Tilesets</em> → <em>New Tileset </em>select<em> Reference tileset image </em>and browser to find the tileset image you saved. Keep tile width and height as 32 and tile spacing and margin as 0.</p>
<p style="text-align: center;"><img class="size-full wp-image-2143 aligncenter" title="tiled new tileset" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_new_tileset.png" alt="tiled new tileset" width="353" height="347" /></p>
<p>Notice a new tab on the <em>Tile palette</em> section.</p>
<p style="text-align: center;"><img class="size-full wp-image-2144 aligncenter" title="tiled tileset" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_tileset.png" alt="tiled tileset" width="574" height="178" /></p>
<p><strong>Working with layers<br />
</strong></p>
<p>Select the first grass tile from the tileset and select the  fill tool (<a href="http://silveiraneto.net/wp-content/uploads/2009/01/bucket.png"><img class="alignnone size-full wp-image-2149" title="bucket" src="http://silveiraneto.net/wp-content/uploads/2009/01/bucket.png" alt="bucket" width="22" height="22" /></a> icon) to create a grass field. Use the paint tool (<a href="http://silveiraneto.net/wp-content/uploads/2009/01/pencil.png"><img class="alignnone size-full wp-image-2150" title="pencil" src="http://silveiraneto.net/wp-content/uploads/2009/01/pencil.png" alt="pencil" width="22" height="22" /></a> icon) to add some stones and trees at random locations on grass. On the <em>Layers</em> section double click at <em>Layer Name</em> and put a name like &#8220;field&#8221;.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_field.png"><img class="size-medium wp-image-2145 aligncenter" title="tiled field" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_field-442x375.png" alt="tiled field" width="442" height="375" /></a></p>
<p>Now let&#8217;s create another layer to put the buildings and streets. We can do that by opening the menu<em> Layer</em> → <em>Add Layer</em> or just clicking the <img class="alignnone size-full wp-image-2147" title="new" src="http://silveiraneto.net/wp-content/uploads/2009/01/gnome-new.png" alt="new" width="16" height="16" /> icon on layer&#8217;s section. Let&#8217;s call it &#8220;city&#8221;.</p>
<p>Now build your city by selecting tiles on the palette and using the paint tool. There&#8217;s tiles for horizontal and vertical street and all kinds of intersection. For the building you can click and drag in the palette to select multiple tiles at once.</p>
<p style="text-align: center;"><a href="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_city.png"><img class="size-medium wp-image-2148 aligncenter" title="tiled city" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiled_city-442x375.png" alt="tiled city" width="442" height="375" /></a></p>
<p><strong>Saving</strong></p>
<p>You can save the map as tmx (XML Tiled map file) , JSON, LUA, wlk, map (<a title="Mappy" href="http://www.tilemap.co.uk/mappy.php">Mappy</a>) or export it as a image. There&#8217;s some options accessible on the <em>Edit</em> → <em>Preferences</em> menu like use base-64  gziped encoding.</p>
<p>Thanks to Adam Turk and  Bjørn Lindeijer for developing that great project.</p>
<p>In a next post I want to show how to integrate this with a Java/JavaFX game.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/01/11/game-map-edition-using-tiled/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

