mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Fix local tile offset calculation for large coordinates
This commit is contained in:
parent
38699c9d09
commit
62bd6b2c7c
3 changed files with 79 additions and 37 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use egui_sfml::{egui, SfEgui};
|
||||
use gamedebug_core::imm;
|
||||
use gamedebug_core::imm_dbg;
|
||||
use sfml::{
|
||||
graphics::{Color, RenderTarget, RenderWindow},
|
||||
window::Event,
|
||||
|
|
@ -48,7 +48,11 @@ impl App {
|
|||
}
|
||||
}
|
||||
|
||||
fn do_update(&mut self) {}
|
||||
fn do_update(&mut self) {
|
||||
let tp = self.game.camera_offset.tile_pos();
|
||||
imm_dbg!(tp);
|
||||
imm_dbg!(tp.to_chunk_and_local());
|
||||
}
|
||||
|
||||
fn do_rendering(&mut self) {
|
||||
self.rw.clear(Color::BLACK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue