Bugfixes / Better titan sprite
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 246 B |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 320 B |
|
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 676 B |
|
Before Width: | Height: | Size: 714 KiB After Width: | Height: | Size: 713 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
@@ -24,6 +24,12 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{
|
|||||||
@ReadOnly transient float range, aimX, aimY;
|
@ReadOnly transient float range, aimX, aimY;
|
||||||
@ReadOnly transient boolean isRotate, isShooting;
|
@ReadOnly transient boolean isRotate, isShooting;
|
||||||
|
|
||||||
|
void setWeaponRotation(float rotation){
|
||||||
|
for(WeaponMount mount : mounts){
|
||||||
|
mount.rotation = rotation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
boolean inRange(Position other){
|
boolean inRange(Position other){
|
||||||
return within(other, range);
|
return within(other, range);
|
||||||
}
|
}
|
||||||
@@ -83,7 +89,7 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{
|
|||||||
mount.targetRotation = Angles.angle(axisX, axisY, mount.aimX, mount.aimY) - rotation();
|
mount.targetRotation = Angles.angle(axisX, axisY, mount.aimX, mount.aimY) - rotation();
|
||||||
mount.rotation = Angles.moveToward(mount.rotation, mount.targetRotation, weapon.rotateSpeed * Time.delta());
|
mount.rotation = Angles.moveToward(mount.rotation, mount.targetRotation, weapon.rotateSpeed * Time.delta());
|
||||||
}else{
|
}else{
|
||||||
mount.rotation = this.rotation;
|
mount.rotation = 0;
|
||||||
mount.targetRotation = angleTo(mount.aimX, mount.aimY);
|
mount.targetRotation = angleTo(mount.aimX, mount.aimY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,8 @@ public class Build{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!contactsGround(tile.x, tile.y, type)){
|
//TODO should water blocks be placeable here?
|
||||||
|
if(/*!type.requiresWater && */!contactsGround(tile.x, tile.y, type)){
|
||||||
return false;
|
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=f3c9d742fecd62da79f37eb84c8351a9e0b16758
|
archash=2d1ea50ebc73ce8d87b275727efb785fd3e95b84
|
||||||
|
|||||||