Skip to content

Commit

Permalink
ui change: pause_menu AC-like top-middle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamtowards committed Jan 31, 2024
1 parent 805a75a commit 8e9f245
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 37 deletions.
63 changes: 55 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ bevy = { version = "0.12", features = ["dynamic_linking", "file_watcher", "trace
bevy = { version = "0.12" }

bevy_atmosphere = "0.8"
bevy_egui = "0.24"
bevy-inspector-egui = "0.22"
bevy_editor_pls = "0.7"
bevy_xpbd_3d = "0.3"
# bevy_fps_controller = "0.2.3"
# bevy_rapier3d = "0.23"
bevy_renet = "0.0"

bevy_egui = "0.24"
bevy-inspector-egui = "0.22"
bevy_editor_pls = "0.7"

egui-notify = "0.12"


noise = "0.8"
bincode = "1.3"
Expand Down
7 changes: 7 additions & 0 deletions src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ fn startup(
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
mut next_state: ResMut<NextState<GameInput>>,
) {
next_state.set(GameInput::Controlling);

// Logical Player
commands.spawn((
PbrBundle {
Expand Down Expand Up @@ -367,6 +370,8 @@ pub struct WorldInfo {

pub is_paused: bool,
pub paused_steps: i32,

pub dbg_text: bool,
}

impl WorldInfo {
Expand All @@ -388,6 +393,8 @@ impl WorldInfo {

is_paused: false,
paused_steps: 0,

dbg_text: true,
}
}
}
Expand Down
Loading

0 comments on commit 8e9f245

Please sign in to comment.