diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/images/bullet.png (renamed from examples/bullet.png) | bin | 1279 -> 1279 bytes | |||
-rw-r--r-- | examples/images/grass.png | bin | 0 -> 530053 bytes | |||
-rw-r--r-- | examples/images/sprite.png (renamed from examples/sprite.png) | bin | 15176 -> 15176 bytes | |||
-rw-r--r-- | examples/images/stars.png (renamed from examples/stars.png) | bin | 82047 -> 82047 bytes | |||
-rw-r--r-- | examples/images/tiles.png | bin | 0 -> 188670 bytes | |||
-rw-r--r-- | examples/particles.scm | 5 | ||||
-rw-r--r-- | examples/simple.scm | 2 |
7 files changed, 3 insertions, 4 deletions
diff --git a/examples/bullet.png b/examples/images/bullet.png Binary files differindex 6b141d6..6b141d6 100644 --- a/examples/bullet.png +++ b/examples/images/bullet.png diff --git a/examples/images/grass.png b/examples/images/grass.png Binary files differnew file mode 100644 index 0000000..566f8ec --- /dev/null +++ b/examples/images/grass.png diff --git a/examples/sprite.png b/examples/images/sprite.png Binary files differindex 2b2c6da..2b2c6da 100644 --- a/examples/sprite.png +++ b/examples/images/sprite.png diff --git a/examples/stars.png b/examples/images/stars.png Binary files differindex e9b89d4..e9b89d4 100644 --- a/examples/stars.png +++ b/examples/images/stars.png diff --git a/examples/images/tiles.png b/examples/images/tiles.png Binary files differnew file mode 100644 index 0000000..35b49c4 --- /dev/null +++ b/examples/images/tiles.png diff --git a/examples/particles.scm b/examples/particles.scm index 90bd010..b5044bb 100644 --- a/examples/particles.scm +++ b/examples/particles.scm @@ -5,7 +5,6 @@ (srfi srfi-2) (srfi srfi-9) (ice-9 format) - (2d texture) (2d sprite) (2d game-loop) (2d window) @@ -40,8 +39,8 @@ (open-window window-width window-height) -(define stars (load-sprite "stars.png" #:anchor #(0 0))) -(define particle-image (load-texture "bullet.png")) +(define stars (load-sprite "images/stars.png" #:anchor #(0 0))) +(define particle-image (load-texture "images/bullet.png")) (define particle-width (texture-width particle-image)) (define particle-height (texture-height particle-image)) (define particle-count 2000) diff --git a/examples/simple.scm b/examples/simple.scm index f65a14c..65321e9 100644 --- a/examples/simple.scm +++ b/examples/simple.scm @@ -29,7 +29,7 @@ ;; Load a sprite and center it on the screen. ;; Must be done AFTER opening the window. -(set! sprite (load-sprite "sprite.png" #:position (vector (/ window-width 2) +(set! sprite (load-sprite "images/sprite.png" #:position (vector (/ window-width 2) (/ window-height 2)))) ;; Start the game loop. |