Ejemplo n.º 1
0
        public SpriteNode Attach(ProxySprite pNode)
        {
            SpriteNode pSpriteNode = (SpriteNode)this.baseAdd();

            pSpriteNode.Set(pNode, this);
            return(pSpriteNode);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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";
 }
Ejemplo n.º 4
0
 public CollisionObject(ProxySprite pProxySprite)
 {
     Rect = new CollisionRect(pProxySprite.GetRect());
     Box  = new BoxSprite(Rect);
 }
Ejemplo n.º 5
0
 public SpriteNode Attach(ProxySprite pNode)
 {
     return(pSpriteNodeMan.Attach(pNode));
 }