Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Engine game = new Engine())
     {
         game.Run();
     }
 }
Esempio n. 2
0
 public FadeablePage(Engine engine, GameLayer layer,GamePages page)
 {
     this.engine = engine;
     this.layer = layer;
     this.page = page;
     layer.Pages[page] = this;
 }
Esempio 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
 }
Esempio 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;
 }