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"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
|
"getrandom",
|
||||||
|
"rand",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -8,6 +8,8 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { version = "0.5", features = ["dynamic"] }
|
bevy = { version = "0.5", features = ["dynamic"] }
|
||||||
|
rand = "0.8"
|
||||||
|
getrandom = { version = "0.2", features = ["wasm-bindgen"] }
|
||||||
|
|
||||||
[profile.dev.package."*"]
|
[profile.dev.package."*"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
@ -14,6 +14,7 @@ mod prelude {
|
|||||||
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
|
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
pub use rand::prelude::*;
|
||||||
|
|
||||||
pub const MAP_WIDTH: i32 = 80;
|
pub const MAP_WIDTH: i32 = 80;
|
||||||
pub const MAP_HEIGHT: i32 = 50;
|
pub const MAP_HEIGHT: i32 = 50;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user