Cleaned up cli initialization

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-18 02:06:07 +01:00
parent 7ee1d0704d
commit b040b88d8a
2 changed files with 3 additions and 3 deletions

View File

@@ -53,8 +53,8 @@ void main() async {
gameLoop = CliGameLoop(
engine: engine,
input: engine.input as CliInput,
onExit: stopAndExit,
);
gameLoop.start();
}

View File

@@ -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;
}