public BombCol(int lx, int ly) { CollisionObj = new CollisionObject(); CollisionObj.Box.SetColor(1, 1, 0, 1); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); locationX = lx; locationY = ly; }
public AlienLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); this.x = x; this.y = y; locationX = lx; locationY = ly; }
public UFOLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); proxySprite.GetSprite().SetColor(0.8f, 0, 0); this.x = x; this.y = y; locationX = lx; locationY = ly; name = "UFO Leaf"; }
public override void Notify() { Batch box = PlayBatchMan.Find(BatchName.Box); Batch wall = PlayBatchMan.Find(BatchName.Walls); Batch bump = PlayBatchMan.Find(BatchName.Bumps); if (box.GetVisible() == true) { box.SetVisible(false); wall.SetVisible(false); bump.SetVisible(false); } else { wall.SetVisible(true); box.SetVisible(true); bump.SetVisible(true); } }
public void RemoveBox() { PlayBatchMan.Find(BatchName.Box).Remove(CollisionObj.Box); }