Ejemplo n.º 1
0
 public static Sprite CreateSprite(Texture2D texture, Vector2 position, Nullable<Vector2> origin, SpriteAnimation spriteAnimation, ModularAnimation ModularAnimation, Color color, string name)
 {
     Sprite s = new Sprite(texture, position, new Vector2(1,1), 0, color, 1, name, 2);
     s.SetOrigin(origin);
     s.AddAnimation(spriteAnimation);
     s.AddModularAnimation(ModularAnimation);
     return s;
 }
Ejemplo n.º 2
0
        public static Sprite CreateSprite(RendererComponents parent, Texture2D texture, Vector2 position, Nullable <Vector2> origin, SpriteAnimation spriteAnimation, ModularAnimation ModularAnimation, Color color, string name)
        {
            Sprite s = new Sprite(parent, texture, position, new Vector2(1, 1), 0, color, 1, name, 2);

            s.SetOrigin(origin);
            s.AddAnimation(spriteAnimation);
            s.AddModularAnimation(ModularAnimation);
            return(s);
        }
Ejemplo n.º 3
0
        public static Sprite CreateSprite(Texture2D texture, Vector2 position, Nullable <Vector2> origin, SpriteAnimation spriteAnimation, ModularAnimation ModularAnimation, Color color, string name)
        {
            Sprite s = new Sprite(texture, position, color, 1, name);

            s.SetOrigin(origin);
            s.AddAnimation(spriteAnimation);
            s.AddModularAnimation(ModularAnimation);
            return(s);
        }