diff options
author | Colin Okay <colin@cicadas.surf> | 2022-06-30 06:57:04 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-06-30 06:57:04 -0500 |
commit | 446b03d8cd6f81983eb74a05fdf7bbc7fbcd48f4 (patch) | |
tree | f441be84327b011b742b350820ba58f817ec1987 | |
parent | 7390c49a8f730405c048b4e79a6275322987315f (diff) |
[example] tweaking
-rw-r--r-- | examples/02-moving-bitmp.lisp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/02-moving-bitmp.lisp b/examples/02-moving-bitmp.lisp index 9504a87..3c9ee89 100644 --- a/examples/02-moving-bitmp.lisp +++ b/examples/02-moving-bitmp.lisp @@ -15,10 +15,10 @@ "Move the target around, grow and shrink it. Print out its position no matter what happens." (case scancode - (:scancode-left (decf (ww::unit-x target) (ww::unit-width target))) - (: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-left (decf (ww::unit-x target) )) + (:scancode-right (incf (ww::unit-x target) )) + (:scancode-down (decf (ww::unit-y target) )) + (:scancode-up (incf (ww::unit-y 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))) |