add multi turtle support

This commit is contained in:
2025-10-17 08:59:29 +02:00
parent bbb9348497
commit 3509060390
19 changed files with 624 additions and 628 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ async fn main() {
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
// Default to showing info-level logs if RUST_LOG is not set
tracing_subscriber::EnvFilter::new("turtle_lib=info")
tracing_subscriber::EnvFilter::new("turtle_lib=trace")
}),
)
.with_target(true) // Show which module the log came from
@@ -75,7 +75,7 @@ async fn main() {
t.set_speed(100); // Slow animation to see the logs in real-time
// Create turtle app
let mut app = TurtleApp::new().with_commands(0, t.build());
let mut app = TurtleApp::new().with_commands(t.build());
// Main loop
loop {