Oct 18, 2009 at 2:20 AM
Edited Oct 18, 2009 at 2:26 AM
I get 4 of these errors. I am using Visual Studio 2008.
Error 5 'SilverArcade.SilverSprite.Rectangle' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'SilverArcade.SilverSprite.Rectangle' could be found (are you missing a using
directive or an assembly reference?)
if public void UpdateCannonBalls()
foreach (GameObject ball in cannonballs)
ball.position += ball.velocity;
if (!viewportRect.Contains(new Point
ball.alive = false; continue;
What reference do I add? Or what do I need to add to make it work?
[There's also 2 errors for resetElapsedTime. Same error as above only exception is it says SilverArcade.SilverSprite.Game.]
(I am a complete novice and have no knowledge of game programming whatsoever.)