fancier wiggletest
This commit is contained in:
parent
4f0756cbe9
commit
aad9e0e8c9
1 changed files with 2 additions and 1 deletions
3
main.scm
3
main.scm
|
@ -386,7 +386,8 @@
|
|||
(define (blit-from-skin skin rect pos)
|
||||
;; (display skin) (display " ") (display rect) (display " ") (display pos)
|
||||
;; (newline)
|
||||
(draw-texture-rec skin rect (vector2+ pos (vector2 (* (random 4) (sin *t*)) (* (random 4) (cos *t*)))) WHITE))
|
||||
(random-seed (* 1000 (add1 (inexact->exact (+ (rectangle-x rect) (rectangle-y rect))))))
|
||||
(draw-texture-rec skin rect (vector2+ pos (vector2 (* (random 8) (sin *t*)) (* (random 8) (cos *t*)))) WHITE))
|
||||
|
||||
(define (blit-number skin n pos)
|
||||
(let ([rect (vector-ref number-rects n)])
|
||||
|
|
Loading…
Reference in a new issue