Пример #1
0
        public override void Render(int camX, int camY)
        {
            var snailBox  = new Box((int)X, (int)Y, Width, Height);
            var screenBox = new Box(camX, camY, Super50Bros.Instance.VirtualWidth, Super50Bros.Instance.VirtualHeight);

            if (snailBox.Intersect(screenBox))
            {
                Super50Bros.Instance.Graphics.Draw(Super50Bros.Instance.Textures[Texture], Super50Bros.Instance.Frames[Texture][CurrentAnimation.GetCurrentFrame()],
                                                   Math.Floor(X) + 8, Math.Floor(Y) + 8, Direction == Direction.Right, false, 8, 10);
            }
        }