Esempio n. 1
0
        public static GameSprite Add(GameSprite.Name spriteName, Image.Name imageName, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            GameSpriteManager pMan = GameSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            GameSprite pNode = (GameSprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize the Data
            Image pImage = ImageManager.Find(imageName);

            Debug.Assert(pImage != null);

            pNode.Set(spriteName, pImage, x, y, width, height, pColor);
            return(pNode);
        }