Moved everything to a monorepo and fixed the CLI app rendering
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
name: wolf_3d_assets
|
||||
description: "Shared game assets for Wolfenstein 3D apps."
|
||||
publish_to: "none"
|
||||
version: 0.1.0
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.1
|
||||
|
||||
resolution: workspace
|
||||
|
||||
# This tells Flutter to bundle these files when a dependent app builds!
|
||||
flutter:
|
||||
assets:
|
||||
- assets/retail/
|
||||
- assets/shareware/
|
||||
@@ -10,5 +10,6 @@ export 'src/managers/door_manager.dart';
|
||||
export 'src/managers/pushwall_manager.dart';
|
||||
export 'src/player/player.dart';
|
||||
export 'src/rasterizer.dart';
|
||||
export 'src/silent_renderer.dart';
|
||||
export 'src/software_rasterizer.dart';
|
||||
export 'src/wolf_3d_engine_base.dart';
|
||||
|
||||
@@ -63,7 +63,8 @@ class Wolf3d {
|
||||
for (final version in versionsToTry) {
|
||||
try {
|
||||
final ext = version.version.fileExtension;
|
||||
final folder = 'assets/${version.path}';
|
||||
// final folder = 'assets/${version.path}';
|
||||
final folder = 'packages/wolf_3d_assets/assets/${version.path}';
|
||||
|
||||
final data = WolfensteinLoader.loadFromBytes(
|
||||
version: version.version,
|
||||
|
||||
@@ -18,6 +18,7 @@ dependencies:
|
||||
wolf_3d_engine: any
|
||||
wolf_3d_entities: any
|
||||
wolf_3d_input: any
|
||||
wolf_3d_assets: any
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
/// More dartdocs go here.
|
||||
library;
|
||||
|
||||
export 'src/silent_renderer.dart' show CliSilentAudio;
|
||||
export 'src/wolf_3d_audio.dart' show WolfAudio;
|
||||
|
||||
Reference in New Issue
Block a user