private static void Main()
        {
            var objectGenerator  = new ObjectGenerator(WorldWidth, WorldHeight);
            var consoleRenderer  = new ConsoleRenderer(WorldWidth, WorldHeight);
            var collisionHandler = new CollisionHandler(WorldWidth, WorldHeight);
            var controller       = new KeyBoardController();

            var engine = new ExtendedEngine(WorldWidth, WorldHeight, objectGenerator, collisionHandler, consoleRenderer, controller);

            engine.Run();
        }
        public static void Main()
        {
            var objectGenerator  = new ObjectGenerator(WORLD_WIDTH, WORLD_HEIGHT);
            var consoleRenderer  = new ConsoleRenderer(WORLD_WIDTH, WORLD_HEIGHT);
            var collisionHandler = new CollisionHandler(WORLD_WIDTH, WORLD_HEIGHT);

            var keyboardController = new KeyboardController();

            var engine = new ExtendedEngine(WORLD_WIDTH,
                                            WORLD_HEIGHT,
                                            objectGenerator,
                                            collisionHandler,
                                            consoleRenderer,
                                            keyboardController);

            engine.Run();
        }
Ejemplo n.º 3
0
        static void Main()
        {
            var objectGenerator = new ObjectGenerator(WorldWidth, WorldHeight);
            var consoleRenderer = new ConsoleRenderer(WorldWidth, WorldHeight);
            var collisionHandler = new CollisionHandler(WorldWidth, WorldHeight);
            var controller = new Controller();
            controller.Pause += Controller_Pause;

            var engine = new ExtendedEngine(WorldWidth,
                WorldHeight,
                objectGenerator,
                collisionHandler,
                consoleRenderer,
                controller);

            engine.Run();
        }
Ejemplo n.º 4
0
        static void Main()
        {
            Engine engine = new ExtendedEngine();

            engine.Run();
        }
Ejemplo n.º 5
0
        static void Main()
        {
            var engine = new ExtendedEngine(new KeyboardController());

            engine.Run();
        }
Ejemplo n.º 6
0
 static void Main(string[] args)
 {
     Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
     Engine engine = new ExtendedEngine();
     engine.Run();
 }
Ejemplo n.º 7
0
 static void Main(string[] args)
 {
     Engine engine = new ExtendedEngine();
     engine.Run();
 }