Merge branch 'master' into next_level_screen

This commit is contained in:
Evan Pratten 2021-10-02 20:39:06 -07:00 committed by GitHub
commit 27db69441f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ pub fn modify_player_based_on_forces(
player.size.y,
);
if colliders.iter().any(|rect| {
if player.position.y > 50.0 || colliders.iter().any(|rect| {
let mut translated_rect = rect.clone();
translated_rect.y += level_height_offset;
translated_rect.x += WORLD_LEVEL_X_OFFSET;