small revision

This commit is contained in:
polos 2017-03-01 18:29:47 +01:00
parent 92e3d1df6e
commit e2354c3831
4 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Image {
onRunningChanged: { Lisp.call("qsoko:animation-change", running) }
}
}
Behavior on y {
NumberAnimation {
duration: 150

View file

@ -20,6 +20,8 @@ Image {
}
}
// final animation
SequentialAnimation {
objectName: "wiggle"
loops: 5

View file

@ -9,6 +9,7 @@ Image {
onRunningChanged: { Lisp.call("qsoko:animation-change", running) }
}
}
Behavior on y {
NumberAnimation {
duration: 120

View file

@ -218,9 +218,11 @@
(final-animation)))))))))
(defun game-finished ()
;; finished: no more :object, only :object2
(let ((ch (type-char :object)))
(dolist (str (sokoban:maze-text *maze*))
(when (find ch str) (return-from game-finished))))
(when (find ch str)
(return-from game-finished))))
t)
(defun final-animation ()