chickadee.scm 358 B

123456789101112131415161718
  1. (use-modules (chickadee)
  2. (chickadee math vector)
  3. (chickadee render sprite)
  4. (chickadee render texture))
  5. (define sprite #f)
  6. (define (load)
  7. (set! sprite (load-image "images/logo.png")))
  8. (define (draw alpha)
  9. (draw-sprite sprite (vec2 256.0 176.0)))
  10. (add-hook! load-hook load)
  11. (add-hook! draw-hook draw)
  12. (run-game)