/// <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> public void Initialize(int width, int height) { m_ServerWriter = new ServerWriter(); InputController.IC.OnClick += IC_OnClick; m_iScreenWidth = width; m_iScreenHeight = height; m_Tutorial = new TutorialSystem(m_iScreenWidth, m_iScreenHeight, this); //m_CurrentScene = new GameScene(this); //((GameScene)m_CurrentScene).Initialize(0, 6, true); m_CurrentScene = new StartupScene(this); }
/// <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() { base.Initialize(); m_ServerWriter = new ServerWriter(); InputController.IC.OnClick += IC_OnClick; m_iScreenWidth = graphics.GraphicsDevice.Viewport.Width; m_iScreenHeight = graphics.GraphicsDevice.Viewport.Height; m_Tutorial = new TutorialSystem(m_iScreenWidth, m_iScreenHeight, this); //m_CurrentScene = new GameScene(this); //((GameScene)m_CurrentScene).Initialize(0, 6, true); m_CurrentScene = new StartupScene(this); }