public static void drawFullFacingBottom(DrawArgs drawArgs)
        {
            int height = drawArgs.getFlatTileHeight() * 2;
            int halfWidth = drawArgs.tileWidth / 2;
            int halfHeight = height / 2;

            Point[] points = new Point[]
            {
                new Point(0, halfHeight),
                new Point(halfWidth, 0),
                new Point(drawArgs.tileWidth, halfHeight),
                new Point(halfWidth, height)
            };

            drawArgs.asset.drawPolygon(drawArgs.getBaseBrush(), drawArgs.getBorderPen(), points, true);
        }
        public static void drawFullFacingBottom(DrawArgs drawArgs)
        {
            int height     = drawArgs.getFlatTileHeight() * 2;
            int halfWidth  = drawArgs.tileWidth / 2;
            int halfHeight = height / 2;

            Point[] points = new Point[]
            {
                new Point(0, halfHeight),
                new Point(halfWidth, 0),
                new Point(drawArgs.tileWidth, halfHeight),
                new Point(halfWidth, height)
            };

            drawArgs.asset.drawPolygon(drawArgs.getBaseBrush(), drawArgs.getBorderPen(), points, true);
        }
Exemple #3
0
        public static void drawMiddleCornerUpRight(DrawArgs drawArgs)
        {
            int height = drawArgs.getFlatTileHeight();

            int halfWidth  = drawArgs.tileWidth / 2;
            int halfHeight = height / 2;

            Point[] points = new Point[]
            {
                new Point(0, 0),
                new Point(halfWidth, 0),
                new Point(0, halfHeight)
            };

            drawArgs.asset.drawPolygon(drawArgs.getBaseBrush(), drawArgs.getBorderPen(), points, true);
        }