Jūs esate

xna

FMOD Ex-based sound system for game project

We (I and the members of my project team) are creating a game for our Project work lecture. I'm creating sound system :) I went to FMOD website and took a FMOD Ex package. There were some examples for C# :) If you want to create a sound system with C# and FMOD you need to copy at least fmod.cs file from <FMOD Ex installation directory>\api\csharp. But if you did that, also grab fmod_dsp.cs and fmod_errors.cs. They might be useful latter :) And also include in your project <FMOD Ex installation directory>\api\fmodex.dll. My not finished sound system can play sounds in multiple channels :) Right now I am thinking, should I create a universal sound playing and stopping method (something like Play(string song)), but I'll see :)

XNA. Change resolution & set full screen

I am creating a game with the XNA framework and I needed to change the resolution for XNA game. So, that's how it's done: public class MyCoolGame : Microsoft.Xna.Framework.Game // Code... // GraphicsDeviceManager graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = Width; graphics.PreferredBackBufferHeight = Height; graphics.ApplyChanges(); Another very useful property is IsFullScreen - boolean variable, which sets game to full screen or not (do not forget to call graphics.ApplyChanges().).
Subscribe to xna