Add rand crate
This commit is contained in:
parent
d018a1bd3c
commit
1fca99ae3c
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -35,6 +35,8 @@ name = "adventure-game"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bevy",
|
||||
"getrandom",
|
||||
"rand",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -8,6 +8,8 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bevy = { version = "0.5", features = ["dynamic"] }
|
||||
rand = "0.8"
|
||||
getrandom = { version = "0.2", features = ["wasm-bindgen"] }
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 3
|
||||
|
@ -14,6 +14,7 @@ mod prelude {
|
||||
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
|
||||
prelude::*,
|
||||
};
|
||||
pub use rand::prelude::*;
|
||||
|
||||
pub const MAP_WIDTH: i32 = 80;
|
||||
pub const MAP_HEIGHT: i32 = 50;
|
||||
|
Loading…
x
Reference in New Issue
Block a user