Example #1
0
        protected void SetTextureAnimationMap(TextureAnimationMap textureAnimationMap)
        {
            SetTextureMap(textureAnimationMap);

            foreach (var rec in textureAnimationMap.SourceRectangles)
            {
                SourceRectangles.Add(rec);
            }
        }
Example #2
0
        public override void LoadContent()
        {
            foreach (string key in textureKeys)
            {
                SetTextureMap(ContentProvider.LoadTexture(key));
                SourceRectangles.Add(SourceRectangle.Value);
            }

            SourceRectangle = SourceRectangles.First();
        }
Example #3
0
        public override void LoadContent()
        {
            for (int i = 1; i < 4; i++)
            {
                SetTextureMap(ContentProvider.LoadTexture("Bug" + i.ToString()));
                SourceRectangles.Add(SourceRectangle.Value);
            }

            SourceRectangle = SourceRectangles.First();
        }
Example #4
0
        public override void LoadContent()
        {
            SetTextureMap(ContentProvider.LoadTexture("Wolf1"));
            SourceRectangles.Add(SourceRectangle.Value);

            SetTextureMap(ContentProvider.LoadTexture("Wolf2"));
            SourceRectangles.Add(SourceRectangle.Value);

            SourceRectangle = SourceRectangles.First();
        }