5a2681e89b
- Implemented DebugToolsScreen for navigation to asset galleries. - Created GameScreen to manage gameplay and renderer integrations. - Added NoGameDataScreen to handle scenarios with missing game data. - Developed SpriteGallery for visual browsing of sprite assets. - Introduced VgaGallery for displaying VGA images from game data. - Added GalleryGameSelector widget for selecting game variants in galleries. - Created Wolf3dApp as the main application shell for managing game states. - Implemented WolfMenuShell for consistent menu layouts across screens. - Enhanced Wolf3d class to support debug mode and related functionalities. - Updated pubspec.yaml to include window_manager dependency. - Added tests for game screen lifecycle and debug mode functionalities. Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
28 lines
752 B
Dart
28 lines
752 B
Dart
/// Flutter entry point for the GUI host application.
|
|
///
|
|
/// The GUI bootstraps bundled and discoverable game data through [Wolf3d]
|
|
/// before presenting the game-selection flow.
|
|
library;
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:window_manager/window_manager.dart';
|
|
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
|
|
|
|
/// Creates the application shell after loading available Wolf3D data sets.
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
if (supportsDesktopWindowing) {
|
|
await windowManager.ensureInitialized();
|
|
}
|
|
|
|
final Wolf3d wolf3d = await Wolf3d().init(debug: kDebugMode);
|
|
|
|
runApp(
|
|
MaterialApp(
|
|
home: Wolf3dApp(wolf3d: wolf3d),
|
|
),
|
|
);
|
|
}
|