//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)); }
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); }
public Credits() { //Setup the background sprite (gameobject) background = new GameObject(Textures.TextureName.CreditsBackground); background.MoveTo(PROPERTIES.screenCenter); }
public Instructions() { background = new GameObject(Textures.TextureName.InstructionsBackground); background.MoveTo(PROP.screenCenter); }
public Options() { background = new GameObject(Textures.TextureName.OptionsBackground); background.MoveTo(PROPERTIES.screenCenter); }