mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
function to add units
This commit is contained in:
parent
6867f705fa
commit
2c7ad56f20
3 changed files with 28 additions and 13 deletions
|
|
@ -55,8 +55,8 @@
|
|||
(return))
|
||||
(when (connection-data-item body "done")
|
||||
(return))
|
||||
(setf (top mover) (format nil "~Apx" mover-y))
|
||||
(setf (left mover) (format nil "~Apx" mover-x))
|
||||
(setf (top mover) (unit :px mover-y))
|
||||
(setf (left mover) (unit :px mover-x))
|
||||
(if (= (random 2) 0)
|
||||
(incf mover-y (random 10))
|
||||
(decf mover-y (random 10)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue