half-baked idea
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use core::f32;
|
use core::f32;
|
||||||
|
use std::io::stdin;
|
||||||
|
|
||||||
use macroquad::prelude::*;
|
use macroquad::prelude::*;
|
||||||
|
|
||||||
@@ -46,6 +47,7 @@ impl DebugWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[macroquad::main("Graph")]
|
#[macroquad::main("Graph")]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Dot params
|
// Dot params
|
||||||
@@ -61,9 +63,13 @@ async fn main() {
|
|||||||
let mut show_debug = false;
|
let mut show_debug = false;
|
||||||
let mut px_per_s: f32 = 100.;
|
let mut px_per_s: f32 = 100.;
|
||||||
|
|
||||||
|
|
||||||
|
let stdin = stdin();
|
||||||
|
let handle= stdin.lock();
|
||||||
loop {
|
loop {
|
||||||
clear_background(BLACK);
|
clear_background(BLACK);
|
||||||
|
|
||||||
|
// handle.
|
||||||
let delta_time = get_frame_time();
|
let delta_time = get_frame_time();
|
||||||
|
|
||||||
if x_offset >= screen_width() {
|
if x_offset >= screen_width() {
|
||||||
|
|||||||
Reference in New Issue
Block a user