summaryrefslogtreecommitdiff
path: root/examples/sprite.scm
blob: eb791619630619a3fba2165ff5d40ce71fbb79b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(use-modules (chickadee)
             (chickadee math vector)
             (chickadee graphics sprite)
             (chickadee graphics texture))

(define sprite #f)

(define (load)
  (set! sprite (load-image "images/chickadee.png")))

(define (draw alpha)
  (draw-sprite sprite (vec2 256.0 176.0)))

(run-game #:load load #:draw draw)