Fix build and add some assets
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,84 +0,0 @@
|
|||||||
(
|
|
||||||
id: TestStage,
|
|
||||||
model_path: "stages/battlefield.glb#Scene0",
|
|
||||||
camera: (
|
|
||||||
left: -75.0,
|
|
||||||
right: 75.0,
|
|
||||||
bottom: -30.0,
|
|
||||||
top: 70.0,
|
|
||||||
origin: (0.0, 15.0),
|
|
||||||
vertical_fov_degrees: 30.0,
|
|
||||||
min_depth: 150.0,
|
|
||||||
max_depth: 400.0,
|
|
||||||
subject_scale: 1.0,
|
|
||||||
tracking_smoothness: 3.0,
|
|
||||||
vertical_tilt_degrees: 0.0,
|
|
||||||
horizontal_pan_coefficient: 0.0,
|
|
||||||
vertical_pan_coefficient: 0.0,
|
|
||||||
max_horizontal_pan_degrees: 17.5,
|
|
||||||
max_upward_pan_degrees: 5.0,
|
|
||||||
max_downward_pan_degrees: 7.0,
|
|
||||||
max_downward_expansion: 40.0,
|
|
||||||
),
|
|
||||||
polygons: [
|
|
||||||
(
|
|
||||||
poly_type: Platform,
|
|
||||||
lines: [
|
|
||||||
(
|
|
||||||
(x: "-59.5", y: "23.45"),
|
|
||||||
Floor
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "-28.0", y: "23.45"),
|
|
||||||
Floor
|
|
||||||
)
|
|
||||||
]
|
|
||||||
),
|
|
||||||
(
|
|
||||||
poly_type: Platform,
|
|
||||||
lines: [
|
|
||||||
(
|
|
||||||
(x: "28.0", y: "23.45"),
|
|
||||||
Floor
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "59.5", y: "23.45"),
|
|
||||||
Floor
|
|
||||||
)
|
|
||||||
]
|
|
||||||
),
|
|
||||||
(
|
|
||||||
poly_type: Closed,
|
|
||||||
lines: [
|
|
||||||
(
|
|
||||||
(x: "-56", y: "-200.0"),
|
|
||||||
Wall
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "-56.0", y: "-3.5"),
|
|
||||||
Floor,
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "-39.2", y: "0.0"),
|
|
||||||
Floor,
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "0.0", y: "0.0"),
|
|
||||||
Floor
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "39.2", y: "0.0"),
|
|
||||||
Floor
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "56.0", y: "-3.5"),
|
|
||||||
Wall
|
|
||||||
),
|
|
||||||
(
|
|
||||||
(x: "56", y: "-200.0"),
|
|
||||||
Wall
|
|
||||||
),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 871 B |
+1
-5
@@ -1,7 +1,3 @@
|
|||||||
//! Standalone binary for game-test: `cargo run` plays the game
|
|
||||||
//! without the editor. The editor's Play button runs the same
|
|
||||||
//! [`game_test::GamePlugin`] through its own game runner instead.
|
|
||||||
|
|
||||||
use bevy::asset::AssetMode::Processed;
|
use bevy::asset::AssetMode::Processed;
|
||||||
use bevy::camera_controller::free_camera::FreeCameraPlugin;
|
use bevy::camera_controller::free_camera::FreeCameraPlugin;
|
||||||
use bevy::image::{ImageAddressMode, ImagePlugin, ImageSamplerDescriptor};
|
use bevy::image::{ImageAddressMode, ImagePlugin, ImageSamplerDescriptor};
|
||||||
@@ -30,7 +26,7 @@ fn main() -> AppExit {
|
|||||||
App::new()
|
App::new()
|
||||||
.add_plugins(default_plugins)
|
.add_plugins(default_plugins)
|
||||||
.add_plugins(avian3d::prelude::PhysicsPlugins::default())
|
.add_plugins(avian3d::prelude::PhysicsPlugins::default())
|
||||||
.add_plugins(game_test::GamePlugin)
|
.add_plugins(shinespark::GamePlugin)
|
||||||
.add_plugins(FreeCameraPlugin)
|
.add_plugins(FreeCameraPlugin)
|
||||||
.add_plugins(EguiPlugin::default())
|
.add_plugins(EguiPlugin::default())
|
||||||
.add_plugins(WorldInspectorPlugin::default()) // adds default options and `InspectorEguiImpl`s
|
.add_plugins(WorldInspectorPlugin::default()) // adds default options and `InspectorEguiImpl`s
|
||||||
|
|||||||
Reference in New Issue
Block a user