FRBDK/PolygonEditor/PolygonEditorWpf/FlatRedBallWpf/MainGame.cs
/// <summary>
/// This method is where you'll set up your camera, create sprites, etc.
/// </summary>
This method is where you'll set up your camera, create sprites, etc.
This method is where you ' ll set up your camera create sprites etc .
protected override void Initialize()
        {
            base.Initialize();
            SpriteManager.Camera.DestinationRectangle = new Rectangle(0, 0, RenderWidth, RenderHeight);
            SpriteManager.Camera.UsePixelCoordinates();
            _redBallTexture = FlatRedBallServices.Load<Texture2D>(@"Content\redball.bmp");
            _redBallSprite = SpriteManager.AddSprite(_redBallTexture);
            _redBallSprite.PixelSize = 1;
            _redBallSprite.RotationZVelocity = 1f;
        }
protected override void Initialize ( ) { base . Initialize ( ) ; SpriteManager . Camera . DestinationRectangle = new Rectangle ( 0 , 0 , RenderWidth , RenderHeight ) ; SpriteManager . Camera . UsePixelCoordinates ( ) ; _redBallTexture = FlatRedBallServices . Load < Texture2D > ( @"Content\redball.bmp" ) ; _redBallSprite = SpriteManager . AddSprite ( _redBallTexture ) ; _redBallSprite . PixelSize = 1 ; _redBallSprite . RotationZVelocity = 1f ; }
This method is where you'll set up your camera, create sprites, etc.
This method is where you ' ll set up your camera create sprites etc .
// This needs to be called first. Do not remove it. // Set up the camera you wish to use and clear the view             // Load the texture // Add a basic shape to make sure it is working.