blob: d770779e2b24eeff49b952c432265e63f31ea684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
(use-modules (2d sprite)
(2d game)
(2d vector2))
(define (demo-sprite)
(load-sprite "images/sprite.png"
#:position (vector2 320 240)))
(define-scene demo
#:title "Demo"
#:draw (lambda (sprite) (draw-sprite sprite))
#:state (demo-sprite))
(define-game simple
#:title "Simple Demo"
#:first-scene demo)
(run-game simple)
|