Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Engine game = new Engine())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
 public FadeablePage(Engine engine, GameLayer layer,GamePages page)
 {
     this.engine = engine;
     this.layer = layer;
     this.page = page;
     layer.Pages[page] = this;
 }
Ejemplo n.º 3
0
 public GameLayer(Game game)
     : base(game)
 {
     engine = game as Engine;
     new MainMenu(engine, this, GamePages.MainMenu);
     new OptionsMenu(engine, this, GamePages.OptionsMenu);
     // TODO: Construct any child components here
 }
Ejemplo n.º 4
0
 public MainMenu(Engine engine, GameLayer layer, GamePages page)
     : base(engine, layer, page)
 {
     exitButton = new HoverButton(this, "exit", new Point(20, 450));
     exitButton.OnClick += onExitClick;
 }