diff --git a/src/main.rs b/src/main.rs index b1f1cc6..c1d6031 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use core::f32; +use std::io::stdin; use macroquad::prelude::*; @@ -46,6 +47,7 @@ impl DebugWindow { } } + #[macroquad::main("Graph")] async fn main() { // Dot params @@ -61,9 +63,13 @@ async fn main() { let mut show_debug = false; let mut px_per_s: f32 = 100.; + + let stdin = stdin(); + let handle= stdin.lock(); loop { clear_background(BLACK); + // handle. let delta_time = get_frame_time(); if x_offset >= screen_width() {