Commit Graph

13 Commits

Author SHA1 Message Date
0e143892f0 Refactor menu rendering and improve projection sampling
- Updated AsciiRasterizer to support game and episode selection menus with improved layout and cursor handling.
- Enhanced SixelRasterizer and SoftwareRasterizer to modularize menu drawing logic for game and episode selection.
- Introduced new methods for drawing menus and applying fade effects across rasterizers.
- Adjusted wall texture sampling in Rasterizer to anchor to projection height center for consistent rendering.
- Added tests for wall texture sampling behavior to ensure legacy compatibility and new functionality.
- Modified Flutter audio adapter to use nullable access for active game and adjusted game selection logic in the main class.
- Cleaned up input handling in Wolf3dFlutterInput by removing unused menu tap variables.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 20:06:18 +01:00
e39dfd5da0 WIP moving difficulty selection to engine
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 12:25:59 +01:00
3c6a4672f7 Refactor and enhance documentation across the Wolf3D project
- Updated library imports to use the correct package paths for consistency.
- Added detailed documentation comments to various classes and methods, improving code readability and maintainability.
- Refined the GameSelectScreen, SpriteGallery, and VgaGallery classes with clearer descriptions of their functionality.
- Enhanced the CliInput class to better explain the input handling process and its interaction with the engine.
- Improved the SixelRasterizer and Opl2Emulator classes with comprehensive comments on their operations and state management.
- Removed the deprecated wolf_3d.dart file and consolidated its functionality into wolf_3d_flutter.dart for a cleaner architecture.
- Updated the Wolf3dFlutterInput class to clarify its role in merging keyboard and pointer events.
- Enhanced the rendering classes to provide better context on their purpose and usage within the Flutter framework.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 10:01:12 +01:00
1b75a41cd1 Fix key rebinding
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 20:47:32 +01:00
c424e10475 Enable option to turn on mouselook
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 20:45:29 +01:00
55cf73f7f5 Moved away from singleton pattern
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 20:24:39 +01:00
0dc75ded62 Migrate all Dart packages to a single wolf_3d_dart package
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 10:55:10 +01:00
bd486e4c82 Fix door opening sound
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 17:42:16 +01:00
9410916b57 Moved everything to a monorepo and fixed the CLI app rendering
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 15:09:37 +01:00
ede2c3fa31 Fixed ASCII rasterizer, abstracted out input and audio, and created CLI client (untested)
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 14:47:10 +01:00
b0852543b0 Play (wrong) door sound effect when the door opens or closes
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-15 21:13:41 +01:00
b3b909a9b6 Remove unnecessary data class
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-15 20:25:28 +01:00
57d394e911 De-coupled remaining aspects of game into packages
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-15 16:17:27 +01:00