private static void Main() { AlmiranteEngine.StartWindows(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainWindow()); }
static void Main(string[] args) { /// /// Engine initialization. This is all you need to do. /// AlmiranteEngine.Start(args); }
/// <summary> /// Screen logic update function. /// </summary> protected override void OnUpdate() { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { AlmiranteEngine.Stop(); } this.angleTweener.Update(AlmiranteEngine.Time.Frame); this.colorTweener.Update(AlmiranteEngine.Time.Frame); this.positionTweener.Update(AlmiranteEngine.Time.Frame); for (int i = 0; i < this.positionsTweener.Length; i++) { this.positionsTweener[i].Update(AlmiranteEngine.Time.Frame); } }
/// <summary> /// Initializes the scene /// </summary> protected override void OnInitialize() { this.button1 = new Button() { Position = new Vector2(540, 270), Size = new Vector2(200, 50), Text = "Play" }; this.button1.MouseClick += new EventHandler <MouseEventArgs>((obj, args) => { }); this.Interface.Controls.Add(this.button1); this.button2 = new Button() { Position = new Vector2(540, 270 + 60), Size = new Vector2(200, 50), Text = "Options" }; this.button2.MouseClick += new EventHandler <MouseEventArgs>((obj, args) => { AlmiranteEngine.Scenes.Push <OptionsScene>(FadeInTransition.Name, 1.0f); }); this.Interface.Controls.Add(this.button2); this.button3 = new Button() { Position = new Vector2(540, 270 + 60 + 60), Size = new Vector2(200, 50), Text = "Exit" }; this.button3.MouseClick += new EventHandler <MouseEventArgs>((obj, args) => { AlmiranteEngine.Stop(); }); this.Interface.Controls.Add(this.button3); }
/// <summary> /// Exit button. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnNo(object sender, Almirante.Engine.Interface.MouseEventArgs e) { AlmiranteEngine.Stop(); }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main(string[] args) { AlmiranteEngine.Start(args); }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main(string[] args) { // EntityManager.OnInitialize(); AlmiranteEngine.Start(args); }