예제 #1
0
 //Move the window to the bottom of the texture
 public void Begin()
 {
     //move the window down to the bottom of the source image
     //centered on the source image, and with the bottom of the window
     //at the bottom of the image
     //rememeber moving, moves as per the center of the GameObject
     window.MoveTo(new Vector2((float)base.texture.Width / 2.0f,
                               (float)base.texture.Height - (float)viewport.Height / 2.0f));
 }
예제 #2
0
        public override void Update(GameTime gameTime)
        {
            //move the default background
            //base.Update(gameTime);

            if (slider != null)
            {
                Offset(new Vector2(0, slider.Step));
            }

            //center the contained item on the background
            content.MoveTo(this.position);
        }
예제 #3
0
 public Credits()
 {
     //Setup the background sprite (gameobject)
     background = new GameObject(Textures.TextureName.CreditsBackground);
     background.MoveTo(PROPERTIES.screenCenter);
 }
예제 #4
0
 public Instructions()
 {
     background = new GameObject(Textures.TextureName.InstructionsBackground);
     background.MoveTo(PROP.screenCenter);
 }
예제 #5
0
 public Options()
 {
     background = new GameObject(Textures.TextureName.OptionsBackground);
     background.MoveTo(PROPERTIES.screenCenter);
 }
예제 #6
0
 public Options()
 {
     background = new GameObject(Textures.TextureName.OptionsBackground);
     background.MoveTo(PROPERTIES.screenCenter);
 }
예제 #7
0
 public Credits()
 {
     //Setup the background sprite (gameobject)
     background = new GameObject(Textures.TextureName.CreditsBackground);
     background.MoveTo(PROPERTIES.screenCenter);
 }