예제 #1
0
        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);
        }
예제 #2
0
 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();
 }
예제 #3
0
        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();
        }
예제 #4
0
 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);
 }