Commit 72115bb2 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

gletter, use the bonus interval instead of our own

parent 5c6ebbcd
......@@ -83,7 +83,6 @@ ActivityBase {
property GCAudio audioVoices: activity.audioVoices
property alias background: background
property alias bar: bar
property alias bonusTimer: bonusTimer
property alias bonus: bonus
property alias wordlist: wordlist
property alias score: score
......@@ -223,15 +222,9 @@ ActivityBase {
}
}
Timer {
id: bonusTimer
repeat: false
interval: 2000
onTriggered: bonus.good("lion")
}
Bonus {
id: bonus
interval: 2000
Component.onCompleted: win.connect(Activity.nextLevel)
}
......
......@@ -398,7 +398,7 @@ function previousLevel() {
function nextSubLevel() {
if( ++currentSubLevel >= maxSubLevel) {
currentSubLevel = 0
items.bonusTimer.start();
items.bonus.good("lion")
} else
initSubLevel();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment