コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #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);
        }