public LotusGame(GraphicsFacade graphics) { Console.Write("Name:"); name = Console.ReadLine(); me = this; this.graphics = graphics; graphics.Init(); graphics.onUpdate += new GraphicsFacade.UpdateEventHandler(this.Update); graphics.onDraw += new GraphicsFacade.DrawEventHandler(this.Draw); title = new TitleScreen(); currentMenu = title; graphics.Run(); }
static void Main(string[] args) { GraphicsFacade graphics = new GraphicsFacade(); LotusGame lotus = new LotusGame(graphics); }