commit:45798325dd71066cc5cdb20401092e930899555c
author:Chip Black
committer:Chip Black
date:Sat Jul 26 01:06:15 2008 -0500
parents:4f036958d8cc9f292725ecf7710d782428a695c7
Experimental YAML format level data
diff --git a/levels/example1/collages/example1 b/levels/example1/collages/example1
line changes: +40/-0
index 0000000..7308a37
--- /dev/null
+++ b/levels/example1/collages/example1
@@ -0,0 +1,40 @@
+tilesize 64 64
+bbox 19 7
+texture img/block.png
+tile 0 0
+tile 1 0
+tile 2 0
+tile 3 0
+tile 4 0
+tile 5 0
+tile 6 0
+tile 7 0
+tile 8 0
+tile 9 0
+
+tile 3 1
+tile 4 1
+tile 4 2
+tile 4 3
+tile 4 4
+
+tile 6 1
+tile 6 2
+
+tile 10 0
+tile 12 0
+tile 13 0
+tile 14 0
+tile 15 0
+tile 16 0
+tile 17 0
+tile 18 0
+
+tile 12 1
+tile 13 1
+tile 14 1
+tile 14 2
+
+tilesize 1 1
+texture img/ByteIco.png
+tile 263 263

diff --git a/levels/example1/layers.yaml b/levels/example1/layers.yaml
line changes: +39/-0
index 0000000..82093f4
--- /dev/null
+++ b/levels/example1/layers.yaml
@@ -0,0 +1,39 @@
+main:
+  collage: example1
+  surfaces: example1
+  things:
+
+    player:
+      class: Richter
+      properties: {position: [64,64]}
+      events:
+        collide(self, obj): |
+          if obj == zombie1:
+          	print "ZOMBIE!"
+        enterRegion(self, region): |
+          print "region"
+
+    candelabra:
+      class: Sprite
+      args:
+        file:
+          - Sprites/candelabra_short/cand_s_1.png
+          - Sprites/candelabra_short/cand_s_2.png
+          - Sprites/candelabra_short/cand_s_3.png
+          - Sprites/candelabra_short/cand_s_4.png
+        position: [64,64]
+        scale: 2.0
+        gravity: [CENTER,BOTTOM]
+        framerate: 10.0
+      init: |
+        candelabra.play()
+
+
+    zombie1:
+      class: Zombie
+      events:
+        collide(self, obj): |
+          print "GRAAAR!", obj
+
+stars:
+  collage: stars

diff --git a/levels/example1/surfaces/example1 b/levels/example1/surfaces/example1
line changes: +12/-0
index 0000000..fbef510
--- /dev/null
+++ b/levels/example1/surfaces/example1
@@ -0,0 +1,12 @@
+tilesize 64 64
+
+solid 0 0 10 1
+surface 2 1 4 2
+solid 4 1 5 5
+solid 6 1 7 3
+
+solid 10 0 11 1
+solid 12 0 19 1
+surface 12 1 13 2
+solid 13 1 15 2
+solid 14 2 15 3