EQL5/examples/M-modules/quick/sokoban
2017-10-10 10:59:03 +02:00
..
3rd-party QML sokoban: add undo 2017-03-16 08:51:15 +01:00
qml fix QML examples to work with Qt 5.9 2017-06-21 21:13:29 +02:00
properties.lisp unix: add "make install" option for exe, lib, modules (refactor file locations) 2017-04-28 12:05:59 +02:00
qml-lisp.lisp fix 'qml-set' to work with enum values 2017-10-10 10:59:03 +02:00
README.txt review QML "sokoban" 2017-03-06 17:21:20 +01:00
sokoban.lisp build wrapper functions by default (no more optionally) 2017-09-14 13:17:44 +02:00

INFO
====

This is a QML port of example "examples/7-Sokoban/".

The main difference is the use of simple animations when moving items.


RUN
===

Please run it from this directory. For Emacs/Slime, this would be:

    eql5 ~/slime/eql-start-swank.lisp sokoban.lisp


NOTES
=====

This example shows how to dynamically create QML items from Lisp.

The ability to call Lisp from QML comes in handy for the Lisp functions
which need to wait for eventual running animations to finish.

See e.g. class:

    "qml/ext/NumberAnimationExt.qml"


TIP
===

See also function QML-SET-ALL, which is convenient for dynamically created
QML items, since many of them may have the same 'objectName'.

Examples:

    (qml-set-all "wall" "opacity" 1/2)

    (qml-set-all "object" "scale" 2/3)