<?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>Triptych</title>
	<atom:link href="http://andrewwooldridge.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewwooldridge.com/blog</link>
	<description>Building games on the web. (And other cool stuff)</description>
	<lastBuildDate>Tue, 17 Jan 2012 07:25:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>A simple swap page app using YUI&#8217;s Y.App()</title>
		<link>http://andrewwooldridge.com/blog/2012/01/17/a-simple-swap-page-app-using-yuis-y-app/</link>
		<comments>http://andrewwooldridge.com/blog/2012/01/17/a-simple-swap-page-app-using-yuis-y-app/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 07:18:48 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2012/01/17/</guid>
		<description><![CDATA[Simple examples are always difficult to create because while you want to demo some feature, you also want something that seems to make sense. I wanted to try to distill down some of the complexity of creating a Y.App application by building a bare bones two panel app. Here&#8217;s the sourcecode: All I did was [...]]]></description>
			<content:encoded><![CDATA[<p>Simple examples are always difficult to create because while you want to demo some feature, you also want something that seems to make sense. I wanted to try to distill down some of the complexity of creating a Y.App application by building a bare bones two panel app. Here&#8217;s the sourcecode:</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/triptych/u9TeL/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe></p>
<p>All I did was create a model, which has three attributes, a view which will render this model, and then built the skeleton of the &#8220;app&#8221;. We have two pages, both of which use the same view and model structure, and I also used the built-in system for wiring up events. In this case on the &#8220;button&#8221; tag. </p>
<p>Of course, all this code does is let you switch between to views, but all the work going on behind the scenes to wire up the events, utilize the models, etc is very powerful.  This example really just scratches the barest surface of what you are capable with this new framework, and I encourage you to check out a more complex example on the YUI staging site <a href="http://stage.yuilibrary.com/yui/docs/app/app-contributors.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2012/01/17/a-simple-swap-page-app-using-yuis-y-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple YUI App Framework example</title>
		<link>http://andrewwooldridge.com/blog/2012/01/03/simple-y-app-example/</link>
		<comments>http://andrewwooldridge.com/blog/2012/01/03/simple-y-app-example/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 21:21:22 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2012/01/03/</guid>
		<description><![CDATA[I learn best by digging through code &#8211; especially short examples that address the feature or technique I&#8217;m trying to learn. I&#8217;m by no means any expert in some of the new features of YUI 3.5.x but I&#8217;ve had some time to play around with it a bit and perhaps you might glean something from [...]]]></description>
			<content:encoded><![CDATA[<p>I learn best by digging through code &#8211; especially short examples that address the feature or technique I&#8217;m trying to learn.<br />
I&#8217;m by no means any expert in some of the new features of YUI 3.5.x but I&#8217;ve had some time to play around with it a bit and perhaps you might glean something from the sharing as well.</p>
<p>Here&#8217;s the jsfiddle:</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/triptych/jPVM8/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe></p>
<p>Basically, via YUI.add I add an &#8220;actor&#8221; <a href="http://stage.yuilibrary.com/yui/docs/model/index.html">model</a> and <a href="http://stage.yuilibrary.com/yui/docs/view/index.html">view</a>. In the main code I instantiate a new actor which exists inside the black bordered div. I&#8217;ve added some methods for moving the div around &#8211; which do so indirectly by modifying the actor model. Try clicking anywhere inside the outer div and watch the green box move to your current location.</p>
<p>It&#8217;s not much as far as apps go, but it shows off how you can decouple the model of an element with it&#8217;s presentation, and add events etc without having to hard code the behavior into the model.</p>
<p>Bring up your javascript console and watch the events pass around to get a better idea of what&#8217;s going on. </p>
<p><strong>Update</strong>: I was correctly reminded that this is not a true Y.App example, but instead is one that shows off Model and View as App Framework components. I&#8217;ll be writing a new example that shows off the new Y.App component in a future post!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2012/01/03/simple-y-app-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YUI Hidden Gems on slideshare</title>
		<link>http://andrewwooldridge.com/blog/2011/12/22/yui-hidden-gems-on-slideshare/</link>
		<comments>http://andrewwooldridge.com/blog/2011/12/22/yui-hidden-gems-on-slideshare/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 20:59:53 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/12/22/</guid>
		<description><![CDATA[If you have a passing interest in the talk I gave at the latest YUI Conference, here&#8217;s a link to the Slideshare version: YUI Hidden Gems View more presentations from Andrew Wooldridge]]></description>
			<content:encoded><![CDATA[<p>If you have a passing interest in the talk I gave at the latest YUI Conference, here&#8217;s a link to the Slideshare version:</p>
<div style="width:425px" id="__ss_10030487"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/triptych/yui-hidden-gems" title="YUI Hidden Gems" target="_blank">YUI Hidden Gems</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/10030487" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/triptych" target="_blank">Andrew Wooldridge</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/12/22/yui-hidden-gems-on-slideshare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving YUI articles back here&#8230;</title>
		<link>http://andrewwooldridge.com/blog/2011/12/22/moving-yui-articles-back-here/</link>
		<comments>http://andrewwooldridge.com/blog/2011/12/22/moving-yui-articles-back-here/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 19:29:38 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/12/22/</guid>
		<description><![CDATA[Keeping up with multiple blogs is more time consuming than it&#8217;s worth. I&#8217;m moving my blogspot posts back here and making this blog more of the technical site I wanted it to be. Happy Holidays everyone and I look forward to a new year with YUI and Web Games!]]></description>
			<content:encoded><![CDATA[<p>Keeping up with multiple blogs is more time consuming than it&#8217;s worth. I&#8217;m moving my <a href="http://buildingitwithyui.blogspot.com/">blogspot</a> posts back here and making this blog more of the technical site I wanted it to be. Happy Holidays everyone and I look forward to a new year with YUI and Web Games!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/12/22/moving-yui-articles-back-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canvas based 3d Christmas Tree</title>
		<link>http://andrewwooldridge.com/blog/2011/12/19/canvas-based-3d-christmas-tree/</link>
		<comments>http://andrewwooldridge.com/blog/2011/12/19/canvas-based-3d-christmas-tree/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 17:10:21 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/12/19/</guid>
		<description><![CDATA[Given Christmas has come around again, and I&#8217;m hoping to blog a bit more often, here&#8217;s a blast from the past from jsfiddle:]]></description>
			<content:encoded><![CDATA[<p>Given Christmas has come around again, and I&#8217;m hoping to blog a bit more often, here&#8217;s a blast from the past from jsfiddle:</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/triptych/GArMN/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/12/19/canvas-based-3d-christmas-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book Review: Making Isometric Social Real-Time Games with HTML5, CSS3, and Javascript</title>
		<link>http://andrewwooldridge.com/blog/2011/10/06/book-review-making-isometric-social-real-time-games-with-html5-css3-and-javascript/</link>
		<comments>http://andrewwooldridge.com/blog/2011/10/06/book-review-making-isometric-social-real-time-games-with-html5-css3-and-javascript/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 22:36:49 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/10/06/</guid>
		<description><![CDATA[(Starting Note: I received a review copy so that I would be able to check out the book) When I was young and just starting out with learning to program, there were a series of books on programming in Basic that really inspired me. I didn&#8217;t really know what I was doing but I learned [...]]]></description>
			<content:encoded><![CDATA[<p>(Starting Note: I received a review copy so that I would be able to check out the book)</p>
<p>When I was young and just starting out with learning to program, there were a series of books on programming in Basic that really inspired me. I didn&#8217;t really know what I was doing but I learned by painstakingly typing in all the the code and watching it work (or more likely, not due to some typo).<br />
<a href="http://andrewwooldridge.com/blog/wp-content/uploads/2011/10/pagecover.gif"><img class="alignnone size-full wp-image-3038" title="basic computer games" src="http://andrewwooldridge.com/blog/wp-content/uploads/2011/10/pagecover.gif" alt="" width="127" height="165" /></a></p>
<p>And I&#8217;ve often wondered if there would be books like that for the new generation of young game developers &#8211; given that the world has changed so much since I was young, and you can build Team Fortress now in your browser with WebGL or create the next Angry Birds and have it show up on your mobile device just a few days after creating it.</p>
<p>This book by <a href="http://www.oreillynet.com/pub/au/4741">Mario Andres Pagella</a> however gives me hope that we can bring a new generation of developers into game development, using web technologies such as Canvas and utilizing existing social networks like Facebook. The book assumes you have some level of knowledge of the web, and of technologies such as javascript, CSS, and HTML, but even if you&#8217;ve just had a passing knowledge you can follow along pretty well and skip over the examples as you go.</p>
<p>What really excited me is the code listings. I know other reviewers have dinged the book for having such extensive listings, but in all honesty I am glad they are there. I learn not so much by having a bunch of api calls and a few suggestions of how they work, but instead I want to see concrete examples, and this book does a great job of spelling out HTML, CSS, and JS code that you can use to build  your own isometric games.</p>
<p>The author takes us first through the basics of CANVAS and sprite animation &#8211; even covering more recent things like requestAnimationFrame which is essential for smooth animation on the web. We then learn about the unique challenges around making your graphics &#8220;isometric&#8221; and I think this is at the core of why you&#8217;d get this book. So many web game books will give you basic 2d tile based games, or platformers, but building a game like Farmville is beyond their descriptions or examples.</p>
<p>We then get tips on building a user interface for our game, and learn about all the issues around audio for the web (come on W3C let&#8217;s get this working!) And beyond this you&#8217;ll be exposed to browser technologies like localStorage and how they can be useful for your game development.  We even get a brief intro to putting your work up on social networking sites like Facebook &#8211; although I&#8217;d have wished for more extensive coverage of that &#8211; especially about using the Graph API, but that may have been a bit beyond the scope of this book &#8211; which is about helping you make web-based isometric games. And in that goal I think the book succeeds handily.</p>
<p>Would I recommend you getting this book? Well, if you are a web game developer dabbling in the world of Isometric games, I&#8217;d say a definite yes. I&#8217;d even recommend this book for non-web game developers who want to see how they might learn to port their existing ISO games over to the web.  It&#8217;s not a long book, and ou could probably finish it in one casual sitting if you skip through the code listings. However I believe you&#8217;d be missing some of the charm of this in my opinion &#8211; especially as this harkens back to the days of learning to code by looking at other&#8217;s sourcecode. I encourage you to go to the <a href="https://github.com/andrespagella/Making-Isometric-Real-time-Games">github repository </a>and fork it for yourself and kick the tires on the code. It&#8217;s not every day you can get a great basic framework for making that next Farmville &#8211; style game that could earn you a bit of extra money via Facebook.</p>
<p>So, go <a href="http://www.amazon.com/Making-Isometric-Social-Real-Time-Javascript/dp/1449304753">check it out and see for yourself</a>. It has my two thumbs up.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/10/06/book-review-making-isometric-social-real-time-games-with-html5-css3-and-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically injecting content via YUI and Injection Engine</title>
		<link>http://andrewwooldridge.com/blog/2011/08/30/dynamically-injecting-content-via-yui-and-injection-engine/</link>
		<comments>http://andrewwooldridge.com/blog/2011/08/30/dynamically-injecting-content-via-yui-and-injection-engine/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 08:03:28 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/08/30/</guid>
		<description><![CDATA[Imagine if you are including some content from some third party site, or creating an overlay on an existing page and you did not want the page&#8217;s CSS and JS to effect your injected content. You can use Caridy&#8217;s Injection Engine to dynamically create an iframe, inject CSS, linked CSS, linked JS, as well as [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine if you are including some content from some third party site, or creating an overlay on an existing page and you did not want the page&#8217;s CSS and JS to effect your injected content. You can use <a href="http://yuilibrary.com/gallery/show/injection-engine">Caridy&#8217;s Injection Engine</a> to dynamically create an iframe, inject CSS, linked CSS, linked JS, as well as custom JS into that frame. You can even set up the HTML contents of the iframe before it is created. </p>
<p>Here&#8217;s an example:<br />
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/triptych/cx2Pn/embedded/"></iframe><br />
With a little imagination you could envision all kinds of interesting uses for this &#8211; including bookmarklets, widgets, and other interesting things!<br />
Caridy is working on a second component of this called the <a href="http://yuilibrary.com/gallery/show/bootstrap-engine">Bootstrap Engine</a> which allows you to freely communicate between the inner iframe and the outer one, but it doesn&#8217;t seem ready for the Gallery yet. </p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/08/30/dynamically-injecting-content-via-yui-and-injection-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still Kicking. Some links&#8230;</title>
		<link>http://andrewwooldridge.com/blog/2011/07/26/still-kicking-some-links/</link>
		<comments>http://andrewwooldridge.com/blog/2011/07/26/still-kicking-some-links/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 17:30:13 +0000</pubDate>
		<dc:creator>triptych</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/07/26/</guid>
		<description><![CDATA[I&#8217;m still around, and kicking. I&#8217;m learning a lot about Y.Base and how it&#8217;ll change YOUR life as well. I have a few links for you to check out. First off &#8211; a demo and links to the new YUI MVC page framework: Demo: http://jsfiddle.net/triptych/w26dA/ Docs: http://dl.dropbox.com/u/131998/yui/docs/app/index.html Specs: http://dl.dropbox.com/u/131998/yui/api/modules/app.html &#8212;&#8211; A new iframe injection engine [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still around, and kicking. I&#8217;m learning a lot about Y.Base and how it&#8217;ll change YOUR life as well.</p>
<p>I have a few links for you to check out.</p>
<p>First off &#8211; a demo and links to the new YUI MVC page framework:</p>
<p>Demo: <a href="http://jsfiddle.net/triptych/w26dA/">http://jsfiddle.net/triptych/w26dA/</a></p>
<p>Docs: <a href="http://dl.dropbox.com/u/131998/yui/docs/app/index.html">http://dl.dropbox.com/u/131998/yui/docs/app/index.html</a></p>
<p>Specs: <a href="http://dl.dropbox.com/u/131998/yui/api/modules/app.html">http://dl.dropbox.com/u/131998/yui/api/modules/app.html</a></p>
<p>&#8212;&#8211;</p>
<p>A new iframe injection engine for YUI via the gallery <a href="http://yuilibrary.com/gallery/show/injection-engine">http://yuilibrary.com/gallery/show/injection-engine</a></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/07/26/still-kicking-some-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super Simple Drag and Drop with YUI</title>
		<link>http://andrewwooldridge.com/blog/2011/05/17/super-simple-drag-and-drop-with-yui/</link>
		<comments>http://andrewwooldridge.com/blog/2011/05/17/super-simple-drag-and-drop-with-yui/#comments</comments>
		<pubDate>Tue, 17 May 2011 20:03:22 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/05/17/</guid>
		<description><![CDATA[As you begin to build interactive web applications, you will undoubtedly want to experiment with Drag and Drop. No js library worth its salt would overlook this, but YUI really makes this easy to do and easy to extend to your needs. You can take some time to go dig around in YUI&#8217;s documentation which [...]]]></description>
			<content:encoded><![CDATA[<p>As you begin to build interactive web applications, you will undoubtedly want to experiment with Drag and Drop. No js library worth its salt would overlook this, but YUI really makes this easy to do and easy to extend to your needs.  You can take some time to go dig around in <a href="http://developer.yahoo.com/yui/3/dd/#simpledd">YUI&#8217;s documentation</a> which will serve you very well, but if you just want to see how this might work, here&#8217;s a simple example for you:</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/triptych/7hVzq/embedded/"></iframe></p>
<p>Basically we have two divs &#8211; #dragme and #dropme. We include &#8220;dd-drag&#8221; and &#8220;dd-drop&#8221; in the use statement to pick up the drag-and-drop functionality. This goes without saying that you need to include YUI:</p>
<div class="codesnip-container" >&lt;script src=&#8221;<a href="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js">http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js</a>&#8221;<br />
    charset=&#8221;utf-8&#8243;&gt;&lt;/script&gt;</div>
<p>Note we also can listen in on what&#8217;s going on with these drag and drop elements &#8211; they emit all kinds of interesting information (see the docs) as you move your drag element around and move it over the drop element. For this demo I simply added two event listeners &#8211; one for when the drag element is over the drop element (making the div turn yellow) and when you actually drop your element in the right place (making the drop div turn orange).</p>
<p>As I said, there&#8217;s a lot of things going on behind the scenes, and you can do all kinds of great tricks with drag and drop from YUI &#8211; including things like constraining the element&#8217;s field of movement, and having a drag &#8220;shim&#8221; &#8211; meaning a semi-transparent element that &#8220;stands in&#8221; for the real one so that the browser does not slow to a crawl when you try to drag some complex component around. </p>
<p>The way drag and drop is implemented in YUI really show&#8217;s off the power of the library. You can even dynamically make something &#8220;draggable&#8221; by just using a &#8220;plugin&#8221; &#8211; which is a snippet of reusable YUI code that enhances whatever node it is attached to. </p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/05/17/super-simple-drag-and-drop-with-yui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating YUI &#8220;page&#8221; in progress.</title>
		<link>http://andrewwooldridge.com/blog/2011/05/17/updating-yui-page-in-progress/</link>
		<comments>http://andrewwooldridge.com/blog/2011/05/17/updating-yui-page-in-progress/#comments</comments>
		<pubDate>Tue, 17 May 2011 17:20:38 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://andrewwooldridge.com/blog/2011/05/17/</guid>
		<description><![CDATA[I&#8217;m finally getting around to updating my YUI page (look up there on the toolbar next to Unity and Contact). I hope to get all my related articles in there and also add great YUI links from around the web as well. If you know of a great article on YUI please let me know [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finally getting around to updating my <a href="http://andrewwooldridge.com/blog/yui3/">YUI page</a> (look up there on the toolbar next to Unity and Contact). I hope to get all my related articles in there and also add great YUI links from around the web as well. If you know of a great article on YUI please let me know in the comments and I&#8217;ll add it (with credits).</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewwooldridge.com/blog/2011/05/17/updating-yui-page-in-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

