Major improvements to Android touch controls, many bugfixes
This commit is contained in:
@@ -47,7 +47,7 @@ public class Enemy extends DestructibleEntity{
|
||||
|
||||
hitsize = 5;
|
||||
|
||||
maxhealth = 30;
|
||||
maxhealth = 50;
|
||||
heal();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class FastEnemy extends Enemy{
|
||||
speed = 0.7f;
|
||||
reload = 30;
|
||||
|
||||
maxhealth = 20;
|
||||
maxhealth = 30;
|
||||
heal();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user