mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +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
|
|
@ -3,7 +3,7 @@ use s2dc::{vec2, MobileEntity};
|
|||
|
||||
use crate::{
|
||||
math::{WorldPos, TILE_SIZE},
|
||||
world::{TilePos, TilePosScalar},
|
||||
world::{TPosSc, TilePos},
|
||||
};
|
||||
|
||||
#[derive(Debug, Inspect)]
|
||||
|
|
@ -40,8 +40,8 @@ impl Player {
|
|||
#[allow(dead_code)]
|
||||
pub fn center_tp(&self) -> TilePos {
|
||||
TilePos {
|
||||
x: (self.col_en.en.pos.x / TILE_SIZE as i32) as TilePosScalar,
|
||||
y: (self.col_en.en.pos.y / TILE_SIZE as i32) as TilePosScalar,
|
||||
x: (self.col_en.en.pos.x / TILE_SIZE as i32) as TPosSc,
|
||||
y: (self.col_en.en.pos.y / TILE_SIZE as i32) as TPosSc,
|
||||
}
|
||||
}
|
||||
pub fn can_jump(&self) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue