/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Engine game = new Engine()) { game.Run(); } }
public FadeablePage(Engine engine, GameLayer layer,GamePages page) { this.engine = engine; this.layer = layer; this.page = page; layer.Pages[page] = this; }
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 }
public MainMenu(Engine engine, GameLayer layer, GamePages page) : base(engine, layer, page) { exitButton = new HoverButton(this, "exit", new Point(20, 450)); exitButton.OnClick += onExitClick; }