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

(use-modules (gl enums))

(define sprite #f)

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

(define (draw alpha)
  (draw-sprite sprite (vec2 256.0 176.0))
  ;;(abort-game)
  )

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