I have just run through the very useful begginers tutorial at http://www.riemers.net/eng/Tutorials/XNA/Csharp/series2d.php and am reasonably happy with the outcome.
However, I have noticed that by using 3 .wav files for the sound effects, the game is massively slowed down, I have adapted this bit of code:
if (keybState.IsKeyDown(Keys.Enter) || keybState.IsKeyDown(Keys.Space))
{
if (!rocketFlying) launch.Play();
rocketFlying = true;
...
}
which plays the launch soundeffect when the button is pressed, as the update method check this 60 times a second, and it is hard to press the button that quickly, so it now only plays it once.
However, it still slows the game down massively, which is obviously not ideal.
Obviously, I am not trying to do anything with this particular game, but I would like to know how to sort out this problem for future projects and just because it is a tad irritating.
Cheers Ryan