improve movement at overworld #16

Merged
LuckyTurtleDev merged 2 commits from msrd0_more_smooth into main 2024-07-07 14:03:49 +00:00
2 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,8 @@ fn update_move_player(state: &mut State, ctx: &mut EngineContext<'_>) {
state.ghost.overworld_movement_pending state.ghost.overworld_movement_pending
); );
state.ghost.update_overworld_pos(now); state.ghost.update_overworld_pos(now);
}
if state.ghost.overworld_movement_pending != Vec2::ZERO {
return; return;
} }

View file

@ -75,7 +75,8 @@ fn config(config: GameConfig) -> GameConfig {
GameConfig { GameConfig {
tonemapping_enabled: true, tonemapping_enabled: true,
dev, dev,
..Default::default() target_framerate: 165,
..config
} }
} }