Added a bunch more turrets

This commit is contained in:
Anuken
2017-04-29 22:15:41 -04:00
parent 218ba8a942
commit 4c26efaef6
8 changed files with 286 additions and 137 deletions
@@ -20,6 +20,13 @@ public enum BulletType{
Draw.clear();
}
},
sniper(3f, 17){
public void draw(Bullet b){
Draw.color("light gray");
Draw.rect("bullet", b.x, b.y, b.angle());
Draw.clear();
}
},
small(1.5f, 1){
public void draw(Bullet b){
Draw.color("orange");
@@ -27,6 +34,14 @@ public enum BulletType{
Draw.clear();
}
},
flame(0.6f, 4){
public void draw(Bullet b){
Draw.color(Color.YELLOW, Color.SCARLET, b.time/lifetime);
float size = 6f-b.time/lifetime*5f;
Draw.rect("circle", b.x, b.y, size, size);
Draw.clear();
}
},
shot(2.4f, 2){
{lifetime=40;}
public void draw(Bullet b){