generated from tipragot/rust
Add the main menu #31
|
@ -1,8 +1,9 @@
|
||||||
//! The file that contains utility functions, enums, structs of the game.
|
//! The file that contains utility functions, enums, structs of the game.
|
||||||
|
|
||||||
use bevy::prelude::*;
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
|
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
|
||||||
pub enum GameState {
|
pub enum GameState {
|
||||||
#[default]
|
#[default]
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
//! The main menu of the game.
|
//! The main menu of the game.
|
||||||
|
|
||||||
use crate::GameState;
|
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy_egui::{egui, EguiContexts, EguiPlugin};
|
use bevy_egui::{egui, EguiContexts, EguiPlugin};
|
||||||
|
|
||||||
|
use crate::GameState;
|
||||||
|
|
||||||
/// The plugin for the menu.
|
/// The plugin for the menu.
|
||||||
pub struct MenuPlugin;
|
pub struct MenuPlugin;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue