From 93293092ce4590cec3ace4cf33993c0b275efe63 Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 22 Sep 2024 03:10:11 +0200 Subject: [PATCH] add setting for light amplification strengh, incl. power drain --- README.md | 2 +- src/actor.rs | 22 ++++++++++++++++++---- src/hud.rs | 8 ++++---- src/main.rs | 2 +- src/menu.rs | 17 +++++++++++++++++ src/var.rs | 2 ++ 6 files changed, 43 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 51ca8e2..1eeebea 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The `SPACE` key helps you move more intuitively by slowing you down. Hold it fo When you're ready, take a look around, explore the starting area. There is a friendly person floating nearby in a red space suit that would love to talk to you. -The game is dark. After all, space is dark. The planets and moons orbit in real time, the map changes depending on when you play, and if you're unlucky, you start in the shadow of Jupiter and everything's even darker! Try the flashlight (`f` key), turning off shadows in the menu, and make sure that Augmented Reality is on (`TAB` key) which gives you a little extra light amplification. +The game is dark. After all, space is dark. The planets and moons orbit in real time, the map changes depending on when you play, and if you're unlucky, you start in the shadow of Jupiter and everything's even darker! Try the flashlight (`f` key), or stronger light amplification (menu), which requires Augmented Reality to be active (`TAB` key). Press `Esc` for the menu to restart the game if you get lost, explore more key bindings, game features, and the **achievements** to get some guidance on what you can do in the game. diff --git a/src/actor.rs b/src/actor.rs index 4c769bf..3e285a5 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -263,14 +263,16 @@ impl Default for Battery { pub fn update_power( time: Res