<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -128,7 +128,7 @@
 
   &lt;div id=&quot;bottom_controls&quot;&gt;
     &lt;button id='pause_button' class='mode_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 id='reset_button' onclick=&quot;reset_game();&quot;&gt;Reset Game&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;!--     &lt;button id='mute_button' onclick=&quot;mute();&quot;&gt;Mute&lt;/button&gt; --&gt;
     &lt;button id='help_button' onclick=&quot;toggle_help();&quot;&gt;&lt;span class='hotkey'&gt;H&lt;/span&gt;elp&lt;/button&gt;
@@ -174,6 +174,8 @@
 &lt;script src=&quot;game/ui_modes.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; &gt;&lt;/script&gt;
 &lt;script src=&quot;game/weapons.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; &gt;&lt;/script&gt;
 &lt;script src=&quot;game/ptd.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; &gt;&lt;/script&gt;
+&lt;script src=&quot;jquery.ui-1.5/ui/effects.core.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;jquery.ui-1.5/ui/effects.highlight.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
 &lt;/div&gt;
 
 &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
@@ -199,13 +201,14 @@
     $('button .hotkey').each(function(){
         //this is bass ackwards, but I got type errors passing around the native click method
         var button = this.parentNode;
-        hotkeys[this.innerHTML.toUpperCase()] = function() {button.click()};
+        hotkeys[$(this).html().toUpperCase()] = function() {button.click()};
     });
     
     //hotkeys that aren't in the dom
     hotkeys[&quot;space&quot;] = pause;
     hotkeys[&quot;esc&quot;] = unselect;
     hotkeys['Z'] = function() {$('#log').empty()};
+    hotkeys['R'] = function() {if (SET.state.name() == &quot;GameOverMode&quot;) reset_game();}
     
     //modifiers to be called on keydown and keyup
     modifierkeys[&quot;shift&quot;] = function() { shift_down = !shift_down; };
@@ -330,11 +333,18 @@
         });
     });
     $('#game_over').hide();
-    $('').bind('game_over', function(e,hide){
-        if (hide == true)
+    $('').bind('game_over', function(e,over){
+        if (over == true){
+            log(&quot;game over&quot;);
             $('#game_over').html(&quot;Game Over! Final score: &quot; + $(&quot;#score&quot;).html()).fadeIn();
-        else
-            $('#game_over').html(&quot;Just once more...&quot;).fadeOut();
+            //tempt tempt tempt
+            for (var i=0; i &lt; 3; i++)
+              $(&quot;#reset_button&quot;).effect(&quot;highlight&quot;,{color:&quot;#f60&quot;},3000); 
+        }
+        else{
+          log(&quot;game (re?)started&quot;);
+          $('#game_over').html(&quot;Just once more...&quot;).fadeOut();
+        }
     });
     
     /* stub until we pull in sound for reals */</diff>
      <filename>ptd.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eea736671d1fad0f4b34dc32453d6f85c9a53dbb</id>
    </parent>
  </parents>
  <author>
    <name>Peter Burns</name>
    <email>peter@metaweb.com</email>
  </author>
  <url>http://github.com/rictic/processing-tower-defense/commit/c35df13135e3ee0af73f091c1e3b3a3e08377e1b</url>
  <id>c35df13135e3ee0af73f091c1e3b3a3e08377e1b</id>
  <committed-date>2008-06-12T05:11:22-07:00</committed-date>
  <authored-date>2008-06-12T05:11:22-07:00</authored-date>
  <message>Added a reset-game hotkey of R (only works when game is over)

Also, tempt the user to play again by highlighting the reset
button when they lose.  I worry that I may have overdone the effect
though.</message>
  <tree>14262c3d6894a77b707aad1362c45cd8fbec6080</tree>
  <committer>
    <name>Peter Burns</name>
    <email>peter@metaweb.com</email>
  </committer>
</commit>
