Implemented entity pooling, effect saving, other fixes

This commit is contained in:
Anuken
2018-04-17 18:57:03 -04:00
parent 23dc62dbd2
commit e7a4ce2e19
17 changed files with 213 additions and 85 deletions

View File

@@ -70,10 +70,9 @@ public class TurretBullets {
for(int i = 0; i < 9; i ++){
float len = Mathf.random(1f, 7f);
float a = Mathf.random(360f);
Bullet bullet = new Bullet(TurretBullets.basicLeadFrag, b,
Bullet bullet = Bullet.create(TurretBullets.basicLeadFrag, b,
x + Angles.trnsx(a, len), y + Angles.trnsy(a, len), a);
bullet.velocity.scl(Mathf.random(0.2f, 1f));
bullet.add();
}
}