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