update project name
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "term_snake"
|
||||
name = "term-snake"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ fn change_dir(direction: &mut Direction, now: &Instant) {
|
||||
|
||||
fn key_input(now: &Instant) -> Option<char> {
|
||||
while now.elapsed() < FRAME_TIME {
|
||||
if poll(Duration::from_secs(0)).ok()? {
|
||||
if poll(Duration::MAX).ok()? {
|
||||
if let Event::Key(k) = read().ok()? {
|
||||
if let KeyCode::Char(c) = k.code {
|
||||
return Some(c);
|
||||
|
||||
Reference in New Issue
Block a user