mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 04:25:00 +01:00
Shorten the name of various scalar types
This commit is contained in:
parent
390a4d45d2
commit
e7c30d231b
4 changed files with 28 additions and 28 deletions
|
|
@ -18,7 +18,7 @@ use crate::{
|
|||
input::Input,
|
||||
math::{center_offset, TILE_SIZE},
|
||||
res::Res,
|
||||
world::{TilePosScalar, CHUNK_EXTENT},
|
||||
world::{TPosSc, CHUNK_EXTENT},
|
||||
};
|
||||
|
||||
/// Application level state (includes game and ui state, etc.)
|
||||
|
|
@ -217,8 +217,8 @@ impl App {
|
|||
);
|
||||
imm!(
|
||||
"@ chunk {}, {}",
|
||||
mouse_tpos.x / CHUNK_EXTENT as TilePosScalar,
|
||||
mouse_tpos.y / CHUNK_EXTENT as TilePosScalar
|
||||
mouse_tpos.x / CHUNK_EXTENT as TPosSc,
|
||||
mouse_tpos.y / CHUNK_EXTENT as TPosSc
|
||||
);
|
||||
if self.debug.freecam && self.input.pressed(Key::P) {
|
||||
self.game.world.player.col_en.en.pos.x = wpos.x as i32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue