Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/english_channel.js
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | paintRiver({ | ||||
"heightRiverbed": heightSeaGround, | "heightRiverbed": heightSeaGround, | ||||
"heightLand": heightLand, | "heightLand": heightLand, | ||||
"meanderShort": 20, | "meanderShort": 20, | ||||
"meanderLong": 0, | "meanderLong": 0, | ||||
"waterFunc": (position, height, riverFraction) => { | "waterFunc": (position, height, riverFraction) => { | ||||
createTerrain(height < -1.5 ? tWater : tShore).place(position); | createTerrain(height < -1.5 ? tWater : tShore).place(position); | ||||
}, | }, | ||||
"landFunc": (position, shoreDist1, shoreDist2) => { | "landFunc": (position, shoreDist1, shoreDist2) => { | ||||
g_Map.setHeight(position, heightLand + 0.1); | g_Map.setVertexHeight(position, heightLand + 0.1); | ||||
} | } | ||||
}); | }); | ||||
Engine.SetProgress(20); | Engine.SetProgress(20); | ||||
createTributaryRivers( | createTributaryRivers( | ||||
startAngle, | startAngle, | ||||
randIntInclusive(9, scaleByMapSize(13, 21)), | randIntInclusive(9, scaleByMapSize(13, 21)), | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator