Exemplo n.º 1
0
        public static void Main()
        {
            var objectGenerator = new ObjectGenerator(WorldWidth, WorldHeight);
            var consoleRenderer = new ConsoleRenderer(WorldWidth, WorldHeight);
            var collisionHandler = new CollisionHandler(WorldWidth, WorldHeight);

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

            engine.Run();
        }
        static void Main()
        {
            var objectGenerator = new ObjectGenerator(WorldWidth, WorldHeight);
            var consoleRenderer = new ConsoleRenderer(WorldWidth, WorldHeight);
            var collisionHandler = new CollisionHandler(WorldWidth, WorldHeight);
            var keyboardController = new KeyboardController();

            var engine = new AdvancedEngine(keyboardController,
                WorldWidth,
                WorldHeight,
                objectGenerator,
                collisionHandler,
                consoleRenderer);

            engine.Run();
        }