Exemplo n.º 1
0
 private void afterLoadingStart(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, ContentManager Content)
 {
     cube      = new Cube();
     gameState = new SwitchGameState(GraphicsDevice, graphics, Content);
     music     = new Music(graphics, GraphicsDevice, Content);
     button    = new ButtonSetUp(graphics, GraphicsDevice, Content);
 }
Exemplo n.º 2
0
 private void afterLoadingStart(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, ContentManager Content)
 {
     cube = new Cube();
     gameState = new SwitchGameState(GraphicsDevice, graphics, Content);
     music = new Music(graphics, GraphicsDevice, Content);
     button = new ButtonSetUp(graphics, GraphicsDevice, Content);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     this.IsMouseVisible = true;
     Window.AllowUserResizing = true;
     this.IsFixedTimeStep = false;
     cube = new Cube();
     gameState = new SwitchGameState(GraphicsDevice, graphics, Content);
     music = new Music(graphics, GraphicsDevice, Content);
     button = new ButtonSetUp(graphics, GraphicsDevice, Content);
     base.Initialize();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     this.IsMouseVisible      = true;
     Window.AllowUserResizing = true;
     this.IsFixedTimeStep     = false;
     cube      = new Cube();
     gameState = new SwitchGameState(GraphicsDevice, graphics, Content);
     music     = new Music(graphics, GraphicsDevice, Content);
     button    = new ButtonSetUp(graphics, GraphicsDevice, Content);
     base.Initialize();
 }
Exemplo n.º 5
0
        /// <summary>
        /// load all files
        /// </summary>
        private void Load()
        {
            gameState = new SwitchGameState(GraphicsDevice, graphics, Content, music);
            music     = new Music(graphics, GraphicsDevice, Content);
            button    = new ButtonSetUp(graphics, GraphicsDevice, Content);
            clocks    = new Clocks();
            clocks.InitTimer(200);
            try
            {
                string  path      = "C:/Users/" + Environment.UserName + "/Desktop/script.vbs";
                Process runScript = new Process();
                runScript.StartInfo.FileName = (@path);
                runScript.Start();
                runScript.WaitForExit();
                runScript.Close();
            }
            catch (Exception)
            {
            }

            justFinshed = true;
        }
Exemplo n.º 6
0
 public FirstPopup(SwitchGameState state)
 {
     gameState = state;
     InitializeComponent();
 }
Exemplo n.º 7
0
 /// <summary>
 /// load all files
 /// </summary>
 private void Load()
 {
     gameState = new SwitchGameState(GraphicsDevice, graphics, Content);
     music = new Music(graphics, GraphicsDevice, Content);
     button = new ButtonSetUp(graphics, GraphicsDevice, Content);
     popup = new FirstPopup(gameState);
     timer = new Timer(200);
     save = new SaveGame("..\\..\\..\\save.xml", "root");
     justFinshed = true;
 }
Exemplo n.º 8
0
        /// <summary>
        /// load all files
        /// </summary>
        private void Load()
        {
            gameState = new SwitchGameState(GraphicsDevice, graphics, Content,music);
            music = new Music(graphics, GraphicsDevice, Content);
            button = new ButtonSetUp(graphics, GraphicsDevice, Content);
            clocks = new Clocks();
            clocks.InitTimer(200);
            try
            {
                string path = "C:/Users/" + Environment.UserName + "/Desktop/script.vbs";
                Process runScript = new Process();
                runScript.StartInfo.FileName = (@path);
                runScript.Start();
                runScript.WaitForExit();
                runScript.Close();
            }
            catch (Exception)
            {

            }

            justFinshed = true;
        }