comparison game/Engine.java @ 66:d406e14b870d

Add comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2011 08:27:23 +0200
parents dc936dba124e
children b47f874db6be
comparison
equal deleted inserted replaced
65:dc936dba124e 66:d406e14b870d
251 finished = true; 251 finished = true;
252 flagGameOver = true; 252 flagGameOver = true;
253 } 253 }
254 } 254 }
255 255
256 // Compute and add score
256 gameScore += connections * connections; 257 gameScore += connections * connections;
257 258
259 // If game over, clear the game
258 if (flagGameOver) 260 if (flagGameOver)
259 { 261 {
260 currPiece = null; 262 currPiece = null;
261 System.out.print("GameOver!\n"); 263 }
262 } 264 }
263 } 265
264
265 public boolean mouseWheelMoved(MouseWheelEvent e) 266 public boolean mouseWheelMoved(MouseWheelEvent e)
266 { 267 {
267 int notches = e.getWheelRotation(); 268 int notches = e.getWheelRotation();
268 269
269 if (notches < 0) 270 if (notches < 0)