Map tweaks
This commit is contained in:
@@ -96,9 +96,9 @@ public class UnitTypes implements ContentList{
|
|||||||
flying = true;
|
flying = true;
|
||||||
drag = 0.05f;
|
drag = 0.05f;
|
||||||
mass = 2f;
|
mass = 2f;
|
||||||
speed = 2f;
|
speed = 3f;
|
||||||
accel = 0.1f;
|
rotateSpeed = 12f;
|
||||||
speed = 1.5f;
|
accel = 0.3f;
|
||||||
range = 70f;
|
range = 70f;
|
||||||
itemCapacity = 70;
|
itemCapacity = 70;
|
||||||
health = 400;
|
health = 400;
|
||||||
|
|||||||
@@ -117,10 +117,10 @@ public class BlockRenderer implements Disposable{
|
|||||||
//TODO tweak noise and radius
|
//TODO tweak noise and radius
|
||||||
if(world.isCampaign()){
|
if(world.isCampaign()){
|
||||||
int circleBlend = 14;
|
int circleBlend = 14;
|
||||||
float rawDst = Mathf.dst(x, y, world.width() / 2, world.height() / 2) + Noise.nnoise(x, y, 7f, 8f) + Noise.nnoise(x, y, 20f, 25f);
|
float rawDst = Mathf.dst(x, y, world.width() / 2, world.height() / 2) + Noise.nnoise(x, y, 7f, 7f) + Noise.nnoise(x, y, 20f, 15f);
|
||||||
int circleDst = (int)(rawDst - (world.width() / 2 - circleBlend));
|
int circleDst = (int)(rawDst - (world.width() / 2 - circleBlend));
|
||||||
if(circleDst > 0){
|
if(circleDst > 0){
|
||||||
dark = Math.max(circleDst / 1.4f, dark);
|
dark = Math.max(circleDst / 1.6f, dark);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,11 @@ public class Build{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//campaign circle check
|
||||||
|
if(world.isCampaign() && !Mathf.within(x, y, world.width()/2, world.height()/2, world.width()/2 - 8)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Tile tile = world.tile(x, y);
|
Tile tile = world.tile(x, y);
|
||||||
|
|
||||||
if(tile == null) return false;
|
if(tile == null) return false;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=415c435dc59e9248fdef8362582220d18f9f8e17
|
archash=7f149f0747ff41f1bfa80e2153d2b66402ba63c1
|
||||||
|
|||||||
Reference in New Issue
Block a user