Author: zookeeper
Date: Fri Oct 15 01:31:23 2010
New Revision: 47049

URL: http://svn.gna.org/viewcvs/wesnoth?rev=47049&view=rev
Log:
Added a WIP macro for corner-based beach transitions split into 12 tiles.

Modified:
    trunk/data/core/terrain-graphics.cfg
    trunk/data/core/terrain-graphics/new-macros.cfg

Modified: trunk/data/core/terrain-graphics.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/terrain-graphics.cfg?rev=47049&r1=47048&r2=47049&view=diff
==============================================================================
--- trunk/data/core/terrain-graphics.cfg (original)
+++ trunk/data/core/terrain-graphics.cfg Fri Oct 15 01:31:23 2010
@@ -725,6 +725,9 @@
 {TRANSITION_COMPLETE_L     Ds               R*                                 
-330                 sand/beach}
 {TRANSITION_COMPLETE_L     Hd               R*                                 
-331                 hills/desert}
 
+# To test the new beach macro, uncomment this and then comment out the other
+# ones underneath it...
+#{NEW:BEACH                    W*                  D*                          
                      sand/shore}
 # Special sand to water transitions
 {TRANSITION_COMPLETE_LF       Dd,Ds,Hd           (W*,Ss)                    
-490   double           sand/sand-out}
 {TRANSITION_COMPLETE_LF       W*,Ss              (Dd,Ds,Hd)                 
-491   double           sand/sand-in}

Modified: trunk/data/core/terrain-graphics/new-macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/terrain-graphics/new-macros.cfg?rev=47049&r1=47048&r2=47049&view=diff
==============================================================================
--- trunk/data/core/terrain-graphics/new-macros.cfg (original)
+++ trunk/data/core/terrain-graphics/new-macros.cfg Fri Oct 15 01:31:23 2010
@@ -225,6 +225,59 @@
 
 #define NEW:WALL2 TERRAINLIST ADJACENT1 ADJACENT2 IMAGESTEM
     {NEW:WALL2_P {TERRAINLIST} {ADJACENT1} {ADJACENT2} 100 {IMAGESTEM}}
+#enddef
+
+#define NEW:BEACH TERRAINLIST ADJACENT IMAGESTEM
+    [terrain_graphics]
+        map="
+,  2
+*,   3
+,  1
+*,   *
+,  *"
+        [tile]
+            pos=1
+            type={TERRAINLIST}
+            #set_no_flag=bea...@r???
+        [/tile]
+        [tile]
+            pos=2
+            type={ADJACENT}
+            #set_no_flag=bea...@r???
+        [/tile]
+        [tile]
+            pos=3
+            type={ADJACENT}
+            #set_no_flag=bea...@r???
+        [/tile]
+
+        rotations=tr,r,br,bl,l,tl
+
+        [image]
+            name={imagestem}-conv...@[email protected]
+            layer=0
+            center=90,144
+            base=90,144
+        [/image]
+        [image]
+            name={imagestem}-conv...@[email protected]
+            layer=0
+            center=90,144
+            base=90,144
+        [/image]
+        [image]
+            name={imagestem}-conv...@[email protected]
+            layer=0
+            center=90,144
+            base=90,144
+        [/image]
+        [image]
+            name={imagestem}-conv...@[email protected]
+            layer=0
+            center=90,144
+            base=90,144
+        [/image]
+    [/terrain_graphics]
 #enddef
 
 #define NEW:VILLAGE TERRAINLIST IMAGESTEM


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to