summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-07-06 17:56:22 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-07-06 17:56:22 -0400
commit0cac73fdec11776dd5a770554c581f808ee0721a (patch)
tree22960bd4e301a9b5a5edaacb633edbf6594709db /examples
parenta7f7a16f64428b590feeb6a5e7cdc9824b216e45 (diff)
Reorganize examples.
Diffstat (limited to 'examples')
-rw-r--r--examples/images/bullet.png (renamed from examples/bullet.png)bin1279 -> 1279 bytes
-rw-r--r--examples/images/grass.pngbin0 -> 530053 bytes
-rw-r--r--examples/images/sprite.png (renamed from examples/sprite.png)bin15176 -> 15176 bytes
-rw-r--r--examples/images/stars.png (renamed from examples/stars.png)bin82047 -> 82047 bytes
-rw-r--r--examples/images/tiles.pngbin0 -> 188670 bytes
-rw-r--r--examples/particles.scm5
-rw-r--r--examples/simple.scm2
7 files changed, 3 insertions, 4 deletions
diff --git a/examples/bullet.png b/examples/images/bullet.png
index 6b141d6..6b141d6 100644
--- a/examples/bullet.png
+++ b/examples/images/bullet.png
Binary files differ
diff --git a/examples/images/grass.png b/examples/images/grass.png
new file mode 100644
index 0000000..566f8ec
--- /dev/null
+++ b/examples/images/grass.png
Binary files differ
diff --git a/examples/sprite.png b/examples/images/sprite.png
index 2b2c6da..2b2c6da 100644
--- a/examples/sprite.png
+++ b/examples/images/sprite.png
Binary files differ
diff --git a/examples/stars.png b/examples/images/stars.png
index e9b89d4..e9b89d4 100644
--- a/examples/stars.png
+++ b/examples/images/stars.png
Binary files differ
diff --git a/examples/images/tiles.png b/examples/images/tiles.png
new file mode 100644
index 0000000..35b49c4
--- /dev/null
+++ b/examples/images/tiles.png
Binary files differ
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.