public void addBomb(int x, int z, int bomb) { if (bombs.Count < 5 && (x % 2 == 0 || z % 2 == 0)){ Bomb b = new Bomb(x, z, 20, bomb); this.bombs.Enqueue(b); } }
public void RemoveBomb(Bomb b) { bb.EntityAlpha(b.image, 0.0f); //Explosion(b.x, b.y); bb.FreeEntity(b.image); }
public void LoadExplosion(Bomb b) { //for (int i = 0; i < EXPLOSION.Length; i++) //{ // String ii = i < 10 ? "0" + i : i+""; // explosion = bb.LoadSprite("Images//Explosion//exp_" + ii + ".png", 4); // bb.PositionEntity(explosion, b.x * Constants.BLOCK_FACTOR, 1, b.y * Constants.BLOCK_FACTOR * (-1)); //} }
public void drawExplosion(Bomb b) { LoadExplosion(b); //b.image_explosion = bb.PositionEntity(EXPLOSION[b.actual_frame], (b.x * Constants.BLOCK_FACTOR), 0, (b.y * Constants.BLOCK_FACTOR * (-1f))); //bb.PositionEntity(explosion, (b.x * Constants.BLOCK_FACTOR), 0, (b.y * Constants.BLOCK_FACTOR * (-1f))); }