Exemplo n.º 1
0
        /// <summary>
        /// It's game.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            var eventLoop = new CursorEventLoop();
            var game = new CursorGame();

            eventLoop.LeftHandler += game.OnLeft;
            eventLoop.RightHandler += game.OnRight;
            eventLoop.UpHandler += game.OnUp;
            eventLoop.DownHandler += game.OnDown;

            eventLoop.Run();
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     eventLoop = new CursorEventLoop();
     game = new CursorGame();
 }