<?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>CodeDread Blog &#187; Games</title>
	<atom:link href="http://www.codedread.com/blog/archives/tag/games/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedread.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 15:30:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MIX 10k Code Challenge += SVG</title>
		<link>http://www.codedread.com/blog/archives/2010/01/14/mix-10k-code-challenge-svg/</link>
		<comments>http://www.codedread.com/blog/archives/2010/01/14/mix-10k-code-challenge-svg/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 15:56:59 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://blog.codedread.com/archives/2010/01/14/mix-10k-code-challenge-svg/</guid>
		<description><![CDATA[[clipart]I came across the MIX 10k Coding Challenge on the weekend, and on a whim I decided to submit one of my old SVG demos to the contest. The 10k challenge&#8217;s tagline is &#8220;What could you create for the Web if you had only 10 kilobytes of code?&#8221;. The rules didn&#8217;t explicitly say I could [...]]]></description>
			<content:encoded><![CDATA[<p><object type="image/svg+xml" width="100" height="100" style="float:right" data="http://codedread.com/clipart/villain.svgz">[clipart]</object>I came across the <a href="http://mix10k.visitmix.com/">MIX 10k Coding Challenge</a> on the weekend, and on a whim I decided to submit one of my old SVG demos to the contest.  The 10k challenge&#8217;s tagline is &#8220;What could you create for the Web if you had only 10 kilobytes of code?&#8221;.  The rules didn&#8217;t explicitly say I could use pure SVG, they mention SVG/Canvas in the context of HTML5 only, but I thought I&#8217;d give it a shot.  It&#8217;s in the spirit of the contest, after all.  At the very least it would encourage Microsoft to clarify the rules and at the very best it would be accepted and the rules updated to allow pure SVG applications.  Looks like it was my lucky day.<span id="more-551"></span></p>
<p>I decided to go with my <a href="http://codedread.com/solitaire.php">Solitaire</a> demo because it was the most complete, didn&#8217;t infringe on any copyrights (looking at you Tetris), and most visually recognizable.  It&#8217;s not the most innovative, but then again the point of this is not necessarily to win any prizes.  It&#8217;s really about increasing awareness.</p>
<p>Unfortunately, the SVG (26kb) and JavaScript (16kb + 21kb) totaled 63kb.  I did some cleanup of the SVG, minified the JS and then put the script inline with the SVG and then gzipped it.  The result was a .svgz file that was 9kb.  Perfect!</p>
<p>I then got an email from a friendly marketing/evangelism person at Microsoft who said that the engineers did not know how to open the svgz file to review the code to ensure it was under 10k.  Woops!  I explained to her that I thought it would be ok for the SVG to be gzipped, much as PNG/GIF files use compression and sent her the uncompressed SVG file for them to review.  After all, SVG is just an image format, right? <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Was I following the rules?  Did Microsoft give me a fair shake?  <a href="http://mix10k.visitmix.com/Entry/Details/160">See for yourself</a>.  Who knows, maybe this is the first time a Microsoft admin had to figure out how to serve SVG on a Microsoft web server.</p>
<p>Out of curiosity, I later tried to see how far I was able to get down the Solitaire game: <a href="http://codedread.com/solitaire.svgz">5811 bytes</a>.  Not bad for a complete game that has scalable graphics.  I&#8217;d be curios to see the equivalent SWF file.</p>
<p>I don&#8217;t expect you to vote for my entry, but what I do expect you to do is now go out and submit .SVGZ entries to the MIX 10k challenge.  That one SVG entry is looking pretty lonely.  If I can get Solitaire down to 5811 bytes, surely you can do better?</p>
<p>Thanks a lot to Amy, the evangelist/marketing person who really was quite patient with me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2010/01/14/mix-10k-code-challenge-svg/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My First SVG Game</title>
		<link>http://www.codedread.com/blog/archives/2005/06/15/my-first-svg-game/</link>
		<comments>http://www.codedread.com/blog/archives/2005/06/15/my-first-svg-game/#comments</comments>
		<pubDate>Wed, 15 Jun 2005 15:22:42 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">/?p=106</guid>
		<description><![CDATA[So I finally crystallized all my new hard-won JavaScript, DOM and SVG knowledge into a simple proof-of-concept game. Any guesses on what game I implemented for my first go? One hint: It has to do with falling blocks&#8230; Anyway, you will need a browser that supports viewing and scripting of SVG (either download the Adobe [...]]]></description>
			<content:encoded><![CDATA[<p>So I finally crystallized all my new hard-won <a href="http://www.amazon.com/exec/obidos/redirect?path=ASIN/0764557432&#038;link_code=as2&#038;camp=1789&#038;tag=codedread-20&#038;creative=9325">JavaScript</a><img src="http://www.assoc-amazon.com/e/ir?t=codedread-20&#038;l=as2&#038;o=1&#038;a=0764557432" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, <a href="http://www.amazon.com/exec/obidos/redirect?path=ASIN/1590595335&#038;link_code=as2&#038;camp=1789&#038;tag=codedread-20&#038;creative=9325">DOM</a><img src="http://www.assoc-amazon.com/e/ir?t=codedread-20&#038;l=as2&#038;o=1&#038;a=1590595335" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> and <a href="http://www.w3.org/TR/SVG11/index.html" title="Scalable Vector Graphics Specification">SVG</a> knowledge into <a href="http://www.codedread.com/yastframe.php" title="YAST SVG Game by CodeDread">a simple proof-of-concept game</a>.  Any guesses on what game I implemented for my first go?  One hint:  It has to do with falling blocks&#8230;  <span id="more-106"></span></p>
<pre>
<script type="text/javascript"><!--
google_ad_client = "pub-7209359610668764";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></pre>
<p>Anyway, you will need a browser that supports viewing and scripting of SVG (either download the <a href="http://www.adobe.com/svg/viewer/install/beta.html" title="Download the Adobe SVG Viewer plug-in">Adobe SVG Viewer plug-in</a> or <a href="http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk/" title="Latest Firefox 1.1 Alpha Build">Mozilla Deer Park</a>).  If you run the game in Mozilla, I definitely recommend to turn off some of the effects as Mozilla&#8217;s SVG implementation is slow compared to Adobe&#8217;s.</p>
<p>I may do some minor enhancements (a star field effect, persistent high scores stored on the server) but I consider the game largely complete and polished.  Let me know if you find any bugs or you have any suggestions.  Try it here: <a href="http://www.codedread.com/yastframe.php" title="YAST SVG Game by CodeDread">http://www.codedread.com/yastframe.php</a>.  You can compare it to the <a href="http://www.croczilla.com/svg/samples/svgtetris/svgtetris.svg">original SVG Tetris</a>, created by Alex Fritze which served as a source of some inspiration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedread.com/blog/archives/2005/06/15/my-first-svg-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

