Example #1
0
        public CanonBall(WarZGame game)
            : base(game)
        {
            WZGame = game;
            _ball = new SpherePrimitive(game.GraphicsDevice, Diameter, Tesselation);
            _boundingSphere = new BoundingSphere(_position, Diameter / 2f);

            _soundExplode = WZGame.Content.Load<SoundEffect>("Sounds/canon - explode2");
        }
Example #2
0
        public CanonBall(WarZGame game)
            : base(game)
        {
            WZGame = game;
            _ball = new SpherePrimitive(game.GraphicsDevice, Diameter, Tesselation);
            _boundingSphere = new BoundingSphere(_position, Diameter / 2f);

            _soundExplode = WZGame.Content.Load<SoundEffect>("Sounds/canon - explode2");

        }