public void start(int indexCena) { this.indexCena = indexCena; fundoGame = new Objects.Objeto2D(Game1.Self.Content.Load <Texture2D>("fundoGame")); fundoGame.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoGame.position.Y = Game1.Self.Window.ClientBounds.Height / 2; heart = new DumativaHeart.Objects.Heart(); avisoReading = new Objeto2D(Game1.Self.Content.Load <Texture2D>("reading")); avisoReading.position.X = 500; avisoReading.position.Y = 425; avisoFollow = new Objeto2D(Game1.Self.Content.Load <Texture2D>("follow_your_heart")); avisoFollow.position.X = 500; avisoFollow.position.Y = 425; contadorTempo = 600; Save.lerXml(indexCena); caixaTexto = new Textbox(800, new Vector2(100, 200), Save.textoAtual, 10, 20); fontDecisao = Game1.Self.Content.Load <SpriteFont>("fontDecisao"); heart.autoPilot = true; font = Game1.Self.Content.Load <SpriteFont>("OCR"); line = new Line(); backRender = new RenderTarget2D(Game1.Self.GraphicsDevice, Game1.GameRactangle.Width, Game1.GameRactangle.Height); }
public override void start() { backRender = new RenderTarget2D(Game1.Self.GraphicsDevice, Game1.GameRactangle.Width, Game1.GameRactangle.Height); fundoControl = new Objects.Objeto2D(Game1.Self.Content.Load <Texture2D>("fundoControl")); fundoControl.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoControl.position.Y = Game1.Self.Window.ClientBounds.Height / 2; line = new Objects.Line(); heart = new Objects.Heart(); heart.decayFactor = 0.6f; }
public override void start() { backRender = new RenderTarget2D(Game1.Self.GraphicsDevice, Game1.GameRactangle.Width, Game1.GameRactangle.Height); fundoControl = new Objects.Objeto2D(Game1.Self.Content.Load<Texture2D>("fundoControl")); fundoControl.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoControl.position.Y = Game1.Self.Window.ClientBounds.Height / 2; line = new Objects.Line(); heart = new Objects.Heart(); heart.decayFactor = 0.6f; }
public override void start() { SoundManager.SetMusic("GameOverSong", true, false, false); posicao = new Vector2(285, 590); fundoGameOver = new Objects.Objeto2D(Game1.Self.Content.Load<Texture2D>("fundoGameOver")); fundoGameOver.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoGameOver.position.Y = Game1.Self.Window.ClientBounds.Height / 2; tracinho = new Objeto2D(Game1.Self.Content.Load<Texture2D>("tracinho")); tracinho.position = posicao; contadorDrawUnderline = 0; contadorMenu = 1; font = Game1.Self.Content.Load<SpriteFont>("OCR"); }
public override void start() { SoundManager.SetMusic("GameOverSong", true, false, false); posicao = new Vector2(285, 590); fundoGameOver = new Objects.Objeto2D(Game1.Self.Content.Load <Texture2D>("fundoGameOver")); fundoGameOver.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoGameOver.position.Y = Game1.Self.Window.ClientBounds.Height / 2; tracinho = new Objeto2D(Game1.Self.Content.Load <Texture2D>("tracinho")); tracinho.position = posicao; contadorDrawUnderline = 0; contadorMenu = 1; font = Game1.Self.Content.Load <SpriteFont>("OCR"); }
public Textbox(int width, Vector2 position, string text, int textSpeed, int textDuration) { font = Game1.Self.Content.Load <SpriteFont>("OCR"); this.lastTime = Game1.currentTime; this.width = width; this.position = new Vector2(130, 140); this.text = text; this.slen = 1; drawString = ""; this.textSpeed = TimeSpan.FromMilliseconds(textSpeed); //this.textDuration = TimeSpan.FromMilliseconds(textDuration); escurecida = new Objects.Objeto2D(Game1.Self.Content.Load <Texture2D>("escurecida")); escurecida.position.X = Game1.Self.Window.ClientBounds.Width / 2; escurecida.position.Y = Game1.Self.Window.ClientBounds.Height / 2; tapSound = Game1.Self.Content.Load <SoundEffect>("Sfx/Tap1"); endSound = Game1.Self.Content.Load <SoundEffect>("Sfx/Tap2"); active = true; }
public Textbox(int width, Vector2 position, string text, int textSpeed, int textDuration) { font = Game1.Self.Content.Load<SpriteFont>("OCR"); this.lastTime = Game1.currentTime; this.width = width; this.position = new Vector2(130, 140); this.text = text; this.slen = 1; drawString = ""; this.textSpeed = TimeSpan.FromMilliseconds(textSpeed); //this.textDuration = TimeSpan.FromMilliseconds(textDuration); escurecida = new Objects.Objeto2D(Game1.Self.Content.Load<Texture2D>("escurecida")); escurecida.position.X = Game1.Self.Window.ClientBounds.Width / 2; escurecida.position.Y = Game1.Self.Window.ClientBounds.Height / 2; tapSound = Game1.Self.Content.Load<SoundEffect>("Sfx/Tap1"); endSound = Game1.Self.Content.Load<SoundEffect>("Sfx/Tap2"); active = true; }
public void start(int indexCena) { this.indexCena = indexCena; fundoGame = new Objects.Objeto2D(Game1.Self.Content.Load<Texture2D>("fundoGame")); fundoGame.position.X = Game1.Self.Window.ClientBounds.Width / 2; fundoGame.position.Y = Game1.Self.Window.ClientBounds.Height / 2; heart = new DumativaHeart.Objects.Heart(); avisoReading = new Objeto2D(Game1.Self.Content.Load<Texture2D>("reading")); avisoReading.position.X = 500; avisoReading.position.Y = 425; avisoFollow = new Objeto2D(Game1.Self.Content.Load<Texture2D>("follow_your_heart")); avisoFollow.position.X = 500; avisoFollow.position.Y = 425; contadorTempo = 600; Save.lerXml(indexCena); caixaTexto = new Textbox(800, new Vector2(100, 200), Save.textoAtual, 10, 20); fontDecisao = Game1.Self.Content.Load<SpriteFont>("fontDecisao"); heart.autoPilot = true; font = Game1.Self.Content.Load<SpriteFont>("OCR"); line = new Line(); backRender = new RenderTarget2D(Game1.Self.GraphicsDevice, Game1.GameRactangle.Width, Game1.GameRactangle.Height); }