Detailed 32 px imp sprite and finer world pixel rows (540, 1080)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-07 20:41:29 +01:00
1 parent 10af85fd95
commit 928c34e78b
7 files changed
+121 -18

No files matched your search

+2 -2
View File
@@ -478,7 +478,7 @@ fn apply_settings(s: &Settings, r3d: &mut R3d) {
r3d.outlines = s.outlines;
r3d.set_wall_detail(s.wall_subdivisions());
r3d.max_lights = s.max_lights as usize;
r3d.pixel_rows = if [270, 360, 480].contains(&s.pixel_rows) { s.pixel_rows as u32 } else { 360 };
r3d.pixel_rows = settings::pixel_rows(s.pixel_rows);
audio::set_volumes(s.music_volume, s.volume, s.muted);
}
@@ -985,7 +985,7 @@ async fn main() {
};
ui::set_touch(touch_mode);
// pixel look: the interface on a virtual screen whose pixels are whole parts of the world's
let rows = if [270, 360, 480].contains(&app.settings.pixel_rows) { app.settings.pixel_rows as u32 } else { 360 };
let rows = settings::pixel_rows(app.settings.pixel_rows);
// the interface needs room: the smallest whole multiple of the world's rows with at least
// 900 rows (360 -> 1080), on a desktop and on a touch screen alike (a phone has about
// 1080 device rows in landscape; a smaller screen draws in device pixels)