mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fix whitespace of createDecoration calls.
Add one missing constraint in mainland of 822e37f70c.
Remove unneeded grass patch min/max angle value.
This was SVN commit r20532.
This commit is contained in:
parent
ff6bb138ba
commit
683723faf8
21 changed files with 302 additions and 306 deletions
|
|
@ -269,17 +269,23 @@ createMines(
|
|||
|
||||
Engine.SetProgress(65);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aDecorativeRock, 1,3, 0,1)],
|
||||
[new SimpleObject(aBush2, 1,2, 0,1), new SimpleObject(aBush1, 1,3, 0,2), new SimpleObject(aBush4, 1,2, 0,1), new SimpleObject(aBush3, 1,3, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(40, 360)
|
||||
],
|
||||
avoidClasses(clWater, 2, clForest, 0, clPlayer, 0, clHill, 1)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[
|
||||
new SimpleObject(aDecorativeRock, 1, 3, 0, 1)
|
||||
],
|
||||
[
|
||||
new SimpleObject(aBush2, 1, 2, 0, 1),
|
||||
new SimpleObject(aBush1, 1, 3, 0, 2),
|
||||
new SimpleObject(aBush4, 1, 2, 0, 1),
|
||||
new SimpleObject(aBush3, 1, 3, 0, 2)
|
||||
]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(40, 360)
|
||||
],
|
||||
avoidClasses(clWater, 2, clForest, 0, clPlayer, 0, clHill, 1));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -215,8 +215,7 @@ createDecoration(
|
|||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(8, 131)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
Engine.SetProgress(75);
|
||||
|
||||
log("Creating giraffes...");
|
||||
|
|
|
|||
|
|
@ -283,23 +283,22 @@ createMines(
|
|||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
Engine.SetProgress(75);
|
||||
|
||||
|
|
|
|||
|
|
@ -238,23 +238,22 @@ createMines(
|
|||
Engine.SetProgress(65);
|
||||
|
||||
var planetm = currentBiome() == "tropic" ? 8 : 1;
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]);
|
||||
Engine.SetProgress(70);
|
||||
|
||||
createFood(
|
||||
|
|
|
|||
|
|
@ -184,23 +184,22 @@ createMines(
|
|||
|
||||
Engine.SetProgress(60);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
Engine.SetProgress(75);
|
||||
|
||||
|
|
|
|||
|
|
@ -264,23 +264,22 @@ createMines(
|
|||
);
|
||||
Engine.SetProgress(60);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
Engine.SetProgress(70);
|
||||
|
||||
createFood(
|
||||
|
|
|
|||
|
|
@ -348,23 +348,22 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
3*scaleByMapSize(16, 262),
|
||||
3*scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
3 * scaleByMapSize(16, 262),
|
||||
3 * scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
log("Creating actor trees...");
|
||||
var group = new SimpleGroup(
|
||||
|
|
|
|||
|
|
@ -242,23 +242,22 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]);
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -241,17 +241,23 @@ createMines(
|
|||
|
||||
Engine.SetProgress(65);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aDecorativeRock, 1,3, 0,1)],
|
||||
[new SimpleObject(aBush2, 1,2, 0,1), new SimpleObject(aBush1, 1,3, 0,2), new SimpleObject(aBush4, 1,2, 0,1), new SimpleObject(aBush3, 1,3, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(40, 360)
|
||||
],
|
||||
avoidClasses(clWater, 2, clForest, 0, clPlayer, 5, clBaseResource, 6, clHill, 1, clRock, 6, clMetal, 6)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[
|
||||
new SimpleObject(aDecorativeRock, 1, 3, 0, 1)
|
||||
],
|
||||
[
|
||||
new SimpleObject(aBush2, 1, 2, 0, 1),
|
||||
new SimpleObject(aBush1, 1, 3, 0, 2),
|
||||
new SimpleObject(aBush4, 1, 2, 0, 1),
|
||||
new SimpleObject(aBush3, 1, 3, 0, 2)
|
||||
]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(40, 360)
|
||||
],
|
||||
avoidClasses(clWater, 2, clForest, 0, clPlayer, 5, clBaseResource, 6, clHill, 1, clRock, 6, clMetal, 6));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -226,36 +226,33 @@ createMines(
|
|||
);
|
||||
Engine.SetProgress(85);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 1, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 1, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
// create water decoration in the shallow parts
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aReeds, 1,3, 0,1)],
|
||||
[new SimpleObject(aLillies, 1,2, 0,1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aReeds, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aLillies, 1, 2, 0, 1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0));
|
||||
|
||||
createFood(
|
||||
[
|
||||
|
|
|
|||
|
|
@ -347,7 +347,9 @@ Engine.SetProgress(67);
|
|||
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[
|
||||
new SimpleObject(aGrassShort, 1, 2, 0, 1)
|
||||
],
|
||||
[
|
||||
new SimpleObject(aGrass, 2, 4, 0, 1.8),
|
||||
new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)
|
||||
|
|
|
|||
|
|
@ -352,8 +352,8 @@ createDecoration(
|
|||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 2, 15, 0, 1, -PI/8, PI/8)],
|
||||
[new SimpleObject(aGrass, 2, 10, 0, 1.8, -PI/8, PI/8), new SimpleObject(aGrassShort, 3, 10, 1.2, 2.5, -PI/8, PI/8)],
|
||||
[new SimpleObject(aGrassShort, 2, 15, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 10, 0, 1.8), new SimpleObject(aGrassShort, 3, 10, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 5, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -254,23 +254,22 @@ createMines(
|
|||
);
|
||||
Engine.SetProgress(70);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 1, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 1, clHill, 0));
|
||||
Engine.SetProgress(80);
|
||||
|
||||
createFood(
|
||||
|
|
|
|||
|
|
@ -331,23 +331,22 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -248,36 +248,34 @@ createMines(
|
|||
);
|
||||
Engine.SetProgress(65);
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clHill, 1, clPlayer, 1, clDirt, 1, clRiver, 1), stayClasses(clLand, 6)]
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clHill, 1, clPlayer, 1, clDirt, 1, clRiver, 1), stayClasses(clLand, 6)]);
|
||||
|
||||
log("Create water decoration in the shallow parts");
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aReeds, 1,3, 0,1)],
|
||||
[new SimpleObject(aLillies, 1,2, 0,1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aReeds, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aLillies, 1, 2, 0, 1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -241,23 +241,22 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -191,22 +191,22 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
]
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3,6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -215,10 +215,12 @@ Engine.SetProgress(75);
|
|||
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[
|
||||
new SimpleObject(aRockLarge, 1,2, 0,1),
|
||||
new SimpleObject(aRockMedium, 1,3, 0,2)
|
||||
new SimpleObject(aRockMedium, 1, 3, 0, 1)
|
||||
],
|
||||
[
|
||||
new SimpleObject(aRockLarge, 1, 2, 0, 1),
|
||||
new SimpleObject(aRockMedium, 1, 3, 0, 2)
|
||||
]
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -270,36 +270,33 @@ var planetm = 1;
|
|||
if (currentBiome() == "tropic")
|
||||
planetm = 8;
|
||||
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clWater, 0, clForest, 0, clPlayer, 0, clHill, 0));
|
||||
|
||||
// create water decoration in the shallow parts
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aReeds, 1,3, 0,1)],
|
||||
[new SimpleObject(aLillies, 1,2, 0,1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aReeds, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aLillies, 1, 2, 0, 1)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(800, 12800),
|
||||
scaleByMapSize(800, 12800)
|
||||
],
|
||||
stayClasses(clShallow, 0));
|
||||
|
||||
Engine.SetProgress(70);
|
||||
|
||||
|
|
|
|||
|
|
@ -305,23 +305,22 @@ for (var i = 0; i < maxI; i++)
|
|||
Engine.SetProgress(75);
|
||||
|
||||
log("Creating decoration...");
|
||||
createDecoration
|
||||
(
|
||||
[[new SimpleObject(aRockMedium, 1,3, 0,1)],
|
||||
[new SimpleObject(aRockLarge, 1,2, 0,1), new SimpleObject(aRockMedium, 1,3, 0,2)],
|
||||
[new SimpleObject(aGrassShort, 1,2, 0,1, -PI/8,PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0,1.8, -PI/8,PI/8), new SimpleObject(aGrassShort, 3,6, 1.2,2.5, -PI/8,PI/8)],
|
||||
[new SimpleObject(aBushMedium, 1,2, 0,2), new SimpleObject(aBushSmall, 2,4, 0,2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 1, clPlayer, 0, clPath, 3, clWater, 3)
|
||||
);
|
||||
createDecoration(
|
||||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2, 4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
scaleByMapSize(16, 262),
|
||||
scaleByMapSize(8, 131),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200),
|
||||
scaleByMapSize(13, 200)
|
||||
],
|
||||
avoidClasses(clForest, 1, clPlayer, 0, clPath, 3, clWater, 3));
|
||||
|
||||
Engine.SetProgress(80);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,8 +180,8 @@ createDecoration(
|
|||
[
|
||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)],
|
||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1, -PI/8, PI/8)],
|
||||
[new SimpleObject(aGrass, 2,4, 0, 1.8, -PI/8, PI/8), new SimpleObject(aGrassShort, 3,6, 1.2, 2.5, -PI/8, PI/8)],
|
||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)],
|
||||
[new SimpleObject(aGrass, 2,4, 0, 1.8), new SimpleObject(aGrassShort, 3, 6, 1.2, 2.5)],
|
||||
[new SimpleObject(aBushMedium, 1, 2, 0, 2), new SimpleObject(aBushSmall, 2, 4, 0, 2)]
|
||||
],
|
||||
[
|
||||
|
|
@ -191,8 +191,7 @@ createDecoration(
|
|||
planetm * scaleByMapSize(13, 200),
|
||||
planetm * scaleByMapSize(13, 200)
|
||||
],
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]
|
||||
);
|
||||
[avoidClasses(clForest, 0, clPlayer, 0, clHill, 0), stayClasses(clLand, 5)]);
|
||||
|
||||
createStragglerTrees(
|
||||
[oTree1, oTree2, oTree4, oTree3],
|
||||
|
|
|
|||
Loading…
Reference in a new issue