Exemplo n.º 1
0
        static Ship()
        {
            // outline of the ship, with 3 flames...
            MyPointF pointNose  = new MyPointF(0f, 4f);
            MyPointF pointRight = new MyPointF(2f, -2f);
            MyPointF pointLeft  = new MyPointF(-2f, -2f);
            MyPointF flameBase  = new MyPointF(0f, -2f);
            MyPointF flameEnd1  = new MyPointF(0f, -4f);
            MyPointF flameEnd2  = new MyPointF(0.5f, -4f);
            MyPointF flameEnd3  = new MyPointF(-0.5f, -4f);

            RotatableShape.AddLine(pointNose, pointRight, Constants.ShipSize);
            RotatableShape.AddLine(pointNose, pointLeft, Constants.ShipSize);
            RotatableShape.AddLine(pointLeft, pointRight, Constants.ShipSize);
            RotatableShape.AddLine(flameBase, flameEnd1, Constants.ShipSize);
            RotatableShape.AddLine(flameBase, flameEnd2, Constants.ShipSize);
            RotatableShape.AddLine(flameBase, flameEnd3, Constants.ShipSize);
        }
Exemplo n.º 2
0
 public Ship(GameClass game)
 {
     this.game = game;
     outline   = new RotatableShape();
 }
 public Ship(GameClass Game)
 {
     this.game = Game;
     outline = new RotatableShape();
 }