コード例 #1
0
 public override void LoadContent()
 {
     lander = new Lander(StateManager.game);
     lander.Initialize();
     VectorFont.Initialize(StateManager.game);
     terrain             = new Terrain(StateManager.game);
     terrain.TerrainName = terrainFileName;
     terrain.Initialize();
     sentScore        = false;
     win              = StateManager.Content.Load <SoundEffect>("LanderVictorySound");
     lose             = StateManager.Content.Load <SoundEffect>("LanderExplosionSound");
     bgColor          = Color.Black;
     oldKeyboardState = Keyboard.GetState();
 }
コード例 #2
0
ファイル: PlayScreen.cs プロジェクト: steven5201/Lunar-Lander
        public override void LoadContent()
        {
            StateManager.game.Window.Title = "Lunar Lander";

            pb = GlobalValues.PrimitiveBatch;

            #region Lander Calls
            lander = new Lander(StateManager.game);
            lander.Initialize();

            if (isFirstLoad)
            {
                ResetValues();
                isFirstLoad = false;
            }
            #endregion
        }