mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-15 12:15:01 +01:00
Display horizontal offset from center
This commit is contained in:
parent
d41032dbcc
commit
0aa2781c25
1 changed files with 4 additions and 1 deletions
|
|
@ -57,7 +57,6 @@ impl App {
|
|||
|
||||
fn do_update(&mut self) {
|
||||
let tp = self.game.camera_offset.tile_pos();
|
||||
self.game.camera_offset.y += 800;
|
||||
imm_dbg!(tp);
|
||||
imm_dbg!(tp.to_chunk_and_local());
|
||||
}
|
||||
|
|
@ -77,6 +76,10 @@ impl App {
|
|||
"Depth: {}",
|
||||
LengthDisp(tile_off.y as i64 - wp_to_tp(WorldPos::SURFACE) as i64)
|
||||
));
|
||||
ui.label(format!(
|
||||
"Offset from center: {}",
|
||||
LengthDisp(tile_off.x as i64 - wp_to_tp(WorldPos::CENTER) as i64)
|
||||
));
|
||||
ui.separator();
|
||||
egui::ScrollArea::vertical().show(ui, |ui| {
|
||||
gamedebug_core::for_each_imm(|info| match info {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue