mirror of
https://github.com/mii443/rustris.git
synced 2025-08-22 16:25:42 +00:00
タイトルバーを変更するように
This commit is contained in:
33
Cargo.lock
generated
33
Cargo.lock
generated
@ -8,6 +8,12 @@ version = "1.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||
|
||||
[[package]]
|
||||
name = "bytemuck"
|
||||
version = "1.7.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "439989e6b8c38d1b6570a384ef1e49c8848128f5a97f3914baef02920842712f"
|
||||
|
||||
[[package]]
|
||||
name = "cfg-if"
|
||||
version = "1.0.0"
|
||||
@ -59,6 +65,12 @@ dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.103"
|
||||
@ -194,12 +206,22 @@ dependencies = [
|
||||
"bitflags",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rgb"
|
||||
version = "0.8.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a374af9a0e5fdcdd98c1c7b64f05004f9ea2555b6c75f211daa81268a3c50f1"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustris"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crossterm",
|
||||
"rand",
|
||||
"winconsole",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -271,3 +293,14 @@ name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "winconsole"
|
||||
version = "0.11.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "664fdcefd3903fbe6c463659a3fe4e7a541e717bbf6084cb1cfa98fcb6d88361"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"rgb",
|
||||
"winapi",
|
||||
]
|
||||
|
@ -8,3 +8,4 @@ edition = "2018"
|
||||
[dependencies]
|
||||
crossterm = "0.21.0"
|
||||
rand = "0.8.4"
|
||||
winconsole = "*"
|
||||
|
@ -11,10 +11,13 @@ use crossterm::{cursor, event::{Event, KeyCode, KeyEvent, KeyModifiers, read}, e
|
||||
use game_data::GameData;
|
||||
use game_status::GameStatus;
|
||||
use mino_rotation::MinoRotation;
|
||||
use winconsole::console;
|
||||
|
||||
use crate::{block::Block, rustris::Rustris};
|
||||
|
||||
fn main() {
|
||||
console::set_title("Rustris");
|
||||
|
||||
let stdout = Arc::new(Mutex::new(stdout()));
|
||||
enable_raw_mode().unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user