Exemplo n.º 1
0
 private static void Main()
 {
     AlmiranteEngine.StartWindows();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainWindow());
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     ///
     /// Engine initialization. This is all you need to do.
     ///
     AlmiranteEngine.Start(args);
 }
Exemplo n.º 3
0
        /// <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);
            }
        }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Exit button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnNo(object sender, Almirante.Engine.Interface.MouseEventArgs e)
 {
     AlmiranteEngine.Stop();
 }
Exemplo n.º 6
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     AlmiranteEngine.Start(args);
 }
Exemplo n.º 7
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     // EntityManager.OnInitialize();
     AlmiranteEngine.Start(args);
 }