lqml/examples/sokoban
2022-04-20 21:54:29 +02:00
..
lisp add Windows platform (desktop only) 2022-04-20 21:54:29 +02:00
qml revisions 2022-03-31 08:30:45 +02:00
.gitignore add example 'sokoban' 2022-03-30 00:53:54 +02:00
app.asd add example 'sokoban' 2022-03-30 00:53:54 +02:00
readme.md revision 2022-03-30 00:59:17 +02:00

Prepare

Please copy the app template files first:

$ cd ..
$ ./copy.sh sokoban

Info

This shows how to dynamically create/destroy QML items.

For the game logic please see cl-sokoban; so, this is just an UI layer on top of that game.

Run

lqml run.lisp

Optionally pass -slime to start a Swank server, and connect from Emacs with M-x slime-connect.

During development you can pass -auto, which will releoad all QML files after you made a change to any of them and saved it. For re-initialization after reloading, file lisp/qml-reload/on-reloaded will be loaded.

Closing the window quits the app. If you try to kill it with ctrl-c, you need an additional ctrl-d to exit from ECL. To quit from Slime, do (qq) which is short for (qquit).