diff --git a/assets/images/AUTHORS b/assets/images/AUTHORS index ad20298..d38e818 100644 --- a/assets/images/AUTHORS +++ b/assets/images/AUTHORS @@ -1,5 +1,3 @@ -All images by Kenney +Artwork by Christine Lemmer-Webber -Licensed under CC0 - -https://kenney.nl/assets/puzzle-pack +Licensed under ????? diff --git a/assets/images/cirkoban.png b/assets/images/cirkoban.png new file mode 100644 index 0000000..d918d4d Binary files /dev/null and b/assets/images/cirkoban.png differ diff --git a/game.scm b/game.scm index a742289..6ca901a 100644 --- a/game.scm +++ b/game.scm @@ -34,6 +34,10 @@ (define game-width 320.0) (define game-height 240.0) +(define tile-width 16.0) +(define tile-height 16.0) + +(define image:tiles (make-image "assets/images/cirkoban.png")) (define dt (/ 1000.0 60.0)) ; aim for updating at 60Hz (define (update) @@ -57,6 +61,9 @@ (set-font! context "bold 24px monospace") (set-text-align! context "left") (fill-text context "HELLO" 16.0 36.0) + (draw-image context image:tiles + 0.0 0.0 tile-width tile-height + 100.0 100.0 tile-width tile-height) (request-animation-frame draw-callback)) (define draw-callback (procedure->external draw))