本文整理汇总了C#中Projectile.LoadContent方法的典型用法代码示例。如果您正苦于以下问题:C# Projectile.LoadContent方法的具体用法?C# Projectile.LoadContent怎么用?C# Projectile.LoadContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Projectile
的用法示例。
在下文中一共展示了Projectile.LoadContent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContent
protected override void LoadContent(ContentManager theContentManager, GraphicsDevice theGraphicsDevice)
{
mPShipSprite = new PShip();
mProjectileSprite = new Projectile();
//Initialize and add the background images to the Scrolling background. You can change the
//scroll area by passing in a different Viewport. The images will then scale and scroll within
//that given Viewport.
mScrollingBackground = new VerticallyScrollingBackground(theGraphicsDevice.Viewport);
mScrollingBackground.AddBackground("Background1");
mScrollingBackground.AddBackground("Background2");
mScrollingBackground.AddBackground("Background3");
mScrollingBackground.AddBackground("Background4");
mScrollingBackground.AddBackground("Background5");
mScrollingBackground.AddBackground("Background6");
mScrollingBackground.AddBackground("Background7");
mScrollingBackground.AddBackground("Background8");
mScrollingBackground.AddBackground("Background9");
//Load the content for the Scrolling background
mScrollingBackground.LoadContent(theContentManager);
mProjectileSprite.LoadContent(theContentManager);
mPShipSprite.LoadContent(theContentManager);
}