From 182659eff09eef0011d1e02c66f2cf0160ef45a0 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 12 May 2024 22:17:17 +0200 Subject: [PATCH] add death screen --- src/actor.rs | 33 +++++++----- src/hud.rs | 11 +--- src/main.rs | 11 +++- src/menu.rs | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/var.rs | 10 ++++ 5 files changed, 186 insertions(+), 23 deletions(-) create mode 100644 src/menu.rs diff --git a/src/actor.rs b/src/actor.rs index 9bcad65..9ace056 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -18,7 +18,8 @@ use bevy::prelude::*; use bevy_xpbd_3d::prelude::*; use bevy::scene::SceneInstance; use bevy::math::DVec3; -use crate::{actor, audio, camera, chat, commands, hud, nature, var, visual, world}; +use crate::prelude::*; +use crate::{actor, audio, camera, chat, commands, hud, menu, nature, visual, world}; use std::collections::HashMap; pub const ENGINE_SPEED_FACTOR: f32 = 30.0; @@ -229,7 +230,7 @@ impl Default for Battery { pub fn update_power( time: Res