Official racer map #11
authorunc0rr
Fri, 25 Jul 2014 14:00:51 +0400
changeset 10366 b451b8f69f44
parent 10365 d5786d4230fd
child 10367 6e1bfa70ccb3
Official racer map #11
misc/OfficialChallenges/racer_#11.hwmap
share/hedgewars/Data/Scripts/OfficialChallenges.lua
tools/hwmap.hs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/OfficialChallenges/racer_#11.hwmap	Fri Jul 25 14:00:51 2014 +0400
@@ -0,0 +1,1 @@
+AAACCHicLY8LDsMgDEMpAbKtn114lTg40eYHkyrrtUltx+7tTvkudzo+ovMjqvGNXiNF0hO9QAZZbJEy8pX0BKUwXi16hnLkSGWJpm2J/m18c5ydPVtSMJiivKoV5U4/Z88ZNIJEG7SxnLWstEkNcqwq/Zxco3OFGuQ4F5ydLkaXCjXIaVX+ac+hfs+hey9Jf0E7tA/dcSBvSb+gaxiv8jugY+jA1xJNH0v074NvjrOzty8pGEyp5GZypx+XSzRoBIlO6GT50LLSJjXIsar0c3KNzhVq0Lyo4Ox0MbpUqEFcznSm/QB50Oil
\ No newline at end of file
--- a/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Thu Jul 10 13:40:49 2014 +0400
+++ b/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Fri Jul 25 14:00:51 2014 +0400
@@ -16,6 +16,8 @@
                 return("Racer Challenge #9")
             elseif LandDigest == "M751885839Scripts/Multiplayer/Racer.lua" then
                 return("Racer Challenge #10")
+            elseif LandDigest == "M178845011Scripts/Multiplayer/Racer.lua" then
+                return("Racer Challenge #10")
             end
 -- challenges without border
         elseif LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
--- a/tools/hwmap.hs	Thu Jul 10 13:40:49 2014 +0400
+++ b/tools/hwmap.hs	Fri Jul 25 14:00:51 2014 +0400
@@ -51,7 +51,7 @@
     mapM_ putWord8 $ BW.unpack $ BL.toStrict $ Z.compress b
 
 mapString :: B.ByteString
-mapString = B.pack . Base64.encode . BW.unpack . BL.toStrict . compressWithLength . BL.drop 8 . encode $ drawnMap02
+mapString = B.pack . Base64.encode . BW.unpack . BL.toStrict . compressWithLength . BL.drop 8 . encode $ drawnMap03
 
 main = B.writeFile "out.hwmap" mapString
 
@@ -94,3 +94,34 @@
         , l [(0, 2), (1, 2), (1, 3), (2, 3), (2, 4), (3, 4), (3, 5), (4, 5), (4, 6), (5, 6), (5, 7), (6, 7), (6, 8), (8, 8), (8, 2)]
         ]
     l = Line Solid 0
+
+
+drawnMap03 = translate (-3) (-3) $ sp ++ mirror sp ++ base ++ mirror base
+    where
+    sp = translate 128 128 . scale 256 $ [SpecialPoints [
+        (3, 1)
+        , (2, 4)
+        ]]
+    base = scale 256 $ [
+        l [(6, 0), (6, 1)]
+        , l [(1, 1), (5, 1)]
+        , l [(4, 1), (4, 2), (3, 2)]
+        , l [(0, 2), (1, 2), (1, 4)]
+        , l [(0, 4), (3, 4), (3, 3), (5, 3), (5, 2), (7, 2)]
+        , l [(7, 1), (7, 3)]
+        , l [(8, 0), (8, 4), (4, 4), (4, 5), (1, 5), (1, 6)]
+        , l [(6, 3), (6, 4)]
+        , l [(0, 8), (8, 8)]
+        , l [(1, 7), (1, 8)]
+        , l [(2, 7), (2, 5)]
+        , l [(3, 6), (3, 5)]
+        , l [(3, 7), (3, 8)]
+        , l [(4, 6), (4, 8)]
+        , l [(5, 4), (5, 6)]
+        , l [(5, 7), (5, 8)]
+        , l [(6, 5), (6, 8)]
+        , l [(7, 4), (7, 6)]
+        , l [(7, 7), (7, 8)]
+        , l [(8, 5), (8, 8)]
+        ]
+    l = Line Solid 0