You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
556 B
Rust
30 lines
556 B
Rust
mod boot;
|
|
mod debug;
|
|
mod deck;
|
|
mod play;
|
|
mod setup;
|
|
|
|
use bevy::prelude::*;
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))
|
|
.add_plugins((
|
|
deck::DeckPlugin,
|
|
debug::DebugPlugin,
|
|
boot::BootPlugin,
|
|
setup::SetupPlugin,
|
|
play::PlayPlugin,
|
|
))
|
|
.init_state::<GameState>()
|
|
.run();
|
|
}
|
|
|
|
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash)]
|
|
pub(crate) enum GameState {
|
|
#[default]
|
|
Boot,
|
|
Setup,
|
|
Play,
|
|
}
|