Exemplo n.º 1
0
        public GamePage()
        {
            this.InitializeComponent();

            // Create the game.
            var launchArguments = string.Empty;

            _game = MonoGame.Framework.XamlGame <Golf> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
Exemplo n.º 2
0
 public Sounds(Golf game)
 {
     Game       = game;
     Bounce     = Content.Load <SoundEffect>("Audio\\Bounce").CreateInstance();
     ShortIntro = Content.Load <SoundEffect>("Audio\\ShortIntro").CreateInstance();
     DropBounce = Content.Load <SoundEffect>("Audio\\DropBounce").CreateInstance();
     Hole       = Content.Load <SoundEffect>("Audio\\Hole").CreateInstance();
     Splash     = Content.Load <SoundEffect>("Audio\\Splash").CreateInstance();
     Swing      = Content.Load <SoundEffect>("Audio\\Swing").CreateInstance();
     Bouncing   = Content.Load <SoundEffect>("Audio\\Bouncing").CreateInstance();
     Menu       = Content.Load <SoundEffect>("Audio\\Menu").CreateInstance();
     SetEffectVolume(Game.GameSettings.EffectVolume);
     SetMusicVolume(Game.GameSettings.MusicVolume);
 }