23 Commits

Author SHA1 Message Date
bb1d04563a feat: Refactor renderer key event handling and disable FPS counter by default
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-19 19:33:49 +01:00
3e091c3d5d Fixed HUD and menu position and scaling in hardware renderer
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-19 19:25:24 +01:00
c8cd2cb144 feat: Add GLSL renderer and implement FPS overlay across rendering backends
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-19 19:12:39 +01:00
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
839fae700f WIP fixing menu rendering in CLI ASCII mode
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 14:08:21 +01:00
dc1acb7a2f WIP pushing menu to game engine - improving menu text clarity in ASCII mode
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 12:45:04 +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
d7692ea325 Improves ASCII rasterization speed and simplifies API
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-18 01:37:04 +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
4c28a66554 Corrected enemy entity mapping
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 20:06:11 +01:00
815ca4a13e Added tests for validating enemy sprite ranges
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 17:30:56 +01:00
ff051d1f34 Update enemy sprite IDs
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 13:15:35 +01:00
1575042870 Unified asset painter and added to package. Fixes and simplifes sprite rendering.
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-17 13:00:04 +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
400720a56e Fix ASCII rasterizer scaling for CLI
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 16:29:08 +01:00
8f33e68c04 Preserve state when switching renderers
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 16:19:56 +01:00
b702c50d30 Unified game screen and abstracted input
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 16:10:12 +01:00
0963869b0c Added ability to swap renderers
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 16:01:58 +01:00
dd9bd5897e WIP fixing ASCII renderer
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-03-16 15:42:48 +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