27 lines
503 B
Rust
27 lines
503 B
Rust
|
use miniquad::*;
|
||
|
use stage::Stage;
|
||
|
|
||
|
mod game;
|
||
|
mod shader;
|
||
|
mod stage;
|
||
|
mod graphics;
|
||
|
mod tools;
|
||
|
mod jucraft;
|
||
|
mod player;
|
||
|
mod world_generator;
|
||
|
|
||
|
fn main() {
|
||
|
start(conf::Conf{
|
||
|
window_title: "Jucraft".to_string(),
|
||
|
window_height: 900,
|
||
|
window_width: 900* 16 / 9,
|
||
|
..Default::default()
|
||
|
|
||
|
}, |mut ctx| {
|
||
|
Box::new(Stage::new(&mut ctx))
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
// to read: for Map generation: https://www.redblobgames.com/maps/terrain-from-noise/
|
||
|
// with opensimplex_noise_rs crate
|