diff options
author | Boutade <thegoofist@protonmail.com> | 2019-10-19 09:40:31 -0500 |
---|---|---|
committer | Boutade <thegoofist@protonmail.com> | 2019-10-19 09:40:31 -0500 |
commit | 4c68f1131a55c39c4bcb940ef8429f322d859170 (patch) | |
tree | 81e8ba0e3c77b48c5b4fb3ab24d341215158f9c4 /the-price-of-a-cup-of-coffee.lisp | |
parent | dd87492a61d1efad72ebe5a372bb161d467733f6 (diff) |
collision working
Diffstat (limited to 'the-price-of-a-cup-of-coffee.lisp')
-rw-r--r-- | the-price-of-a-cup-of-coffee.lisp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/the-price-of-a-cup-of-coffee.lisp b/the-price-of-a-cup-of-coffee.lisp index 8542283..182a8d8 100644 --- a/the-price-of-a-cup-of-coffee.lisp +++ b/the-price-of-a-cup-of-coffee.lisp @@ -469,6 +469,10 @@ (apply 'all-p (cons arg (cdr preds)))) t)) +(defun clear-keys-down () + (setf *keys-down* (make-keys-down))) + + (defun set-walk-vec-by-keysdown () (with-slots (walk-vec walk-speed diag-walk-speed) *nance* (cond ((< 2 (number-of-dpad-keys-down)) @@ -670,6 +674,7 @@ (defun run-collision (ped) (setf *collision-on-p* nil) (setf *input-mode* nil) + (clear-keys-down) (emote ped (choose-one "very-angry" "angry" "alarmed" "asshole" "death") 2000) (emote *nance* (choose-one "angry" "alarmed" "incapacitated" "stressed") 2000) (hopping-mad ped) |