Bugfixes / Better titan sprite

This commit is contained in:
Anuken 2020-04-30 18:21:50 -04:00
parent c5859eb03a
commit 626a06ca00
10 changed files with 456 additions and 449 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

After

Width:  |  Height:  |  Size: 246 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 339 B

After

Width:  |  Height:  |  Size: 284 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 320 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 676 B

Before After
Before After

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 KiB

After

Width:  |  Height:  |  Size: 713 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Before After
Before After

View file

@ -24,6 +24,12 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{
@ReadOnly transient float range, aimX, aimY;
@ReadOnly transient boolean isRotate, isShooting;
void setWeaponRotation(float rotation){
for(WeaponMount mount : mounts){
mount.rotation = rotation;
}
}
boolean inRange(Position other){
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.rotation = Angles.moveToward(mount.rotation, mount.targetRotation, weapon.rotateSpeed * Time.delta());
}else{
mount.rotation = this.rotation;
mount.rotation = 0;
mount.targetRotation = angleTo(mount.aimX, mount.aimY);
}

View file

@ -93,7 +93,8 @@ public class Build{
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;
}

View file

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=f3c9d742fecd62da79f37eb84c8351a9e0b16758
archash=2d1ea50ebc73ce8d87b275727efb785fd3e95b84