Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     GraphicsFacade graphics = new GraphicsFacade();
     LotusGame lotus = new LotusGame(graphics);
 }