[PR #679] [MERGED] Fix sleeping input, camera height and wake fade #2723

Closed
opened 2026-11-02 15:58:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/679
Author: @Online5277
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: fix/sleeping-player-state


📝 Commits (2)

  • 5166615 Keep sleeping input camera and HUD in bed state
  • 394bc68 Merge remote-tracking branch 'origin/main' into fix/sleeping-player-state

📊 Changes

4 files changed (+109 additions, -24 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+100 -21)
📝 crates/horizon-client/src/game/fov.rs (+7 -1)
📝 crates/horizon-client/src/game/hand.rs (+1 -1)
📝 crates/horizon-client/src/game/perspective.rs (+1 -1)

📄 Description

Sleeping still accepted gameplay input, kept the standing camera eye height, drew hearts/food above the darkening overlay, and discarded that overlay immediately on waking.

The local bed flow now blocks movement, inventory/offhand and mouse actions while asleep, lowers the camera to the sleeping eye height, darkens health/food/mount bars with the scene, and fades back over ten ticks after waking. Escape and sneak wake the player; normal inputs resume afterward. Normal health/environment ticks continue.

Fixes #613.

Validation: sleep-timer/overlay and retained sword-sweep regressions; native before/after bed interactions reproduce and then prevent the offhand swap, keep inventory closed during sleep, restore input after sneak/Escape waking, and complete a full night. Captures show the lower view, darkened hearts/food and wake fade. Fast client build, all-target client Clippy with warnings denied, formatting and whitespace checks pass.

Draft for in-game testing of bed orientations, camera transitions and HUD behavior. Remote-server/LAN sleep synchronization and broader sleeping-pose parity were not tested.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/679 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/sleeping-player-state` --- ### 📝 Commits (2) - [`5166615`](https://github.com/horizon-rust/horizon/commit/516661592f8aaa337d2183799b654ef3345e4c50) Keep sleeping input camera and HUD in bed state - [`394bc68`](https://github.com/horizon-rust/horizon/commit/394bc68702122b119a2d13cb25241c316c19a7b1) Merge remote-tracking branch 'origin/main' into fix/sleeping-player-state ### 📊 Changes **4 files changed** (+109 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+100 -21) 📝 `crates/horizon-client/src/game/fov.rs` (+7 -1) 📝 `crates/horizon-client/src/game/hand.rs` (+1 -1) 📝 `crates/horizon-client/src/game/perspective.rs` (+1 -1) </details> ### 📄 Description Sleeping still accepted gameplay input, kept the standing camera eye height, drew hearts/food above the darkening overlay, and discarded that overlay immediately on waking. The local bed flow now blocks movement, inventory/offhand and mouse actions while asleep, lowers the camera to the sleeping eye height, darkens health/food/mount bars with the scene, and fades back over ten ticks after waking. Escape and sneak wake the player; normal inputs resume afterward. Normal health/environment ticks continue. Fixes #613. Validation: sleep-timer/overlay and retained sword-sweep regressions; native before/after bed interactions reproduce and then prevent the offhand swap, keep inventory closed during sleep, restore input after sneak/Escape waking, and complete a full night. Captures show the lower view, darkened hearts/food and wake fade. Fast client build, all-target client Clippy with warnings denied, formatting and whitespace checks pass. Draft for in-game testing of bed orientations, camera transitions and HUD behavior. Remote-server/LAN sleep synchronization and broader sleeping-pose parity were not tested. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:33 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2723
No description provided.