blob: d8988c89e523d59523f770353b8fa894f8d0de28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(use-modules (chickadee)
(chickadee math rect)
(chickadee math vector)
(chickadee graphics font)
(chickadee graphics sprite)
(chickadee graphics texture))
(define image #f)
(define (load)
(set! image (load-image "images/dialog-box.png")))
(define (draw alpha)
(draw-nine-patch image (make-rect 192.0 192.0 256.0 96.0) #:margin 6)
(draw-text "I am error." #v(200.0 266.0)))
(run-game #:load load #:draw draw)
|