Example #1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            camerafps = new FPSCameraController(camera, GraphicsDevice);
            grid      = new Grid(GraphicsDevice);

            LoadTreeGenerators();
            NewTree();

            font = Content.Load <SpriteFont>("Fonts/Font");

            // Create a wind animation. The WindStrengthSin class is a rather crude but simple wind generator
            wind     = new WindStrengthSin();
            animator = new TreeWindAnimator(wind);
        }
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            camerafps = new FPSCameraController(camera, GraphicsDevice);
            grid = new Grid(GraphicsDevice);

            LoadTreeGenerators();
            NewTree();

            font = Content.Load<SpriteFont>("Fonts/Font");

            // Create a wind animation. The WindStrengthSin class is a rather crude but simple wind generator
            wind = new WindStrengthSin();
            animator = new TreeWindAnimator(wind);
        }