diff --git a/apps/wolf_3d_cli/bin/main.dart b/apps/wolf_3d_cli/bin/main.dart index bce02a5..c005707 100644 --- a/apps/wolf_3d_cli/bin/main.dart +++ b/apps/wolf_3d_cli/bin/main.dart @@ -53,8 +53,8 @@ void main() async { gameLoop = CliGameLoop( engine: engine, - input: engine.input as CliInput, onExit: stopAndExit, ); + gameLoop.start(); } diff --git a/apps/wolf_3d_cli/lib/cli_game_loop.dart b/apps/wolf_3d_cli/lib/cli_game_loop.dart index 0829e8d..bf91180 100644 --- a/apps/wolf_3d_cli/lib/cli_game_loop.dart +++ b/apps/wolf_3d_cli/lib/cli_game_loop.dart @@ -8,9 +8,9 @@ import 'package:wolf_3d_dart/wolf_3d_rasterizer.dart'; class CliGameLoop { CliGameLoop({ required this.engine, - required this.input, required this.onExit, - }) : primaryRasterizer = SixelRasterizer(), + }) : input = CliInput(), + primaryRasterizer = SixelRasterizer(), secondaryRasterizer = AsciiRasterizer(isTerminal: true) { _rasterizer = primaryRasterizer; }