Exemplo n.º 1
0
 public TrophyScreen(GameWorld3D game)
 {
     _game           = game.Game;
     _graphicsDevice = game.GraphicsDevice;
     _gameWorld3D    = game;
     Initialize();
 }
Exemplo n.º 2
0
 public RaceHud(GameWorld3D owner)
 {
     _owner      = owner;
     _gauges     = _owner.Game.Content.Load<Texture2D>("Aflevering/Images/fuel_gauge");
     _fuelDial   = _owner.Game.Content.Load<Texture2D>("Aflevering/Images/fuel_dial");
     _speedDial  = _owner.Game.Content.Load<Texture2D>("Aflevering/Images/speed_dial");
 }
Exemplo n.º 3
0
        protected override void Initialize()
        {
            // Bypass, no preloader - just Aflevering.
            if (ConfigurationManager.AppSettings["CurrentMiniGame"] == "Aflevering")
            {
                _gameWorld3D = new Aflevering.Aflevering(this);
                Components.Add(_gameWorld3D);

            }
            else
            {
            #if DEBUG
                _gameWorld3D = new Kantoor3D.Kantoor3D(this);
                Components.Add(_gameWorld3D);
            #else
                // Load the preloader stuff:
                _spriteBatch = new SpriteBatch(GraphicsDevice);
                _preloader   = new PreLoader(this);
                _preloader.Thread1.Start();
                //_preloader.Thread2.Start();
                //_preloader.Thread3.Start();
            #endif
            }

            base.Initialize();
        }
Exemplo n.º 4
0
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (_gameWorld3D == null && !_preloader.Thread1.IsAlive)
            {
                _gameWorld3D = new Kantoor3D.Kantoor3D(this);
                Components.Add(_gameWorld3D);
            }
        }