A multiplayer VR framework w/voice chat
1use bevy::{DefaultPlugins, app::{App, FixedUpdate, Startup, Update}, ecs::system::Commands}; 2 3use crate::{components::{debug_camera, network_interface, remote_player}, setup::setup}; 4 5mod components; 6mod setup; 7mod net; 8 9fn main() { 10 dotenvy::dotenv().unwrap(); 11 12 App::new() 13 .add_plugins(DefaultPlugins) 14 .add_systems(Startup, setup) 15 .add_systems(Startup, move | mut commands: Commands |{ 16 commands.spawn(net::handle_net().expect("Network Module Failed.")); 17 }) 18 .add_systems(Update, debug_camera::update) 19 .add_systems(Update, remote_player::update) 20 .add_systems(FixedUpdate, network_interface::fixed_update) 21 .run(); 22}