tiny revision of QML "sokoban"

This commit is contained in:
polos 2017-03-05 23:20:18 +01:00
parent ff0a20d421
commit ab935d300b

View file

@ -172,7 +172,10 @@
(x:do-string (curr-char row)
(when (char= char curr-char)
(let ((item (first items)))
(if (and reset (find type '(:object :player)))
(if (and reset
(find type '(:object :player))
(or (/= (|x| item) x)
(/= (|y| item) y)))
(progn
(qsleep 0.05)
(qml-set item "x" x) ; animate "reset"