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(); }
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(); }
static void Main() { Engine engine = new ExtendedEngine(); engine.Run(); }
static void Main() { var engine = new ExtendedEngine(new KeyboardController()); engine.Run(); }
static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; Engine engine = new ExtendedEngine(); engine.Run(); }
static void Main(string[] args) { Engine engine = new ExtendedEngine(); engine.Run(); }