<?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; tileset</title>
	<atom:link href="http://silveiraneto.net/tag/tileset/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description>the world is a pixel</description>
	<lastBuildDate>Sun, 08 Jan 2012 05:17:57 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>My Free Tileset, version 10</title>
		<link>http://silveiraneto.net/2009/07/31/my-free-tileset-version-10/</link>
		<comments>http://silveiraneto.net/2009/07/31/my-free-tileset-version-10/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 05:05:40 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[Gimp]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[my free tileset]]></category>
		<category><![CDATA[Pixel]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2666</guid>
		<description><![CDATA[My laptop broke and I lose the newest versions of some of my drawing. Fortunately I had backups for most of them. I found out that I had not published the 10th version yet. Here it is. As usual is just little improvements over the last version. This time I added some geography elements. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>My laptop broke and I lose the newest versions of some of my drawing. Fortunately I had backups for most of them. I found out that I had not published the 10th version yet. Here it is.</p>
<p style="text-align: center;"><img class="size-full wp-image-2667 aligncenter" title="pixelart free tileset version 10" src="http://silveiraneto.net/wp-content/uploads/2009/07/free_tileset_version_10.png" alt="pixelart free tileset version 10" width="480" height="1216" /></p>
<p>As usual is just little improvements over <a href="http://silveiraneto.net/2009/04/06/my-free-tileset-version-9/">the last version</a>. This time I added some geography elements. It&#8217;s now possible to create little levels and simple island.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/07/31/my-free-tileset-version-10/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>My Free Tileset, version 9</title>
		<link>http://silveiraneto.net/2009/04/06/my-free-tileset-version-9/</link>
		<comments>http://silveiraneto.net/2009/04/06/my-free-tileset-version-9/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 13:27:26 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[chars]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[laboratory]]></category>
		<category><![CDATA[my free tileset]]></category>
		<category><![CDATA[myself]]></category>
		<category><![CDATA[pixel art]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2464</guid>
		<description><![CDATA[More scenes and tiles for the free and open pixelart tileset. Also new monsters and characters but these will be showed in more details in another post. Scientists discovery that they can&#8217;t keep a Gjelly (one of the new monsters) in cages. And also a little medieval scene. A naive princess got a Nhamnham monster [...]]]></description>
			<content:encoded><![CDATA[<p>More scenes and tiles for the free and open pixelart tileset. Also new monsters and characters but these will be showed in more details in another post.</p>
<p>Scientists discovery that they can&#8217;t keep a <em>Gjelly</em> (one of the new monsters) in cages.</p>
<p style="text-align: center;"><img class="size-full wp-image-2463 aligncenter" title="lab incident" src="http://silveiraneto.net/wp-content/uploads/2009/04/lab_incident.png" alt="lab incident" width="640" height="640" /></p>
<p>And also a little medieval scene. A naive princess got <a title="NhamNham" href="http://silveiraneto.net/2009/03/31/nhamnham/">a Nhamnham monster</a> as her pet.</p>
<p style="text-align: center;"><img class="size-full wp-image-2466 aligncenter" title="cena princessa nhamnham" src="http://silveiraneto.net/wp-content/uploads/2009/04/cena_princessa_nhamnham.png" alt="cena princessa nhamnham" width="640" height="640" /></p>
<p>A new village scene, now with a pier, water, fence and new chars.</p>
<p><img class="size-full wp-image-2467 aligncenter" title="cena pier pixelart" src="http://silveiraneto.net/wp-content/uploads/2009/04/cena_pier.png" alt="cena pier pixelart" width="640" height="640" /></p>
<p>There&#8217;s a plenty of new tiles. Now that we have a good basic tiles becomes easy to add more tiles.</p>
<p style="text-align: center;"><img class="size-full wp-image-2469 aligncenter" title="free_tileset_version_9" src="http://silveiraneto.net/wp-content/uploads/2009/04/free_tileset_version_9.png" alt="free_tileset_version_9" width="480" height="1088" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/04/06/my-free-tileset-version-9/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>My Free Tileset, version 7</title>
		<link>http://silveiraneto.net/2009/02/02/my-free-tileset-version-7/</link>
		<comments>http://silveiraneto.net/2009/02/02/my-free-tileset-version-7/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 15:01:50 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[gamedev]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[tileset]]></category>
		<category><![CDATA[warrior]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2226</guid>
		<description><![CDATA[Another version of the my free tileset project with a lot of improvements. Examples of usage: A hotel I did for helping me in a prototype. Outdoor scenario. A city. Another outdoor scenario. A warrior (unpublished character here) walking in a forest. Changelog: Reorganization of tile positions. Now they are all in a 32&#215;32 grid. [...]]]></description>
			<content:encoded><![CDATA[<p>Another version of the <a href="http://silveiraneto.net/tag/tileset">my free tileset project</a> with a lot of improvements.</p>
<p style="text-align: center;"><img class="size-full wp-image-2227 aligncenter" title="free tileset version 7" src="http://silveiraneto.net/wp-content/uploads/2009/02/free_tileset_version_7.png" alt="free tileset version 7" width="480" height="736" /></p>
<p><strong>Examples of usage:</strong></p>
<p>A hotel I did for helping me in a prototype.</p>
<p style="text-align: center;"><strong><img class="size-full wp-image-2228 aligncenter" title="Pixelart hotel" src="http://silveiraneto.net/wp-content/uploads/2009/02/hotel.png" alt="Pixelart hotel" width="640" height="640" /></strong></p>
<p>Outdoor scenario. A city.</p>
<p style="text-align: center;"><img class="size-full wp-image-2230 aligncenter" title="pixelart city" src="http://silveiraneto.net/wp-content/uploads/2009/02/city.png" alt="pixelart city" width="320" height="320" /></p>
<p>Another outdoor scenario. A warrior (<span style="text-decoration: line-through;">unpublished character</span> <a title="warrior char" href="http://silveiraneto.net/2009/03/29/warrior-my-free-charset-version-3/">here</a>) walking in a forest.</p>
<p style="text-align: center;"><strong><img class="size-full wp-image-2229 aligncenter" title="forest" src="http://silveiraneto.net/wp-content/uploads/2009/02/forest.png" alt="forest" width="289" height="251" /><br />
</strong></p>
<p><strong>Changelog:</strong></p>
<ul>
<li>Reorganization of tile positions. Now they are all in a 32&#215;32 grid.</li>
<li>
<div id="result_box" style="text-align: left;" dir="ltr">Shelf of drinks, two tables and chairs.</div>
</li>
<li>I placed some characters in this tileset just to help during the creation of prototypes. They should not be really used in maps.</li>
<li>Now is possible to create also outdoors scenarios:
<ul>
<li>Two buildings, streets, pedestrian crossing, sidewalks and a manhole cover.</li>
<li>A tree, cut tree and a bush.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/02/02/my-free-tileset-version-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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[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 can lauch Tiled via Java Web Start or download it&#8217;s lastest version zip file. After [...]]]></description>
			<content:encoded><![CDATA[<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>
		<item>
		<title>JavaFX, easy use of tiles</title>
		<link>http://silveiraneto.net/2009/01/06/javafx-easy-use-of-tiles/</link>
		<comments>http://silveiraneto.net/2009/01/06/javafx-easy-use-of-tiles/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:07:38 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2098</guid>
		<description><![CDATA[Continuing my little JavaFX framework for game development, right now focused on use those tiles I&#8217;m drawing and posting here in my blog. This framework will be a group of classes for simplify and hide some complexities of common game development. Right now I wrote just a few of them. Use We create a tileset [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing my little JavaFX framework for game development, right now focused on use those tiles I&#8217;m drawing and posting here in my blog. This framework will be a group of classes for simplify and hide some complexities of common game development. Right now I wrote just a few of them.</p>
<p><strong>Use</strong></p>
<p>We create a tileset from the files.png file that way</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var tileset <span style="color: #339933;">=</span> Tileset <span style="color: #009900;">&#123;</span>
    cols<span style="color: #339933;">:</span> <span style="color: #cc66cc;">15</span> rows<span style="color: #339933;">:</span> <span style="color: #cc66cc;">10</span> height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span> width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span>
    image<span style="color: #339933;">:</span> <span style="color: #003399;">Image</span> <span style="color: #009900;">&#123;</span>
        url<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;{__DIR__}tiles.png&quot;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><img class="size-full wp-image-2110 aligncenter" title="tiles" src="http://silveiraneto.net/wp-content/uploads/2009/01/tiles.png" alt="tiles" width="285" height="237" /></p>
<p>Tileset are orthogonal, distributed into a grid of <em>cols</em> columns and <em>rows</em> rows. Each tile have dimensions <em>height</em> x <em>width</em>.</p>
<p>A Tileset is used into a Tilemap</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var bg <span style="color: #339933;">=</span> Tilemap <span style="color: #009900;">&#123;</span>
    set<span style="color: #339933;">:</span>tileset cols<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span> rows<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span>
    map<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>That shows</p>
<p style="text-align: center;"><img class="size-full wp-image-2100 aligncenter" title="bg tilemap" src="http://silveiraneto.net/wp-content/uploads/2009/01/bg_tilemap.png" alt="bg tilemap" width="160" height="160" /></p>
<p>Each number in the map represents a tile in the tilemap. Number 0 means the first tile at the upper left corner, numbers keep growing from left to right columns, from top to bottom rows.</p>
<p>Another example</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var things <span style="color: #339933;">=</span> Tilemap <span style="color: #009900;">&#123;</span>
    set<span style="color: #339933;">:</span>tileset cols<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span> rows<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span>
    map<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">80</span>,<span style="color: #cc66cc;">55</span>,<span style="color: #cc66cc;">56</span>,<span style="color: #cc66cc;">145</span>,<span style="color: #cc66cc;">145</span>,<span style="color: #cc66cc;">96</span>,<span style="color: #cc66cc;">71</span>,<span style="color: #cc66cc;">72</span>,<span style="color: #cc66cc;">61</span>,<span style="color: #cc66cc;">62</span>,0,0,0,<span style="color: #cc66cc;">77</span>,<span style="color: #cc66cc;">78</span>,<span style="color: #cc66cc;">122</span>,0,0,<span style="color: #cc66cc;">93</span>,<span style="color: #cc66cc;">94</span>,<span style="color: #cc66cc;">138</span>,0,0,0,0<span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><img class="size-full wp-image-2101 aligncenter" title="things tileset" src="http://silveiraneto.net/wp-content/uploads/2009/01/things_tileset.png" alt="things tileset" width="160" height="160" /></p>
<p>A tilemap can also contains more than one layer</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var room <span style="color: #339933;">=</span> Tilemap <span style="color: #009900;">&#123;</span>
    set<span style="color: #339933;">:</span>tileset cols<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span> rows<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span> layers<span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span>
    map<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
        <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">8</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span>,
        <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">80</span>,<span style="color: #cc66cc;">55</span>,<span style="color: #cc66cc;">56</span>,<span style="color: #cc66cc;">145</span>,<span style="color: #cc66cc;">145</span>,<span style="color: #cc66cc;">96</span>,<span style="color: #cc66cc;">71</span>,<span style="color: #cc66cc;">72</span>,<span style="color: #cc66cc;">61</span>,<span style="color: #cc66cc;">62</span>,0,0,0,<span style="color: #cc66cc;">77</span>,<span style="color: #cc66cc;">78</span>,<span style="color: #cc66cc;">122</span>,0,0,<span style="color: #cc66cc;">93</span>,<span style="color: #cc66cc;">94</span>,<span style="color: #cc66cc;">138</span>,0,0,0,0<span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p style="text-align: center;"><img class="size-full wp-image-2102 aligncenter" title="tileroom" src="http://silveiraneto.net/wp-content/uploads/2009/01/tileroom.png" alt="tileroom" width="160" height="160" /></p>
<p><strong>Implementation</strong></p>
<p>The Tileset class basically stores a Image and a collection of Rectangle2D objects, for be used as viewports in <a href="http://java.sun.com/javafx/1/docs/api/javafx.scene.image/javafx.scene.image.ImageView.html">ImageView</a> classes.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.ImageView</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.Image</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.geometry.Rectangle2D</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Tileset <span style="color: #009900;">&#123;</span>
    public<span style="color: #339933;">-</span>init var      image<span style="color: #339933;">:</span> <span style="color: #003399;">Image</span>;
    public<span style="color: #339933;">-</span>init var      width<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;
    public<span style="color: #339933;">-</span>init var     height<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;
    public<span style="color: #339933;">-</span>init var       rows<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span>;
    public<span style="color: #339933;">-</span>init var       cols<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">15</span>;
    <span style="color: #000000; font-weight: bold;">protected</span>   var       tile<span style="color: #339933;">:</span> <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span>;
&nbsp;
    init <span style="color: #009900;">&#123;</span>
        tile <span style="color: #339933;">=</span>  <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..<span style="color: #006633;">rows</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..<span style="color: #006633;">cols</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#123;</span>
                    minX<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> width, minY<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> height
                    height<span style="color: #339933;">:</span> width, width<span style="color: #339933;">:</span> height
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>The Tilemap is a <a href="http://java.sun.com/javafx/1/docs/api/javafx.scene/javafx.scene.CustomNode.html">CustomNode</a> with a Group of ImageViews in a grid. The grid is mounted by iterating over the map as many layers was defined.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Tilemap <span style="color: #000000; font-weight: bold;">extends</span> CustomNode <span style="color: #009900;">&#123;</span>
    public<span style="color: #339933;">-</span>init var   rows<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span>;
    public<span style="color: #339933;">-</span>init var   cols<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span>;
    public<span style="color: #339933;">-</span>init var    set<span style="color: #339933;">:</span> Tileset;
    public<span style="color: #339933;">-</span>init var layers<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span>;
    public<span style="color: #339933;">-</span>init var    map<span style="color: #339933;">:</span> <span style="color: #003399;">Integer</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span>;
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> override function create<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> Node <span style="color: #009900;">&#123;</span>
        var tilesperlayer <span style="color: #339933;">=</span> rows <span style="color: #339933;">*</span> cols;
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #003399;">Group</span> <span style="color: #009900;">&#123;</span>
            content<span style="color: #339933;">:</span>
                <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>layer in <span style="color: #009900;">&#91;</span>0..<span style="color: #006633;">layers</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..<span style="color: #006633;">rows</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..<span style="color: #006633;">cols</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                            ImageView <span style="color: #009900;">&#123;</span>
                                image<span style="color: #339933;">:</span> set.<span style="color: #006633;">image</span> x<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> set.<span style="color: #006633;">width</span> y<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> set.<span style="color: #006633;">height</span>
                                viewport<span style="color: #339933;">:</span> set.<span style="color: #006633;">tile</span><span style="color: #009900;">&#91;</span>map<span style="color: #009900;">&#91;</span>tilesperlayer<span style="color: #339933;">*</span>layer <span style="color: #339933;">+</span> row<span style="color: #339933;">*</span>rows<span style="color: #339933;">+</span>col<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span>
                            <span style="color: #009900;">&#125;</span>
                        <span style="color: #009900;">&#125;</span>
                    <span style="color: #009900;">&#125;</span>
                <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p><strong>Next steps</strong></p>
<ul>
<li>Integrate to a map editor</li>
<li>Support some XML map format</li>
<li>Sprite classes for animation</li>
<li>Integrate those collision detection classes I posted before</li>
</ul>
<p><strong>Download</strong></p>
<ul>
<li>Source code and NetBeans project, <a title="download" href="http://silveiraneto.net/downloads/tileworld.tar.bz2">tileworld.tar.bz2</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/01/06/javafx-easy-use-of-tiles/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My Free Tileset, version 6</title>
		<link>http://silveiraneto.net/2008/12/31/my-free-tileset-version-6/</link>
		<comments>http://silveiraneto.net/2008/12/31/my-free-tileset-version-6/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 07:44:43 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[fantasy]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[game resource]]></category>
		<category><![CDATA[medieval]]></category>
		<category><![CDATA[Pixel]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2045</guid>
		<description><![CDATA[More free tiles for game developers. Now in a fantasy, medieval style. Some detailed view. The royal throne (king was not in the room), carpet and banners. I had to place guards across the room. You know, being a king is dangerous. There&#8217;s this new kind of wall, with bricks. There&#8217;s a passage for the [...]]]></description>
			<content:encoded><![CDATA[<p>More free tiles for game developers. Now in a fantasy, medieval style.</p>
<p style="text-align: center;"><img class="size-full wp-image-2044 aligncenter" title="tileset palace snes rpg style" src="http://silveiraneto.net/wp-content/uploads/2008/12/tileset_palace.png" alt="tileset palace snes rpg style" width="320" height="320" /></p>
<p>Some detailed view. The royal throne (king was not in the room), carpet and banners.</p>
<p style="text-align: center;"><img class="size-full wp-image-2046 aligncenter" title="tileset palace detail view 1" src="http://silveiraneto.net/wp-content/uploads/2008/12/tileset_palace_detail_view_1.png" alt="tileset palace detail view 1" width="300" height="299" /></p>
<p>I had to place guards across the room. You know, being a king is dangerous.</p>
<p style="text-align: center;"><img class="size-full wp-image-2047 aligncenter" title="tileset palace detail view 2" src="http://silveiraneto.net/wp-content/uploads/2008/12/tileset_palace_detail_view_2.png" alt="tileset palace detail view 2" width="300" height="300" /></p>
<p>There&#8217;s this new kind of wall, with bricks. There&#8217;s a passage for the king bedroom.</p>
<p style="text-align: center;"><img class="size-full wp-image-2048 aligncenter" title="tileset palace detail view 3" src="http://silveiraneto.net/wp-content/uploads/2008/12/tileset_palace_detail_view_3.png" alt="tileset palace detail view 3" width="300" height="300" /></p>
<p>Here&#8217;s the new version of the tile set.</p>
<p style="text-align: center;"><img class="size-full wp-image-2050 aligncenter" title="free tileset version 6" src="http://silveiraneto.net/wp-content/uploads/2008/12/free_tileset_version_6.png" alt="free tileset version 6" width="391" height="669" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/31/my-free-tileset-version-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My Free Tileset, version 5</title>
		<link>http://silveiraneto.net/2008/12/25/2009/</link>
		<comments>http://silveiraneto.net/2008/12/25/2009/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 11:30:08 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[Gimp]]></category>
		<category><![CDATA[Pixel]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2009</guid>
		<description><![CDATA[Now is possible to create a tiny mall. With a few more ambients will be possible to create a entire little town. And here the last entire tile set. Booth, made with Gimp.]]></description>
			<content:encoded><![CDATA[<p>Now is possible to create a tiny mall. With a few more ambients will be possible to create a entire little town.</p>
<p style="text-align: center;"><img class="size-full wp-image-2008 aligncenter" title="mini mall pixel art open tileset" src="http://silveiraneto.net/wp-content/uploads/2008/12/mini_mall_pixel_art_open_tileset.png" alt="mini mall pixel art open tileset" width="256" height="256" /></p>
<p>And here the last entire tile set.</p>
<p style="text-align: center;"><img class="size-full wp-image-2010 aligncenter" title="GPL PixelArt TileSet version 5" src="http://silveiraneto.net/wp-content/uploads/2008/12/silveira_neto_gpl_pixelart_tileset_version_5.png" alt="GPL PixelArt TileSet version 5" width="391" height="669" /></p>
<p>Booth, made with <a href="http://gimp.org">Gimp</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/25/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Free Tileset, version 4</title>
		<link>http://silveiraneto.net/2008/12/22/my-free-tileset-version-4/</link>
		<comments>http://silveiraneto.net/2008/12/22/my-free-tileset-version-4/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 07:09:47 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[free culture]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[gamedev]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[sprites]]></category>
		<category><![CDATA[Tile Set]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1983</guid>
		<description><![CDATA[Changelog: PNG alpha channel instead of white background. 70% alpha channel for shadows. Added a television that I forgot to put since first version.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1982 aligncenter" title="GPL PixelArt TileSet Version 4" src="http://silveiraneto.net/wp-content/uploads/2008/12/silveira_neto_gpl_pixelart_tileset_version_4.png" alt="GPL PixelArt TileSet Version 4" width="391" height="570" /></p>
<p>Changelog:</p>
<ul>
<li>PNG alpha channel instead of white background.</li>
<li>70% alpha channel for shadows.</li>
<li>Added a television that I forgot to put since first version.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/22/my-free-tileset-version-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>JavaFX, Simple Tile Set</title>
		<link>http://silveiraneto.net/2008/12/20/javafx-simple-tile-set/</link>
		<comments>http://silveiraneto.net/2008/12/20/javafx-simple-tile-set/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 19:23:57 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[gamedev]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[jfx]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[openjfx]]></category>
		<category><![CDATA[pixel art]]></category>
		<category><![CDATA[Tile Set]]></category>
		<category><![CDATA[tileset]]></category>
		<category><![CDATA[video game]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1951</guid>
		<description><![CDATA[Tile sets are a very simple way to draw scenarios with repeated elements. From simple to complex ones using a very low footprint. First step, load the png file that stores the tileset into a Image. The file tiles.png shoud be in the same directory of the source code. I adjusted some tiles from those [...]]]></description>
			<content:encoded><![CDATA[<p>Tile sets are a very simple way to draw scenarios with repeated elements. From simple to complex ones using a very low footprint.</p>
<p>First step, load the png file that stores the tileset into a <a title="JavaFX API" href="http://java.sun.com/javafx/1/docs/api/javafx.scene.image/javafx.scene.image.Image.html">Image</a>. The file tiles.png shoud be in the same directory of the source code. I adjusted some tiles from those tile set <a title="Tile set" href="http://silveiraneto.net/2008/08/31/my-free-tileset-version-2/">I&#8217;ve blogged here before</a> into a grid of 10&#215;10 tiles.</p>
<p style="text-align: center;"><img class="size-full wp-image-1955 aligncenter" title="Set of tiles, example" src="http://silveiraneto.net/wp-content/uploads/2008/12/tiles.png" alt="Set of tiles, example" width="320" height="320" /></p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var tileset <span style="color: #339933;">=</span> <span style="color: #003399;">Image</span> <span style="color: #009900;">&#123;</span>
   url<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;{__DIR__}tiles.png&quot;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Notice that each tile have 32 of height and 32 of width. We will assume this and use theses numbers when performing calculations to find a single tile in our tile set.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">def w <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;
def h <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;</pre>
</div>
</div>
<p>To display a Image in the screen we use a <a title="JavaFX API" href="http://java.sun.com/javafx/1/docs/api/javafx.scene.image/javafx.scene.image.ImageView.html">ImageView</a> node. A ImageView can have a viewport property to create crop or zoom effect. A viewport is just a <a href="http://java.sun.com/javafx/1/docs/api/javafx.geometry/javafx.geometry.Rectangle2D.html">Rectangle2D</a>, a object with position (minX and minY), height and width. If we want to display the first tile in the tileset we do</p>
<p style="text-align: center;"><img class="size-full wp-image-1956 aligncenter" title="first tile" src="http://silveiraneto.net/wp-content/uploads/2008/12/first_tile.png" alt="first tile" width="32" height="32" /></p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">ImageView <span style="color: #009900;">&#123;</span>
   image<span style="color: #339933;">:</span> tileset
   viewport<span style="color: #339933;">:</span> <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#123;</span>
      minX<span style="color: #339933;">:</span> 0, minY<span style="color: #339933;">:</span> 0, height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span>, width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Notice that the minX determines the column and minY the row in the tileset. The first row is 0*32, the second row is 1*32 and so on. If we want to display the tile at the second line and third column of the tileset we do</p>
<p style="text-align: center;"><img class="size-full wp-image-1957 aligncenter" title="another_tile" src="http://silveiraneto.net/wp-content/uploads/2008/12/another_tile.png" alt="another_tile" width="32" height="32" /></p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">ImageView <span style="color: #009900;">&#123;</span>
   image<span style="color: #339933;">:</span> tileset
   viewport<span style="color: #339933;">:</span> <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#123;</span>
      minX<span style="color: #339933;">:</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">32</span> , minY<span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">32</span>, height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span>, width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">32</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Those properties in a Rectangle2D are for init and read only. So I created a list with all Rectangles I can need for use as a viewport.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">def viewports <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#123;</span>
           minX<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> w, minY<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> h, height<span style="color: #339933;">:</span> w, width<span style="color: #339933;">:</span> h
       <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>The scenario map is stored in another list. The first element of the list is 7, that is, the first tile in the scenario is the 7th tile from the tile set.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var map <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
    <span style="color: #cc66cc;">7</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">8</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">26</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">41</span>, <span style="color: #cc66cc;">24</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">23</span>, <span style="color: #cc66cc;">24</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">36</span>, <span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">51</span>, <span style="color: #cc66cc;">34</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">34</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">25</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">57</span>, <span style="color: #cc66cc;">58</span>, <span style="color: #cc66cc;">44</span>, <span style="color: #cc66cc;">45</span>, <span style="color: #cc66cc;">46</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">35</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">27</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">6</span>, <span style="color: #cc66cc;">55</span>, <span style="color: #cc66cc;">56</span>,  <span style="color: #cc66cc;">5</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">38</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">16</span>, <span style="color: #cc66cc;">47</span>, <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">15</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">61</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">70</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">33</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">71</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">49</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">17</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>, <span style="color: #cc66cc;">18</span>,
<span style="color: #009900;">&#93;</span>;</pre>
</div>
</div>
<p>Finally to create a scenario with 100 tiles, 10 per row and with 10 rows, in a list called <em>tiles</em>. Each iteration of this loop creates a <em>ImageView</em>. Each <em>ImageView</em> will store a single tile. We get the tile number in the <em>map</em> list and so use it to index the <em>viewports</em> list.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">var tiles <span style="color: #339933;">=</span>  <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      ImageView <span style="color: #009900;">&#123;</span>
         x<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> w, y<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> h,
         viewport<span style="color: #339933;">:</span> bind viewports<span style="color: #009900;">&#91;</span>map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span>
         image<span style="color: #339933;">:</span> tileset
      <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Additionally I added two things to transform this program also in a (extremely)  simple map editor. At each <em>ImageView</em> I added a callback for <em>onMouseClicked</em> event. When you click on a tile, it changes its <em>map</em> position, ie, the tile. The next tile for the left button and the last tile for any other button.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;">onMouseClicked<span style="color: #339933;">:</span> function<span style="color: #009900;">&#40;</span> e<span style="color: #339933;">:</span> <span style="color: #003399;">MouseEvent</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #003399;">Void</span> <span style="color: #009900;">&#123;</span>
   var amount <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">button</span> <span style="color: #339933;">==</span> MouseButton.<span style="color: #006633;">PRIMARY</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#125;</span>;
   map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span> mod <span style="color: #cc66cc;">100</span>;
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>The other thing is to print the <em>map</em> list when the program is over. There is the full program:</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">tileeditor</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.stage.Stage</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.Scene</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.ImageView</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.Image</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.CustomNode</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.Group</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.Node</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.geometry.Rectangle2D</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.input.MouseEvent</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.input.MouseButton</span>;
&nbsp;
def w <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;
def h <span style="color: #339933;">=</span> <span style="color: #cc66cc;">32</span>;
&nbsp;
var map <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
    <span style="color: #cc66cc;">7</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">8</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">26</span>, <span style="color: #cc66cc;">40</span>, <span style="color: #cc66cc;">41</span>, <span style="color: #cc66cc;">24</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">23</span>, <span style="color: #cc66cc;">24</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">36</span>, <span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">51</span>, <span style="color: #cc66cc;">34</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">34</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">25</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">57</span>, <span style="color: #cc66cc;">58</span>, <span style="color: #cc66cc;">44</span>, <span style="color: #cc66cc;">45</span>, <span style="color: #cc66cc;">46</span>,  <span style="color: #cc66cc;">2</span>,  <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">35</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">27</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">6</span>, <span style="color: #cc66cc;">55</span>, <span style="color: #cc66cc;">56</span>,  <span style="color: #cc66cc;">5</span>,  <span style="color: #cc66cc;">3</span>,  <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">38</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">16</span>, <span style="color: #cc66cc;">47</span>, <span style="color: #cc66cc;">48</span>, <span style="color: #cc66cc;">15</span>, <span style="color: #cc66cc;">13</span>, <span style="color: #cc66cc;">61</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>, <span style="color: #cc66cc;">70</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">33</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">71</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">19</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>,  <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">49</span>, <span style="color: #cc66cc;">19</span>,
   <span style="color: #cc66cc;">17</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>,  <span style="color: #cc66cc;">9</span>, <span style="color: #cc66cc;">18</span>,
<span style="color: #009900;">&#93;</span>;
&nbsp;
var tileset <span style="color: #339933;">=</span> <span style="color: #003399;">Image</span> <span style="color: #009900;">&#123;</span>
    url<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;{__DIR__}tiles.png&quot;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
def viewports <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #003399;">Rectangle2D</span><span style="color: #009900;">&#123;</span>
           minX<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> w, minY<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> h, height<span style="color: #339933;">:</span> w, width<span style="color: #339933;">:</span> h
       <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
var tiles <span style="color: #339933;">=</span>  <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>row in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>col in <span style="color: #009900;">&#91;</span>0..9<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      ImageView <span style="color: #009900;">&#123;</span>
         x<span style="color: #339933;">:</span> col <span style="color: #339933;">*</span> w, y<span style="color: #339933;">:</span> row <span style="color: #339933;">*</span> h,
         viewport<span style="color: #339933;">:</span> bind viewports<span style="color: #009900;">&#91;</span>map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span>
         image<span style="color: #339933;">:</span> tileset
&nbsp;
         onMouseClicked<span style="color: #339933;">:</span> function<span style="color: #009900;">&#40;</span> e<span style="color: #339933;">:</span> <span style="color: #003399;">MouseEvent</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #003399;">Void</span> <span style="color: #009900;">&#123;</span>
            var amount <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">button</span> <span style="color: #339933;">==</span> MouseButton.<span style="color: #006633;">PRIMARY</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#125;</span>;
            map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#91;</span>row <span style="color: #339933;">*</span> <span style="color: #cc66cc;">10</span> <span style="color: #339933;">+</span> col<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span> mod <span style="color: #cc66cc;">100</span>;
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
Stage <span style="color: #009900;">&#123;</span>
    title<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;JavaFX Simple Tile Editor&quot;</span>
    scene<span style="color: #339933;">:</span> Scene <span style="color: #009900;">&#123;</span>
        content<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> tiles <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span>
    onClose<span style="color: #339933;">:</span> function<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        println<span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#41;</span>;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Here is the result for that<em> map</em></p>
<p style="text-align: center;"><img class="size-full wp-image-1961 aligncenter" title="tlemap javafx" src="http://silveiraneto.net/wp-content/uploads/2008/12/tilemap_javafx.png" alt="tlemap javafx" width="320" height="320" /></p>
<p>And you can try it yourself in your browser.<strong> <a title="Simple Tile Editor Online" href="http://silveiraneto.net/downloads/SimpleTileEditor/dist/JavaFxSandBox.html">Play it online now</a></strong>.</p>
<p>Here is a video of it working</p>
<p style="text-align: center;"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/lxuBEoItB5E&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/lxuBEoItB5E&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></object></p>
<p><strong>Downloads:</strong></p>
<ul>
<li>Complete source code and project in NetBeans, <a title="Simple Tile Editor" href="http://silveiraneto.net/downloads/SimpleTileEditor.tar.bz2">SimpleTileEditor.tar.bz2</a>.</li>
<li>Video of it working, <a title="OGG Video" href="http://silveiraneto.net/downloads/javafx_tile_set.ogv">javafx_tile_set.ogv</a>.</li>
<li>Program main class, <a title="Main class" href="http://silveiraneto.net/downloads/SimpleTileEditor/src/tileeditor/Main.fx">Main.fx</a>.</li>
</ul>
<p><strong>Possibilities</strong></p>
<p>We are using just  a image that can handle 100 tiles, <a href="ttp://silveiraneto.net/wp-content/uploads/2008/12/tiles.png">tiles.png</a> with less than 30Kb. The map is also composed with 100 tiles. Each tile we can choose between 100 different tiles, so we can compose 10<sup>100</sup> different maps (one <a title="Wikipedia, english" href="http://en.wikipedia.org/wiki/Googol">googol</a><sup>10</sup> ). Most of them are useless and without any sense, but some are cool. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/20/javafx-simple-tile-set/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nerdy guy, My Free Charset version 2</title>
		<link>http://silveiraneto.net/2008/12/07/nerdy-guy-my-free-charset-version-2/</link>
		<comments>http://silveiraneto.net/2008/12/07/nerdy-guy-my-free-charset-version-2/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 19:27:03 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[bald]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[nerd guy]]></category>
		<category><![CDATA[nerdy guy]]></category>
		<category><![CDATA[Pixel]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[tileset]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=1862</guid>
		<description><![CDATA[Using the plain char from My Free Charset I drew this nerdy guy. With 2x zoom: The plain character I&#8217;m using to create new characters:]]></description>
			<content:encoded><![CDATA[<p>Using the <a title="My Free Charset" href="http://silveiraneto.net/2008/12/05/plain-char-my-free-charset-version-1/">plain char from My Free Charset</a> I drew this nerdy guy.</p>
<p style="text-align: center;"><img class="size-full wp-image-1863 aligncenter" title="nerdyguy creative commons att share alike" src="http://silveiraneto.net/wp-content/uploads/2008/12/nerdyguy_from_silveiranetonet_creativecommons_att_share_alike.png" alt="" width="101" height="183" /></p>
<p>With 2x zoom:</p>
<p style="text-align: center;"><img class="size-full wp-image-1864 aligncenter" title="nerdyguy creativecommons att share alike" src="http://silveiraneto.net/wp-content/uploads/2008/12/nerdyguy_with_zoom_from_silveiranetonet_creativecommons_att_share_alike.png" alt="" width="202" height="366" /></p>
<p>The plain character I&#8217;m using to create new characters:</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-1848" title="char sprite rpg style pokemon free" src="../wp-content/uploads/2008/12/default_char1.png" alt="" width="101" height="183" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/07/nerdy-guy-my-free-charset-version-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

