mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
Tweak gravity
This commit is contained in:
parent
413875909e
commit
4c9fe26ec9
2 changed files with 11 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ pub struct GameState {
|
|||
pub camera_offset: WorldPos,
|
||||
pub world: World,
|
||||
pub player: Player,
|
||||
pub gravity: f32,
|
||||
}
|
||||
impl GameState {
|
||||
pub(crate) fn draw_world(&mut self, rw: &mut RenderWindow, res: &Res) {
|
||||
|
|
@ -66,6 +67,7 @@ impl Default for GameState {
|
|||
camera_offset: spawn_point,
|
||||
world: Default::default(),
|
||||
player: Player::new_at(spawn_point),
|
||||
gravity: 0.7,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue