Example #1
0
 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;
 }
Example #2
0
        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;
        }
Example #3
0
 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";
 }
Example #4
0
        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);
            }
        }
Example #5
0
 public void RemoveBox()
 {
     PlayBatchMan.Find(BatchName.Box).Remove(CollisionObj.Box);
 }