Add rand crate

This commit is contained in:
Daniel Lynn 2021-07-21 18:19:33 -05:00
parent d018a1bd3c
commit 1fca99ae3c
No known key found for this signature in database
GPG Key ID: 6F440E53B7A8C151
3 changed files with 5 additions and 0 deletions

2
Cargo.lock generated
View File

@ -35,6 +35,8 @@ name = "adventure-game"
version = "0.1.0"
dependencies = [
"bevy",
"getrandom",
"rand",
]
[[package]]

View File

@ -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

View File

@ -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;