Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/archipelago.js
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | terrainPainter = new LayeredPainter( | ||||
[tMainTerrain, tMainTerrain], // terrains | [tMainTerrain, tMainTerrain], // terrains | ||||
[2] // widths | [2] // widths | ||||
); | ); | ||||
elevationPainter = new SmoothElevationPainter(ELEVATION_SET, 3, 4); | elevationPainter = new SmoothElevationPainter(ELEVATION_SET, 3, 4); | ||||
createAreas( | createAreas( | ||||
placer, | placer, | ||||
[terrainPainter, elevationPainter, paintClass(clLand)], | [terrainPainter, elevationPainter, paintClass(clLand)], | ||||
null, | null, | ||||
scaleByMapSize(1, 5)*randInt(5,10) | scaleByMapSize(1, 5) * randIntInclusive(5, 10) | ||||
); | ); | ||||
paintTerrainBasedOnHeight(2.4, 3.4, 3, tMainTerrain); | paintTerrainBasedOnHeight(2.4, 3.4, 3, tMainTerrain); | ||||
paintTerrainBasedOnHeight(1, 3, 0, tShore); | paintTerrainBasedOnHeight(1, 3, 0, tShore); | ||||
paintTerrainBasedOnHeight(-8, 1, 2, tWater); | paintTerrainBasedOnHeight(-8, 1, 2, tWater); | ||||
//creating the city patches for the players | //creating the city patches for the players | ||||
for (var i = 0; i < numPlayers; i++) | for (var i = 0; i < numPlayers; i++) | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator