diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-05-04 23:50:53 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-05-05 02:54:01 (GMT) |
commit | dcee637a9f7a024803f0e5cc1bf57d878dca2ac3 (patch) | |
tree | 212950e45a79aeffc0a22492093f6531676739d2 /examples/declarative/tutorials/samegame/samegame3/samegame.js | |
parent | 4982b883c31874206aaa05268852fbcee81a8a39 (diff) | |
download | Qt-dcee637a9f7a024803f0e5cc1bf57d878dca2ac3.zip Qt-dcee637a9f7a024803f0e5cc1bf57d878dca2ac3.tar.gz Qt-dcee637a9f7a024803f0e5cc1bf57d878dca2ac3.tar.bz2 |
Doc improvements, simplify example code
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame3/samegame.js')
-rw-r--r-- | examples/declarative/tutorials/samegame/samegame3/samegame.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame3/samegame.js b/examples/declarative/tutorials/samegame/samegame3/samegame.js index 4256aee..84439fc 100644 --- a/examples/declarative/tutorials/samegame/samegame3/samegame.js +++ b/examples/declarative/tutorials/samegame/samegame3/samegame.js @@ -17,7 +17,7 @@ function startNewGame() { maxIndex = maxRow * maxColumn; //Close dialogs - dialog.forceClose(); + dialog.hide(); //Initialize Board board = new Array(maxIndex); @@ -59,10 +59,9 @@ function createBlock(column, row) { return true; } -var fillFound; -//Set after a floodFill call to the number of blocks found -var floodBoard; -//Set to 1 if the floodFill reaches off that node +var fillFound; //Set after a floodFill call to the number of blocks found +var floodBoard; //Set to 1 if the floodFill reaches off that node + //![1] function handleClick(xPos, yPos) { var column = Math.floor(xPos / gameCanvas.blockSize); |