Skip to content

Commit

Permalink
add rocket-controls
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Oct 30, 2024
1 parent 8414e68 commit a883e02
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/controls/control.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,13 @@
(when (key-down-p key.space) (move camera *vec3-up* mult))
(when (key-down-p key.c) (move camera *vec3-down* mult)))
(pos camera))

(defun rocket-controls ()
(when (key-down-p key.space)
(rocket-pause-toggle))
(when (key-down-p key.r)
(rocket-set-row 0))
(when (key-down-p key.comma)
(decf (rocket-row) 0.1))
(when (key-down-p key.period)
(incf (rocket-row) 0.1)))

0 comments on commit a883e02

Please sign in to comment.