From 71d2a0f57c93046a8abde5aad0f2549188c9e64b Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Tue, 28 Jun 2022 12:21:25 -0500 Subject: [example] added more controls --- examples/02-moving-bitmp.lisp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/02-moving-bitmp.lisp') diff --git a/examples/02-moving-bitmp.lisp b/examples/02-moving-bitmp.lisp index 282d003..a1c3c87 100644 --- a/examples/02-moving-bitmp.lisp +++ b/examples/02-moving-bitmp.lisp @@ -19,6 +19,9 @@ (:scancode-right (incf (ww::unit-x target) (ww::unit-width target))) (:scancode-down (decf (ww::unit-y target) (ww::unit-height target))) (:scancode-up (incf (ww::unit-y target) (ww::unit-height target))) + (:scancode-w (incf (ww::unit-width target) 20)) + (:scancode-r (incf (ww::unit-rotation target) (/ pi 3))) + (:scancode-l (decf (ww::unit-rotation target) (/ pi 3))) (:scancode-equals (when (or (member :lshift modifiers) (member :rshift modifiers)) (ww::scale-by target 1.10))) -- cgit v1.2.3