Exemplo n.º 1
0
        protected override void LoadContent()
        {
            font = Content.Load <SpriteFont>("Overlay");

            TextHeight = (int)font.MeasureString("0").Y - 5;


            _1by1 = new Texture2D(GraphicsDevice, 1, 1);
            _1by1.SetData(new Color[1] {
                Color.White
            });

            ColourScale = Catmul_Spline.Catmul_Init(graphics, _numColors);

            GenerateTexture.Initialise(_numColors, fieldN);
        }
Exemplo n.º 2
0
        private void QuickReset()
        {
            midX = _screenWid / 2 - Width / 2;
            midY = _screenHit / 2 - Height / 2;

            FirstPass = true;
            isPaused  = false;

            fieldNscale = 1;
            MaxHitCount = 0;
            field       = new float[fieldN, fieldN];

            iterates = 0; oldIterates = 0;

            Randomized_Tries     = 0;
            iterateGenerateFrame = NewFieldSetAvailable = false;
            GenerateTexture.Initialise(_numColors, fieldN);

            itsPerFrame = _itersPerFrame;

            frameCount = 0;
        }