Implemented replacement blocks

This commit is contained in:
Anuken
2017-09-07 22:14:21 -04:00
parent a5e877028e
commit d53f12aeb9
14 changed files with 47 additions and 15 deletions

View File

@@ -22,6 +22,10 @@ public class Bullet extends BulletEntity{
type.draw(this);
}
public float drawSize(){
return 8;
}
@Override
public void update(){

View File

@@ -25,7 +25,7 @@ public abstract class BulletType extends BaseBulletType<Bullet>{
},
sniper = new BulletType(3f, 20){
public void draw(Bullet b){
Draw.color("lightgray");
Draw.color(Color.LIGHT_GRAY);
Draw.rect("bullet", b.x, b.y, b.angle());
Draw.reset();
}

View File

@@ -41,6 +41,10 @@ public class Enemy extends DestructibleEntity{
heal();
}
public float drawSize(){
return 12;
}
void move(){
Vector2 vec = Pathfind.find(this);
vec.sub(x, y).setLength(speed);