コード例 #1
0
 private void InitBallParts()
 {
     circ2      = new CollisionCircleD();
     flightPath = new FlightPath();
     flightPath.Load();
     launchButton = new Button01();
 }
コード例 #2
0
        private void _Load(int x, int y, int width, int height)
        {
            flightPath.Load();
            DebugConfigure(false);
            this.width     = width;
            this.height    = height;
            dx             = x;
            dy             = y;
            dcenter        = new PointD(dx + width / 2, dy + height / 2);
            dstartPosition = new PointD(dx, dy);
            //circ2.Load(dx, dy, (width / 2), 0, collisionPointCount);
            circ2.Load(dx, dy, collisionPointSideLength, (width / 2), 0, collisionPointCount);
            circ2.SetCircleColor(this.color);

            PositionLaunchButton();
        }