protected override void Update(GameTime gameTime)
        {
            Words = new OutputText();
            output = Words.Stuff();

            timeCounter += gameTime.ElapsedGameTime.Milliseconds;
            if (timeCounter >= 150 && subIndex < output.Length)
            {
                if (subIndex > loopcounter)
                {
                    ToLong = true;
                    loopcounter += 10;
                }

                if (ToLong == true)
                {
                    output += "\n";
                    //FontPos.Y += 20;
                    ToLong = false;
                }

                timeCounter = 0;
                subIndex++;

            }
        }
        protected override void Update(GameTime gameTime)
        {
            Words  = new OutputText();
            output = Words.Stuff();


            timeCounter += gameTime.ElapsedGameTime.Milliseconds;
            if (timeCounter >= 150 && subIndex < output.Length)
            {
                if (subIndex > loopcounter)
                {
                    ToLong       = true;
                    loopcounter += 10;
                }

                if (ToLong == true)
                {
                    output += "\n";
                    //FontPos.Y += 20;
                    ToLong = false;
                }

                timeCounter = 0;
                subIndex++;
            }
        }
Ejemplo n.º 3
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Text        = Content.Load <SpriteFont>("SpriteFont");
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
            FontPos     = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2, graphics.GraphicsDevice.Viewport.Height / 2);

            FontRotation = 0;

            Test = new OutputText();

            /*  Words = new OutputText();
             * output = Words.Stuff();
             */
            // TODO: use this.Content to load your game content here
        }
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Text = Content.Load<SpriteFont>("SpriteFont");
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
            FontPos = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2, graphics.GraphicsDevice.Viewport.Height / 2);

            FontRotation = 0;

             Test = new OutputText();

              /*  Words = new OutputText();
             output = Words.Stuff();
            */
            // TODO: use this.Content to load your game content here
        }