Exemplo n.º 1
0
        public Cannon()
            : base()
        {
            cannonBarrel = new RotatableSpriteGameObject("spr_cannon_barrel");
            cannonBarrel.Position = new Vector2(74, 404);
            cannonBarrel.Origin = new Vector2(34, 34);

            cannonColor = new ThreeColorGameObject("spr_cannon_red", "spr_cannon_green", "spr_cannon_blue");
            cannonColor.Position = new Vector2(50, 398);

            ball = new Ball();

            Add(ball);
            Add(cannonBarrel);
            Add(cannonColor);
        }