From 2a05f16a736a5036377062273742b287c7cd7d97 Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Mon, 11 Feb 2013 21:01:06 +0100 Subject: [PATCH] Experimental AcidGoldMine landscape rework --- .../AcidGoldMine.ocs/Landscape.txt | 105 +++++++++--------- .../AcidGoldMine.ocs/Scenario.txt | 2 +- .../AcidGoldMine.ocs/Script.c | 2 +- 3 files changed, 55 insertions(+), 54 deletions(-) diff --git a/planet/Experimental.ocf/AcidGoldMine.ocs/Landscape.txt b/planet/Experimental.ocf/AcidGoldMine.ocs/Landscape.txt index 6f5dc4725..9c1bd9ac4 100644 --- a/planet/Experimental.ocf/AcidGoldMine.ocs/Landscape.txt +++ b/planet/Experimental.ocf/AcidGoldMine.ocs/Landscape.txt @@ -1,29 +1,30 @@ /* Acid world - by Sven2 */ overlay VaryTex { turbulence=10; algo=rndchecker; zoomX=-100; zoomY=-100; }; -overlay Mats { algo=rndchecker; a=10; zoomX=-100; zoomY=-100; turbulence=100; y=17; hgt=60; }; -overlay GraniteTop { algo=border; a=0; b=2; mat=Granite; oy=5; turbulence=10; }; -overlay LavaSurround { algo=border; a=0; b=2; mat=DuroLava; oy=5; turbulence=10; }; +overlay Mats { algo=rndchecker; a=10; zoomX=-100; zoomY=-100; turbulence=100; y=48px; hgt=168px; }; +overlay GraniteTop { algo=border; a=0; b=2; mat=Granite; oy=14px; turbulence=10; }; +overlay LavaSurround { algo=border; a=0; b=2; mat=DuroLava; oy=14px; turbulence=10; }; overlay SoilBorder { algo=border; a=1; b=1; mat=Earth; tex=earth_midSoil; loosebounds=1; }; +overlay SideLava { mat=DuroLava; algo=bozo; turbulence=100; }; overlay Ground { algo=poly; - point { x=-50%; y=40%; }; - point { x=0%; y=40%; }; - point { x=20%; y=35%; }; - point { x=25%; y=10%; }; - point { x=50%; y=10%; }; - point { x=60%; y=50%; }; - point { x=75%; y=50%; }; - point { x=85%; y=35%; }; - point { x=150%; y=35%; }; - point { x=150%; y=150%; }; - point { x=-50%; y=150%; }; + point { x=-50px; y=112px; }; + point { x=0px; y=112px; }; + point { x=24px; y=98px; }; + point { x=30px; y=28px; }; + point { x=60px; y=28px; }; + point { x=72px; y=140px; }; + point { x=90px; y=140px; }; + point { x=102px; y=98px; }; + point { x=200px; y=98px; }; + point { x=200px; y=420px; }; + point { x=-50px; y=420px; }; }; map AcidWorld { // Acid lake - overlay { mat=Acid; y=15%; sub=0; }; - overlay { mat=Acid; y=45%; }; + overlay { mat=Acid; y=42px; sub=0; }; + overlay { mat=Acid; y=126px; }; // Ground Ground { @@ -41,77 +42,77 @@ map AcidWorld { VaryTex { mat=Earth; tex=earth_dry; }; // In earth acid - Mats { turbulence=10000; y=50; hgt=25; a=3; mat=Acid; }; - Mats { turbulence=10000; y=75; hgt=9; a=0; mat=Acid; }; + Mats { turbulence=10000; y=140px; hgt=70px; a=3; mat=Acid; }; + Mats { turbulence=10000; y=210px; hgt=25px; a=0; mat=Acid; }; // In earth water - Mats { turbulence=10000; y=65; hgt=20; a=5; zoomX=10; zoomY=10; mat=Water; SoilBorder; }; + Mats { turbulence=10000; y=182px; hgt=56px; a=5; zoomX=10; zoomY=10; mat=Water; SoilBorder; }; // Lava bottom - overlay { turbulence=10; y=85; hgt=2; mat=DuroLava; loosebounds=1; }; - Mats { turbulence=10000; y=95; a=0; mat=DuroLava; loosebounds=1; SoilBorder; }; - Mats { turbulence=100; algo=sin; y=95; a=0; mat=DuroLava; loosebounds=1; SoilBorder; }; + overlay { turbulence=10; y=238px; hgt=20px; mat=DuroLava; loosebounds=1; }; + Mats { turbulence=10000; y=266px; a=0; mat=DuroLava; loosebounds=1; SoilBorder; }; + Mats { turbulence=100; algo=sin; y=266px; a=0; mat=DuroLava; loosebounds=1; SoilBorder; }; // Caves - overlay Caves { algo=rndchecker; a=2; zoomX=-100; zoomY=10; y=17; hgt=60; mask=1; turbulence=10; y=65; hgt=30; + overlay Caves { algo=rndchecker; a=2; zoomX=-100; zoomY=10; mask=1; turbulence=10; y=172px; hgt=64px; overlay {algo=border; a=3; b=0; mat=Tunnel; invert=1; overlay {mat=Earth; tex=earth_topSoil; algo=border; a=1; b=1;}; }; }; // Ground materials - Mats { mat=Sulphur; y=30; hgt=50; turbulence=1000; }; + Mats { mat=Sulphur; y=84px; hgt=140px; turbulence=1000; }; Mats { mat=Rock; zoomX=10; a=5; VaryTex { mat=rock; tex=rock_cracked;};}; - Mats { mat=Coal; y=20; hgt=50; turbulence=1000; }; - Mats { mat=Ore; y=30; hgt=40; turbulence=10; }; - Mats { mat=Granite; y=70; }; - Mats { mat=Granite; y=87; a=1; hgt=10; }; - Mats { mat=Gold; a=1; y=85; hgt=10; zoomX=-10; zoomY=-10; - LavaSurround; - }; + Mats { mat=Coal; y=56px; hgt=140px; turbulence=1000; }; + Mats { mat=Ore; y=84px; hgt=112px; turbulence=10; }; + Mats { mat=Granite; y=196px; }; + Mats { mat=Granite; y=244px; a=1; hgt=28px; }; + overlay { algo=bozo; mat=Gold; a=10; y=245px; hgt=55px; zoomX=10; zoomY=10; turbulence=100; }; + Mats { mat=Gold; a=4; y=270px; hgt=30px; zoomX=10; zoomY=10; }; // Ground border Ground { mask=1; overlay {algo=border; mat=Rock; tex=rock_cracked; a=2; b=1; turbulence=10; };}; // Some safety granit in pit - overlay { x=50; y=40; wdt=30; hgt=14; mat=Granite; loosebounds=1; turbulence=10; VaryTex { mat=Rock; }; }; + overlay { x=60px; y=112px; wdt=36px; hgt=39px; mat=Granite; loosebounds=1; turbulence=10; VaryTex { mat=Rock; }; }; // Mid cave - overlay { x=38; y=50; wdt=8; hgt=6; turbulence=10; loosebounds=1; mat=Tunnel; - overlay { x=20; y=0; wdt=60; hgt=100; turbulence=10; loosebounds=1; }; + overlay { x=45px; y=140px; wdt=10px; hgt=17px; turbulence=10; loosebounds=1; mat=Tunnel; + overlay { x=24; y=0px; wdt=72; hgt=280px; turbulence=10; loosebounds=1; }; SoilBorder; }; - + }; // Granite border overlay BorderL { mat=Granite; algo=poly; turbulence=10; - point { x=-50%; y=60%; }; - point { x=5%; y=60%; }; - point { x=10%; y=80%; }; - point { x=30%; y=100%; }; - point { x=30%; y=150%; }; - point { x=-50%; y=150%; }; + point { x=-50px; y=168px; }; + point { x=6px; y=168px; }; + point { x=12px; y=224px; }; + point { x=36px; y=300px; }; + point { x=36px; y=420px; }; + point { x=-50px; y=420px; }; }; overlay BorderR { mat=Granite; algo=poly; turbulence=10; - point { x=150%; y=60%; }; - point { x=95%; y=60%; }; - point { x=90%; y=80%; }; - point { x=70%; y=100%; }; - point { x=70%; y=150%; }; - point { x=150%; y=150%; }; + point { x=200px; y=168px; }; + point { x=114px; y=168px; }; + point { x=108px; y=224px; }; + point { x=84px; y=300px; }; + point { x=84px; y=420px; }; + point { x=200px; y=420px; }; }; +// overlay {mat =Granite; y=260px; }; - BorderL { mask=1; overlay { algo=border; a=5; b=5; invert=1; mat=DuroLava; }; }; - BorderR { mask=1; overlay { algo=border; a=5; b=5; invert=1; mat=DuroLava; }; }; + BorderL { mask=1; overlay { algo=border; a=5; b=5; invert=1; mask=1; SideLava; }; }; + BorderR { mask=1; overlay { algo=border; a=5; b=5; invert=1; mask=1; SideLava; }; }; - overlay { mat=DuroLava; y=95; turbulence=10; loosebounds=1; }; + overlay { mat=DuroLava; y=305px; turbulence=10; loosebounds=1; }; // Extra gold - overlay { x=85; y=40; wdt=10; hgt=2; mat=Gold; loosebounds=1; turbulence=10; }; - overlay { x=45; y=88; wdt=10; hgt=5; mat=Gold; loosebounds=1; turbulence=10; LavaSurround; }; + overlay { x=102px; y=112px; wdt=12px; hgt=6px; mat=Gold; loosebounds=1; turbulence=10; }; + overlay { x=54px; y=249px; wdt=10px; hgt=12px; mat=Gold; loosebounds=1; turbulence=10; }; }; \ No newline at end of file diff --git a/planet/Experimental.ocf/AcidGoldMine.ocs/Scenario.txt b/planet/Experimental.ocf/AcidGoldMine.ocs/Scenario.txt index 9da921cdb..98cb8b42b 100644 --- a/planet/Experimental.ocf/AcidGoldMine.ocs/Scenario.txt +++ b/planet/Experimental.ocf/AcidGoldMine.ocs/Scenario.txt @@ -34,7 +34,7 @@ SkyScrollMode=1 TopOpen=1 BottomOpen=0 MapWidth=120 -MapHeight=280 +MapHeight=315 MapZoom=6 [Weather] diff --git a/planet/Experimental.ocf/AcidGoldMine.ocs/Script.c b/planet/Experimental.ocf/AcidGoldMine.ocs/Script.c index 6a291c93c..90722f505 100644 --- a/planet/Experimental.ocf/AcidGoldMine.ocs/Script.c +++ b/planet/Experimental.ocf/AcidGoldMine.ocs/Script.c @@ -37,7 +37,7 @@ func Initialize() lorry->CreateContents(DynamiteBox,2); } // Mushrooms before any earth materials, because they create their own caves - LargeCaveMushroom->Place(15, Rectangle(LandscapeWidth()/4,LandscapeHeight()*72/100,LandscapeWidth()/2,LandscapeHeight()*7/100)); + LargeCaveMushroom->Place(15, Rectangle(LandscapeWidth()/4,172*6,LandscapeWidth()/2,60*6)); // Create earth materials // Create them in big clusters so the whole object arrangement looks a bit less uniform and more interesting PlaceBatches([Firestone], 3, 100, 5);