mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
Redesign the scaling of the game for depth to feel more meaningful
This commit is contained in:
parent
d6f3eb07f2
commit
6c99beb47d
5 changed files with 42 additions and 17 deletions
|
|
@ -15,7 +15,7 @@ pub struct Player {
|
|||
impl Player {
|
||||
pub fn new_at(pos: WorldPos) -> Self {
|
||||
Self {
|
||||
col_en: MobileEntity::from_pos_and_bb(vec2(pos.x as i32, pos.y as i32), vec2(15, 24)),
|
||||
col_en: MobileEntity::from_pos_and_bb(vec2(pos.x as i32, pos.y as i32), vec2(20, 46)),
|
||||
vspeed: 0.0,
|
||||
hspeed: 0.0,
|
||||
jumps_left: 0,
|
||||
|
|
@ -30,4 +30,7 @@ impl Player {
|
|||
pub fn can_jump(&self) -> bool {
|
||||
self.jumps_left > 0
|
||||
}
|
||||
pub fn feet_y(&self) -> i32 {
|
||||
self.col_en.en.pos.y + self.col_en.en.bb.y
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue