31 lines
848 B
Rust
31 lines
848 B
Rust
use bevy::{prelude::*, window::PresentMode};
|
|
|
|
use crate::background::BackgroundPlugin;
|
|
use crate::camera::CameraPlugin;
|
|
use crate::collision::CollisionPlugin;
|
|
use crate::player::PlayerPlugin;
|
|
|
|
mod background;
|
|
mod camera;
|
|
mod collision;
|
|
mod obstacle;
|
|
mod player;
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
|
primary_window: Some(Window {
|
|
title: "Down Into The Void".into(),
|
|
resolution: (1920, 1080).into(),
|
|
present_mode: PresentMode::AutoVsync,
|
|
..default()
|
|
}),
|
|
..default()
|
|
}))
|
|
.add_plugins(BackgroundPlugin) // Checkerboard background
|
|
.add_plugins(PlayerPlugin) // Player
|
|
.add_plugins(CameraPlugin) // Camera
|
|
.add_plugins(CollisionPlugin) // Collisions
|
|
.run();
|
|
}
|