Beispiel #1
0
        public void draw(RenderingEngine renderingEngine, Player c)
        {
            //System.Console.WriteLine("Flip Horizontally: " + isFlipHorizontally);
            if (isFlipHorizontally)
            {
                //System.Console.WriteLine("Drawing flip horizontal model");
                renderingEngine.DrawScaledHorizontallyFlipped2DModel(c, (Texture2D)texture2DList.GetByIndex(frameCounter));
            }
            else
            {
                renderingEngine.DrawScaled2DModel(c, (Texture2D)texture2DList.GetByIndex(frameCounter));
            }

            if (texture2DList.Count == 0)
            {
                System.Console.WriteLine("Texture 2D List is empty");
            }
            //System.Console.WriteLine("Max Frames is " + maxFrames);
            //System.Console.WriteLine("Frame Counter is " + frameCounter);

            //System.Console.WriteLine("Count is " + texture2DList.Count);
        }