Monster eye marks the camera on the minimap; middle double click resets the view angle; creatures by beds up to 100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-06 10:06:51 +01:00
1 parent 0b2d327791
commit ac22351cdf
22 files changed
+147 -5

No files matched your search

+10 -1
View File
@@ -34,6 +34,9 @@ pub struct Cam {
pub render_init: bool,
}
pub const DEFAULT_YAW: f32 = 0.785;
pub const DEFAULT_PITCH: f32 = 0.6155;
fn zero_f32() -> f32 {
0.0
}
@@ -44,7 +47,13 @@ fn cam_uninit() -> bool {
impl Cam {
pub fn new(tx: f32, tz: f32) -> Cam {
Cam { tx, tz, yaw: 0.785, pitch: 0.6155, zoom: 18.0, rx: tx, rz: tz, render_init: true }
Cam { tx, tz, yaw: DEFAULT_YAW, pitch: DEFAULT_PITCH, zoom: 18.0, rx: tx, rz: tz, render_init: true }
}
// the standard view angle and turn; the position and zoom stay
pub fn reset_view(&mut self) {
self.yaw = DEFAULT_YAW;
self.pitch = DEFAULT_PITCH;
}
pub fn snap(&mut self) {