コード例 #1
0
ファイル: ShieldBrick.cs プロジェクト: xfanw/Game
        public ShieldBrick(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);

            // set obj Green
            proxySprite.GetSprite().SetColor(0, 1, 0);
            this.x    = x;
            this.y    = y;
            locationX = lx;
            locationY = ly;
        }