mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
Randomize first location
This commit is contained in:
parent
6494cb4388
commit
a8b1010984
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@
|
|||
(let* ((mover (create-child body "<div>(-o-)</div>"))
|
||||
(bounds-x (parse-integer (width (window body)) :junk-allowed t))
|
||||
(bounds-y (parse-integer (height (window body)) :junk-allowed t))
|
||||
(mover-x (/ bounds-x 2))
|
||||
(mover-y (/ bounds-y 2)))
|
||||
(mover-x (random bounds-x))
|
||||
(mover-y (random bounds-y)))
|
||||
|
||||
(setf (positioning mover) :fixed)
|
||||
(set-on-click mover #'on-click)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue