Skip to content

Commit

Permalink
fixed circle size
Browse files Browse the repository at this point in the history
  • Loading branch information
Nertsal committed May 30, 2024
1 parent c944d97 commit 45213f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/menu/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl LevelMenu {
options: Options,
) -> Self {
let player = Player::new(
Collider::new(vec2::ZERO, Shape::Circle { radius: r32(1.0) }),
Collider::new(vec2::ZERO, Shape::Circle { radius: r32(0.1) }),
r32(0.0),
);

Expand Down
2 changes: 1 addition & 1 deletion src/menu/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl MainMenu {
1.5,
),
player: Player::new(
Collider::new(vec2::ZERO, Shape::Circle { radius: r32(1.0) }),
Collider::new(vec2::ZERO, Shape::Circle { radius: r32(0.1) }),
r32(0.0),
),

Expand Down
7 changes: 1 addition & 6 deletions src/render/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,7 @@ impl UtilRender {
}

// Player
let scale = crate::util::smoothstep(player.health.get_ratio());
let player = player
.collider
.transformed(Transform { scale, ..default() });
// self.draw_outline(&player, 0.05, theme.light, camera, framebuffer);
self.draw_outline(&player, 0.05, THEME.light, camera, framebuffer);
self.draw_outline(&player.collider, 0.05, THEME.light, camera, framebuffer);
}

pub fn draw_health(
Expand Down

0 comments on commit 45213f3

Please sign in to comment.