changeset 62:98ce098f8cbb

Add broken fence tile
author Neil Muller <drnlmuller@gmail.com>
date Mon, 31 Aug 2009 19:32:02 +0000
parents 67f0346e5435
children 1047ccd22dac
files data/tiles/broken_fence.png data/tiles/broken_fence.svg gamelib/tiles.py
diffstat 3 files changed, 128 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file data/tiles/broken_fence.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/tiles/broken_fence.svg	Mon Aug 31 19:32:02 2009 +0000
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="471.42856"
+   height="471.42856"
+   id="svg8054"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="broken_fence.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs8056">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective8062" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="4.0366331"
+     inkscape:cx="170.99002"
+     inkscape:cy="260.36441"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1278"
+     inkscape:window-height="730"
+     inkscape:window-x="0"
+     inkscape:window-y="41" />
+  <metadata
+     id="metadata8059">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-164.61935,-267.93091)">
+    <rect
+       style="opacity:1;fill:#a2ff46;fill-opacity:1;stroke:#24ff00;stroke-width:0;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect7475"
+       width="471.42856"
+       height="471.42856"
+       x="164.61935"
+       y="267.93091" />
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:2.83369851;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect8617"
+       width="127.53735"
+       height="40.803295"
+       x="264.98468"
+       y="443.35117" />
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:2.35902572;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect8619"
+       width="87.372032"
+       height="41.277969"
+       x="264.74734"
+       y="581.84332" />
+    <path
+       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:4.02237368;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-opacity:1"
+       d="M 359.5285,375.28837 L 400.33364,331.4225 L 441.13878,375.28837 L 441.13878,699.37978 L 359.5285,699.37978 L 359.5285,375.28837 z"
+       id="rect8099"
+       sodipodi:nodetypes="cccccc" />
+    <path
+       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-opacity:1"
+       d="M 236.64262,374.77866 L 277.45896,331.41131 L 318.27528,374.77866 L 318.27528,695.18683 L 236.64262,695.18683 L 236.64262,374.77866 z"
+       id="path8613"
+       sodipodi:nodetypes="cccccc" />
+    <path
+       style="fill:#58ff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 521.49033,724.286 C 513.67353,710.69327 518.91234,694.92462 525.04158,679.00755 C 538.73557,691.59832 548.8873,704.89754 550.78815,719.84694 C 547.36859,700.0718 554.0629,684.3422 562.32971,669.24161 C 572.48946,685.28826 581.25019,701.80125 577.42253,722.51037 C 580.60502,707.21497 583.6541,691.81951 596.06659,683.44661 C 605.16339,698.24349 603.96922,713.04037 601.39347,727.83725 L 521.49033,724.286 z"
+       id="path8077"
+       sodipodi:nodetypes="cccccccc" />
+    <path
+       style="fill:#58ff00;fill-opacity:1;fill-rule:evenodd;stroke:#279500;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 190.5352,725.02919 C 183.60423,721.47794 187.48533,658.44324 192.31083,658.44324 C 202.17231,678.56699 208.76675,698.69075 209.17927,718.8145 C 206.57397,678.30012 212.21343,641.90812 218.94521,606.06228 C 231.26911,643.87539 242.75795,681.54932 241.14053,717.03888 C 242.54607,687.37098 248.33552,662.08698 261.56022,644.23823 C 268.2822,667.16072 275.24626,690.03479 270.43835,715.26325 C 273.24276,669.34719 287.03288,637.16326 298.84836,602.51103 C 303.22319,640.67413 310.16316,679.35026 303.28742,715.26325 C 307.86871,689.80113 313.85969,667.1584 325.48274,655.7798 C 332.83225,680.98389 333.51764,704.85517 329.03399,727.69263 L 190.5352,725.02919 z"
+       id="path8068"
+       sodipodi:nodetypes="cccccccccccc" />
+    <rect
+       style="fill:#a2ff46;fill-opacity:1"
+       id="rect2448"
+       width="144.34207"
+       height="198.29518"
+       x="184.98207"
+       y="243.70442"
+       transform="translate(164.61935,267.93091)" />
+    <path
+       style="fill:#a2ff46;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
+       d="M 185.02457,313.8936 C 182.83208,316.623 175.22225,319.97993 173.07035,324.28373 C 171.97079,326.48284 177.39747,325.8081 179.37656,327.78718 C 181.7412,330.15182 176.66795,333.90507 175.17242,336.89614 C 174.44125,338.35848 175.90359,340.33863 175.17242,341.80097 C 173.75848,344.62884 179.14586,348.57717 180.07725,349.50856 C 181.51238,350.94369 184.27584,353.36159 185.3148,355.43952"
+       id="path2450"
+       transform="translate(164.61935,267.93091)"
+       sodipodi:nodetypes="cssssss" />
+    <path
+       style="fill:#a2ff46;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
+       d="M 195.45992,244.01131 C 198.1234,241.34783 205.56695,230.41107 208.58968,228.89971 C 209.5806,228.40424 210.57153,227.90878 211.56245,227.41332 C 214.36302,226.01303 215.80732,230.17179 217.26027,231.62475 C 222.15362,235.88865 227.11509,232.04624 231.62868,229.39517 C 231.95899,229.23001 232.2893,229.06486 232.6196,228.89971 C 234.19109,228.11396 235.59238,228.78892 235.59238,226.67012 C 235.59238,224.75926 246.05343,229.82057 247.48348,230.13836 C 251.23069,230.97108 255.37733,230.19191 259.12684,231.12929 C 260.41491,231.4513 262.00671,232.34472 263.09054,232.61567 C 264.49192,232.96602 264.2987,235.31022 265.32012,236.33164 C 266.61945,237.63097 268.3271,238.21528 269.77929,239.30442 C 270.91791,240.15839 272.81112,240.54307 274.23845,240.54307 C 275.03627,240.54307 275.53925,238.37563 278.44988,244.01131"
+       id="path2452"
+       transform="translate(164.61935,267.93091)"
+       sodipodi:nodetypes="cssccssssssssc" />
+  </g>
+</svg>
--- a/gamelib/tiles.py	Mon Aug 31 19:27:53 2009 +0000
+++ b/gamelib/tiles.py	Mon Aug 31 19:32:02 2009 +0000
@@ -14,6 +14,7 @@
         2: ("fence", "fence.png"),
         3: ("henhouse", "grassland.png"),
         4: ("guardtower", "guardtower.png"),
+        5: ("broken fence", "broken_fence.png"),
     }
 
     def __init__(self, tiles=None):