gamekit:stop does not work in a event handler #30
I am considering playing around with
I have been able to have a minimum working example (after installing quilcklisp).
I wanted to be able to quit the game from within the game, when for instance I press the left button of my mouse. Here is my code:
(cl:in-package :lysk) (gamekit:defgame example () ()) (defmethod gamekit:post-initialize ((app example)) (gamekit:bind-button :mouse-left :released (lambda () (gamekit:stop)))) (defun run () (gamekit:start 'example))
Unfortunately, it does not work, and even worth I cannot use
Could you help me a bit here? I have no idea how to do this.
Thanks by advance, for your help and for your work.
The text was updated successfully, but these errors were encountered: