summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/samegame/samegame4
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-11 07:40:55 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-11 07:40:55 (GMT)
commit6ac7ce79b6041a7c35d08cb28f775dead9701c4b (patch)
treeaa64687e4890828c1b49445ebf4eb4df6da92e72 /examples/declarative/tutorials/samegame/samegame4
parent31feeb0aa28f89d66c4af874d8e556141bb6c1f4 (diff)
downloadQt-6ac7ce79b6041a7c35d08cb28f775dead9701c4b.zip
Qt-6ac7ce79b6041a7c35d08cb28f775dead9701c4b.tar.gz
Qt-6ac7ce79b6041a7c35d08cb28f775dead9701c4b.tar.bz2
Update SameGame tutorial to discuss offline storage
Also removed the \target and got the navigation set up properly. Task-number: QT-2375
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame4')
-rwxr-xr-xexamples/declarative/tutorials/samegame/samegame4/content/samegame.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
index 58de55f..d5778fe 100755
--- a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
+++ b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
@@ -5,7 +5,7 @@ var maxY = 15;
var maxIndex = maxX*maxY;
var board = new Array(maxIndex);
var tileSrc = "content/BoomBlock.qml";
-var scoresURL = "http://qtfx-nokia.trolltech.com.au/samegame/scores.php";
+//var scoresURL = "http://qtfx-nokia.trolltech.com.au/samegame/scores.php";
var scoresURL = "";
var timer;
var component = createComponent(tileSrc);
@@ -206,6 +206,7 @@ function createBlock(xIdx,yIdx){
return true;
}
+//![2]
function saveHighScore(name) {
if(scoresURL!="")
sendHighScore(name);
@@ -241,6 +242,7 @@ function saveHighScore(name) {
}
);
}
+//![2]
//![1]
function sendHighScore(name) {