25 lines
514 B
Rust
25 lines
514 B
Rust
use bevy::prelude::*;
|
|
use tracing::info;
|
|
|
|
fn main() {
|
|
tracing_subscriber::fmt()
|
|
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
|
.init();
|
|
|
|
// Start Bevy app
|
|
App::new()
|
|
.add_plugins(DefaultPlugins)
|
|
.add_systems(Startup, setup)
|
|
.add_systems(Update, sync_system)
|
|
.run();
|
|
}
|
|
|
|
fn setup(mut commands: Commands) {
|
|
commands.spawn(Camera2d);
|
|
info!("Client started");
|
|
}
|
|
|
|
fn sync_system() {
|
|
// TODO: Implement gossip sync for client
|
|
}
|