<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>scripts/deploy.sh</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,4 @@
-.DS_Store
\ No newline at end of file
+*.DS_Store
+deploy
+*.pyc
+scripts/BeautifulSoup.py</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -422,7 +422,7 @@ var error = function(msg) {
 var start_tower_defense = function() {
   setup = function() {
     $('#pause_button').html(&quot;Pause&quot;);
-    set_canvas($('#tower_defense canvas')[0]);
+    set_canvas(&quot;tower_defense&quot;);
     reset_game();
     size(SET.width, SET.height);
     frameRate(SET.framerate);</diff>
      <filename>game/ptd.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 var GLOBAL_PROCESSING;
-function set_canvas(element) {
-  GLOBAL_PROCESSING = Processing(element);
+function set_canvas(id) {
+  var canvas = document.getElementById(id);
+  GLOBAL_PROCESSING = Processing(canvas);
 }
 
 function size(height, width) {</diff>
      <filename>jsfprocessing.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
-&lt;html&gt; &lt;head&gt;
+&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd&quot;&gt;
+&lt;!-- &lt;!DOCTYPE XHTML 1.1&gt; --&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
+&lt;head&gt;
 &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
 &lt;title&gt;Processed Tower Defense&lt;/title&gt;
 &lt;link href=&quot;style.css&quot; media=&quot;screen&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;        
@@ -13,38 +15,38 @@
 
 &lt;div id=&quot;game&quot;&gt;
 &lt;div id=&quot;top_controls&quot;&gt;
-  &lt;span&gt; Lives: &lt;span id=&quot;lives&quot;&gt;20&lt;/span&gt;&lt;/span&gt;
-  &lt;span&gt; Score: &lt;span id=&quot;score&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
-  &lt;span&gt; Gold: &lt;span id=&quot;gold&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
-  &lt;span&gt; Wave: &lt;span id=&quot;wave&quot;&gt;1&lt;/span&gt;&lt;/span&gt;
-  &lt;span&gt; Creep Variety: &lt;span id=&quot;creep_variety&quot;&gt;&lt;/span&gt;&lt;/span&gt;
-  &lt;span&gt; Next Wave in &lt;div style='display:inline;' id=&quot;till_next_wave&quot;&gt;&lt;/div&gt; seconds&lt;/span&gt;
+  &lt;span class='item'&gt; Lives: &lt;span id=&quot;lives&quot;&gt;20&lt;/span&gt;&lt;/span&gt;
+  &lt;span class='item'&gt; Score: &lt;span id=&quot;score&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
+  &lt;span class='item'&gt; Gold: &lt;span id=&quot;gold&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
+  &lt;span class='item'&gt; Wave: &lt;span id=&quot;wave&quot;&gt;1&lt;/span&gt;&lt;/span&gt;
+  &lt;span class='item'&gt; Creep Variety: &lt;span id=&quot;creep_variety&quot;&gt;&lt;/span&gt;&lt;/span&gt;
+  &lt;span class='item'&gt; Next Wave in &lt;span id=&quot;till_next_wave&quot;&gt;&lt;/span&gt; seconds&lt;/span&gt;
 &lt;/div&gt;
 
 &lt;div id=&quot;middle&quot;&gt;
-&lt;canvas id=&quot;tower_defense&quot; width=&quot;600&quot; height=&quot;400&quot;&gt;&lt;/canvas&gt;
+&lt;canvas id='tower_defense' width=&quot;600&quot; height=&quot;400&quot;&gt;&lt;/canvas&gt;
 
 &lt;div id=&quot;side&quot;&gt;
 &lt;div id=&quot;controls&quot;&gt;
   &lt;table&gt;
     &lt;tr&gt;
-      &lt;td&gt; &lt;button onclick=&quot;build_laser_tower();&quot; accesskey=&quot;L&quot;&gt;Build &lt;u&gt;L&lt;/u&gt;aser Tower - 50 Gold&lt;/button&gt; &lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;build_laser_tower();&quot; accesskey=&quot;L&quot;&gt;Build &lt;span class='hotkey'&gt;L&lt;/span&gt;aser Tower - 50 Gold&lt;/button&gt; &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
-      &lt;td&gt; &lt;button onclick=&quot;build_gattling_tower();&quot;&gt; Build &lt;u&gt;G&lt;/u&gt;attling Tower - 50 Gold&lt;/button&gt;&lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;build_gattling_tower();&quot;&gt; Build &lt;span class='hotkey'&gt;G&lt;/span&gt;attling Tower - 50 Gold&lt;/button&gt;&lt;/td&gt;
     &lt;/tr&gt;
     
     &lt;tr&gt;
-      &lt;td&gt; &lt;button onclick=&quot;build_missile_tower();&quot; accesskey=&quot;M&quot;&gt;Build &lt;u&gt;M&lt;/u&gt;issile Tower - 100 Gold&lt;/button&gt; &lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;build_missile_tower();&quot; accesskey=&quot;M&quot;&gt;Build &lt;span class='hotkey'&gt;M&lt;/span&gt;issile Tower - 100 Gold&lt;/button&gt; &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
-      &lt;td&gt; &lt;button onclick=&quot;build_cannon_tower();&quot; accesskey=&quot;M&quot;&gt;Build &lt;u&gt;C&lt;/u&gt;annon Tower - 100 Gold&lt;/button&gt; &lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;build_cannon_tower();&quot; accesskey=&quot;M&quot;&gt;Build &lt;span class='hotkey'&gt;C&lt;/span&gt;annon Tower - 100 Gold&lt;/button&gt; &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;  
-      &lt;td&gt; &lt;button onclick=&quot;aim_missile();&quot; accesskey=&quot;S&quot;&gt;Launch &lt;u&gt;S&lt;/u&gt;mall Missile - 50 Gold&lt;/button&gt;&lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;aim_missile();&quot; accesskey=&quot;S&quot;&gt;Launch &lt;span class='hotkey'&gt;S&lt;/span&gt;mall Missile - 50 Gold&lt;/button&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
-      &lt;td&gt; &lt;button onclick=&quot;nuke_creeps();&quot; accesskey=&quot;N&quot;&gt; Launch &lt;u&gt;N&lt;/u&gt;uke - &lt;span id=&quot;nukes_left&quot;&gt; 3 left &lt;/span&gt;&lt;/button&gt;&lt;/td&gt;
+      &lt;td&gt; &lt;button onclick=&quot;nuke_creeps();&quot; accesskey=&quot;N&quot;&gt; Launch &lt;span class='hotkey'&gt;N&lt;/span&gt;uke - &lt;span id=&quot;nukes_left&quot;&gt; 3 left &lt;/span&gt;&lt;/button&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;&lt;div class='error'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;&lt;div class='message'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
@@ -55,11 +57,11 @@
   &lt;table&gt;
     &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt; &lt;em&gt;Tower Details&lt;/em&gt; &lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt; Type: &lt;/td&gt;&lt;td id=&quot;tower_type&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
-    &lt;tr&gt;&lt;td&gt; Range: &lt;/td&gt;&lt;td id=&quot;tower_range&quot;&gt;&lt;/tr&gt;
-    &lt;tr&gt;&lt;td&gt; Damage: &lt;/td&gt;&lt;td id=&quot;tower_damage&quot;&gt;&lt;/tr&gt;
-    &lt;tr&gt;&lt;td&gt; Firing Rate: &lt;/td&gt;&lt;td id=&quot;tower_rate&quot;&gt;&lt;/tr&gt;
+    &lt;tr&gt;&lt;td&gt; Range: &lt;/td&gt;&lt;td id=&quot;tower_range&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
+    &lt;tr&gt;&lt;td&gt; Damage: &lt;/td&gt;&lt;td id=&quot;tower_damage&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
+    &lt;tr&gt;&lt;td&gt; Firing Rate: &lt;/td&gt;&lt;td id=&quot;tower_rate&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
     &lt;tr&gt;&lt;td&gt;&lt;button id=&quot;tower_sell_button&quot;&gt;&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
-    &lt;tr&gt;&lt;td&gt;&lt;button id=&quot;tower_upgrade_button&quot;&gt;&lt;u&gt;U&lt;/u&gt;pgrade!&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
+    &lt;tr&gt;&lt;td&gt;&lt;button id=&quot;tower_upgrade_button&quot;&gt;&lt;span class='hotkey'&gt;U&lt;/span&gt;pgrade!&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;
   &lt;/table&gt;  
 &lt;/div&gt;
 &lt;div id=&quot;creep&quot;&gt;
@@ -76,7 +78,7 @@
 &lt;div id=&quot;bottom_controls&quot;&gt;
   &lt;button id='pause_button' onclick=&quot;pause();&quot;&gt;Pause&lt;/button&gt;
   &lt;button onclick=&quot;reset_game();&quot;&gt;Reset Game&lt;/button&gt;
-  &lt;button onclick=&quot;spawn_wave();&quot;&gt;Spawn Next &lt;u&gt;W&lt;/u&gt;ave&lt;/button&gt;
+  &lt;button onclick=&quot;spawn_wave();&quot;&gt;Spawn Next &lt;span class='hotkey'&gt;W&lt;/span&gt;ave&lt;/button&gt;
   &lt;button id='mute_button' onclick=&quot;mute();&quot;&gt;Mute&lt;/button&gt;
   &lt;/div&gt;
 &lt;/div&gt;
@@ -171,9 +173,9 @@
     
     
 &lt;/script&gt;
-&lt;hr&gt;
+&lt;hr/&gt;
 &lt;p&gt;&lt;a rel=&quot;license&quot; href=&quot;http://www.opensource.org/licenses/mit-license.php&quot;&gt;MIT License&lt;/a&gt;, by &lt;a href=&quot;http://lethain.com&quot;&gt;Will Larson&lt;/a&gt; and &lt;a href=&quot;http://blog.rictic.com/&quot;&gt;Peter Burns&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;Sound effects are released under a &lt;a href='http://creativecommons.org/licenses/sampling+/1.0/'&gt;Creative Commons Sampling Plus 1.0 License&lt;/a&gt; - For authorship information, see &lt;a href='assets/LICENSE'&gt;here&lt;/a&gt;&lt;/p&gt;
 &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
-&lt;div id=&quot;sfx_dump&quot;/&gt;&lt;/div&gt;
+&lt;div id=&quot;sfx_dump&quot;&gt;&lt;/div&gt;
 &lt;/body&gt; &lt;/html&gt;</diff>
      <filename>ptd.html</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ def main():
     merged_src[&quot;type&quot;] = &quot;text/javascript&quot;
     js_imports_div.replaceWith(merged_src)
     merged_html = open(MERGED_HTML_NAME, 'w')
-    merged_html.write(soup.prettify())
+    merged_html.write(str(soup))
     merged_html.close()
 
     print &quot;Created HTML file: %s&quot; % MERGED_HTML_NAME</diff>
      <filename>scripts/build.py</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ div#game {
   float: left;
 }
 
-#top_controls span {
+#top_controls .item {
     padding-right: 10px;
 }
 </diff>
      <filename>style.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>70ad107e13f28038084e71ac33417bcc9da46785</id>
    </parent>
  </parents>
  <author>
    <name>Peter Burns</name>
    <email>peter@metaweb.com</email>
  </author>
  <url>http://github.com/rictic/processing-tower-defense/commit/fd8afdd98cb4be1bf2198b9f982b7503517197a5</url>
  <id>fd8afdd98cb4be1bf2198b9f982b7503517197a5</id>
  <committed-date>2008-06-05T01:26:46-07:00</committed-date>
  <authored-date>2008-06-05T01:26:46-07:00</authored-date>
  <message>Fixed underline problem in deploy, cleaned html

[#20 state:resolved]
BeautifulSoup isn't beautifying our html any more, but I've
gone through and validated our html as it stands (besides the
&lt;canvas&gt; element), and I'll take up that responsibility.

I also wrote a simple deploy script.  If it gets much more
complicated, we should look at rake.  Sure it adds another
dependency, but it's *so* nice for doing this sort of thing.</message>
  <tree>120a23422d04406271493823e7ddc2d5aa010097</tree>
  <committer>
    <name>Peter Burns</name>
    <email>peter@metaweb.com</email>
  </committer>
</commit>
