Major improvements to Android touch controls, many bugfixes

This commit is contained in:
Anuken
2017-09-25 18:53:04 -04:00
parent c0505338f2
commit 9f3d7be7b4
27 changed files with 425 additions and 232 deletions

View File

@@ -47,7 +47,7 @@ public class Enemy extends DestructibleEntity{
hitsize = 5;
maxhealth = 30;
maxhealth = 50;
heal();
}

View File

@@ -8,7 +8,7 @@ public class FastEnemy extends Enemy{
speed = 0.7f;
reload = 30;
maxhealth = 20;
maxhealth = 30;
heal();
}

View File

@@ -1,6 +1,9 @@
package io.anuke.mindustry.entities.enemies;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.entities.Bullet;
import io.anuke.mindustry.entities.BulletType;
import io.anuke.ucore.util.Angles;
public class TankEnemy extends Enemy{
@@ -9,8 +12,19 @@ public class TankEnemy extends Enemy{
maxhealth = 400;
speed = 0.2f;
reload = 140f;
bullet = BulletType.iron;
reload = 90f;
bullet = BulletType.small;
}
void shoot(){
vector.set(length, 0).rotate(direction.angle());
Angles.shotgun(3, 4f, direction.angle(), f->{
Bullet out = new Bullet(bullet, this, x+vector.x, y+vector.y, f).add();
out.damage = (int)(damage*Vars.multiplier);
});
}
}