changeset 66:d406e14b870d

Add comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2011 08:27:23 +0200
parents dc936dba124e
children b47f874db6be
files game/Engine.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/game/Engine.java	Fri Feb 25 07:37:38 2011 +0200
+++ b/game/Engine.java	Fri Feb 25 08:27:23 2011 +0200
@@ -253,15 +253,16 @@
             }
         }
         
+        // Compute and add score
         gameScore += connections * connections;
         
+        // If game over, clear the game
         if (flagGameOver)
         {
             currPiece = null;
-            System.out.print("GameOver!\n");
         }
     }
-    
+
     public boolean mouseWheelMoved(MouseWheelEvent e)
     {
         int notches = e.getWheelRotation();