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); }
/// <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(); }
/// <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; }
public FirstPopup(SwitchGameState state) { gameState = state; InitializeComponent(); }
/// <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; }
/// <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; }