View Single Post
  #6 (permalink)  
Old February 8th, 2009, 12:31 PM
tkn_one tkn_one is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi all ...

Sorry for not knowing how to starting a new thread ... related to Pong ...

I have error with sourceRect.Width and sourceRect.Height not defined in RenderSprite method (on page 38 of the book). "Width" and "Height" seems not to be passed for each of the menu texture from the testMenuSprites on page 36.

Is there a declare statement somewhere that I have missed?

Thanks,


"Error 1 'System.Nullable<Microsoft.Xna.Framework.Rectangle >' does not contain a definition for 'Width' and no extension method 'Width' accepting a first argument of type 'System.Nullable<Microsoft.Xna.Framework.Rectangle >' could be found (are you missing a using directive or an assembly reference?) C:\Users\Tung\Documents\Visual Studio 2008\Projects\WindowsGame1\WindowsGame1\Game1.cs 187 84 WindowsGame1"