<?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>Connorhd &#187; SVG</title>
	<atom:link href="http://connorhd.co.uk/tag/svg/feed/" rel="self" type="application/rss+xml" />
	<link>http://connorhd.co.uk</link>
	<description>Interesting stuff.</description>
	<lastBuildDate>Sat, 30 Mar 2013 23:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pixelatr &#8211; SVG powered pixel drawing demo</title>
		<link>http://connorhd.co.uk/2010/10/19/pixelatr/</link>
		<comments>http://connorhd.co.uk/2010/10/19/pixelatr/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 21:49:38 +0000</pubDate>
		<dc:creator>Connorhd</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[ie9]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[socket.io]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[websockets]]></category>

		<guid isPermaLink="false">http://connorhd.co.uk/?p=214</guid>
		<description><![CDATA[I&#8217;ve wanted to experiment with some of the various graphics libraries in JavaScript for a while now, and deciding to attempt the ambitious task of a 2D clone of the recently popular game, MineCraft, seemed a worthy reason to play around with some of them.
After deciding (perhaps wrongly) that Raphaël would be a good library [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve wanted to experiment with some of the various graphics libraries in JavaScript for a while now, and deciding to attempt the ambitious task of a 2D clone of the recently popular game, <a href="http://www.minecraft.net/">MineCraft</a>, seemed a worthy reason to play around with some of them.</p>
<p>After deciding (perhaps wrongly) that <a href="http://raphaeljs.com/">Raphaël</a> would be a good library to do this in (or at least one I would like to try out). A quick weekend of implementing and reimplementing various ways of rendering scrolling around a vast 2D block world (in the end using a massive SVG element that is scrolled with blocks being added or removed as they come into and leave the visible area). The results are (not quite 2D MineCraft yet I know) a massive editable grid of &#8220;pixels&#8221; which are actually rounded rectangles of various colours.</p>
<p>As I wasn&#8217;t going to complete 2D MineCraft in a weekend I decided to add in websocket support using <a href="http://socket.io">Socket.IO</a> and make it a multi-user editable canvas that persists between sessions. Its quite fun to play with and there is a small demo below (works best in Chrome, Safari or IE9, should work slowly in Firefox), for a full page version <a href="http://connorhd.co.uk/project/pixelatr/#blog">click here</a>, the last part of the URL defines the &#8220;channel&#8221; you are in if you wish to create a private page to share with friends.</p>
<p><iframe style="width:100%; height: 400px; border: 0" src="http://connorhd.co.uk/project/pixelatr/#blog"></iframe></p>
<p>If you are interested in the source just view the source of that page, I&#8217;ll be uploading the server and client to github shortly (once I&#8217;ve tided up some of the code a bit). If I have some time in the future I hope to take this further and make some kind of user editable platformer type game in the general theme of MineCraft. I would also like to try implementing this using the HTML5 canvas element (especially with the recent hardware rendering developments on Chrome and IE9).</p>
]]></content:encoded>
			<wfw:commentRss>http://connorhd.co.uk/2010/10/19/pixelatr/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
