- added some notes on using the file
[supertux.git] / data / images / tiles.strf
index 8aebb7b..6352209 100644 (file)
@@ -1,3 +1,17 @@
+;; This file contains the mapping from tile-ids to image files as well
+;; as the tile properties (unisolid, solid, ice, water, etc.). Since
+;; it is important that the tile-ids don't change once created and
+;; used in a level some care has to be taken when editing this file,
+;; else the levels would be rendered unusable.
+;;
+;; Some notes on editing this file:
+;;  - tile-ids must be uniq
+;;  - the tile definition with the largest id should always be at the
+;;    bottom of the file
+;;  - when creating a new tile definition take the greatest current id
+;;    and increment it by one
+;;  - the meaning of the values in (attributes ...) can be seen in
+;;    src/tile.cpp, unisolid is 3 not 2
 (supertux-tiles
   (tilegroup
     (name "Snow")
@@ -9,7 +23,7 @@
       30   31   114  113
       21   22   19   203
       20   23   207  208
-      115  116  0    0
+      115  116  214  0
       117  118  0    0
       122  209  123  0
       124  210  125  0
       2052 2053 2054 0
       2057 2058 2059 0
       2062 2063 2064 0
+         0 2067 2068 2069
+         0 2072 2073 2074
+      2075 2079 2076    0
+      2077 2073 2078    0 
+      
+      2070 2071    0    0
+
+      2085 2086 0 0
+      2087 2088 0 0
+      2089 2090 0 0
     )
   )
   (tilegroup
       1799 1800
     )
   )
+        
+(tilegroup
+ (name "Castle (snow)")
+ (tiles
+ 2091 2092 2093 0
+ 2096 2097 2098 0
+ 2101 2102 2103 0
+ 2106 2107 2108 0
+ 2111 2112 2113 0
+ 2116 2117 2118 0
+
+ 2094 2095 0 0
+ 2099 2100 0 0
+ 2104 2105 0 0
+ 2109 2110 0 0
+ 2114 2115 0 0
+ 2119 2120 0 0
+))
+
   (tilegroup
     (name "Cave background")
     (tiles
       207 208
       202 203
       204 206
-      205 205
+      214 205
     )
     (attributes
       1 1
     (height 4)
     (ids
       2032 2033 2034 2035
-      2036 2037 2032 2038
-      2039 2032 2032 2040
-      2032 2041 2042 2032
+      2036 2037    0 2038
+      2039    0    0 2040
+         0 2041 2042    0
     )
     (attributes
       0 0 0 0
     (image "tiles/forest/ladder.png")
   )
   (tiles
-    (width  5)
-    (height 4)
-    (ids 2050 2051 2052 2053 2054
-         2055 2056 2057 2058 2059
-         2060 2061 2062 2063 2064
-         2065 2066 2067 2068 2069
+    (width  7)
+    (height 5)
+    (ids 2050 2051 2052 2053 2054 2075 2076
+         2055 2056 2057 2058 2059 2077 2078
+         2060 2061 2062 2063 2064 2079 2080
+         2065 2066 2067 2068 2069 2081 2082
+         2070 2071 2072 2073 2074 2083 2084
     )
     (attributes
-      0 0 0 0 0
-      0 0 0 0 0
-      0 0 0 0 0
-      0 0 0 0 0
+      0 0 0 0 0 0 0
+      0 0 0 0 0 3 3
+      0 0 0 0 0 0 0
+      0 0 0 0 0 0 0
+      0 0 3 3 3 0 0
     )
     (image "tiles/snow/unisolid.png")
   )
+  (tiles
+    (width  2)
+    (height 3)
+    (ids 2085 2086
+         2087 2088
+         2089 2090
+    )
+    (attributes
+     1 1
+     1 1
+     1 1
+    )
+    (image "tiles/pipe/blue.png")
+  )
+
+  (tile
+    (id 2019)
+    (images
+      "tiles/water/antartic-1.png"
+      "tiles/water/antartic-2.png"
+      "tiles/water/antartic-3.png"
+      "tiles/water/antartic-4.png"
+      "tiles/water/antartic-5.png"
+      "tiles/water/antartic-6.png"
+      "tiles/water/antartic-7.png"
+      "tiles/water/antartic-8.png"
+    )
+    (water #t)
+    (anim-fps 16)
+  )
+
+  (tile
+    (id 2020)
+    (images
+     "tiles/water/antartic.png")
+    (water #t)
+    )
+
+  (tiles
+    (width  5)
+    (height 6)
+    (ids 2091 2092 2093 2094 2095
+         2096 2097 2098 2099 2100
+         2101 2102 2103 2104 2105
+         2106 2107 2108 2109 2110
+         2111 2112 2113 2114 2115
+         2116 2117 2118 2119 2120
+    )
+    (attributes
+      1 1 1 1 1
+      1 1 1 0 0
+      1 1 1 0 0
+      1 1 1 0 0
+      1 1 1 0 0
+      1 1 1 0 0
+    )
+    (image "tiles/snowcastle/foreground.png")
+  )
+
 )