public void addExplosion(Vector2 p, Vector2 vel, float scale, Color col) { Bullet s = new Bullet(explosionSprite, p, vel, 1, levelManager, col, 0); s.setScale(scale); s.setGrow(true, 0.06f); effects.Add(s); }
public void addBomb(Character c, Color col, int damage) { Bullet b = new Bullet(explosionSprite, c.getPos(), new Vector2(0.0f, 0.0f), 1, levelManager, col, damage); b.setGrow(true, 0.13f); b.setStay(true); playerBullets.Add(b); soundManager.playerDeath(); }