View Single Post
  #1 (permalink)  
Old January 7th, 2008, 03:34 PM
ironchef ironchef is offline
Authorized User
Join Date: Jul 2006
Location: , , .
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ironchef
Default Pong probs --- Help...

Im really getting aggrivated at this computer... Whenever i go to build my game file, it says SpaceBakground file cannot be located. Ive placed the .dll in the content file, changed the Asset name and gotten the syntax correct. Ive even copied the code straight from the source code. Why isnt it working? here's the code I have(check the source code file for full code since I ended up copying and pasting):

protected override void LoadGraphicsContent(bool loadAllContent){
    if (loadAllContent){
    // Create sprite batch
    spriteBatch = new SpriteBatch(graphics.GraphicsDevice);

    // Load all our content
    backgroundTexture = content.Load<Texture2D>
    menuTexture = content.Load<Texture2D>("PongMenu");
    gameTexture = content.Load<Texture2D>("PongGame");
    audioEngine = new AudioEngine("PongSound.xgs");
    waveBank = new WaveBank(audioEngine, "Wave Bank.xwb");
        if (waveBank != null)
            soundBank = new SoundBank(audioEngine, "Sound
    } // if
} // LoadGraphicsContent(loadAllContent)

IronChef -
<b>IronChef</b> -