Skip to content

Commit a922a47

Browse files
committed
Fixed Formatting from previous commit modified: tests/test_physics_engines.py
1 parent c59e8b9 commit a922a47

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

arcade/physics_engines.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def _move_sprite(
156156
# accumulating motion from multiple platforms which can cause
157157
# sliding/jitter when the player is between blocks.
158158

159-
160159
# Prefer platforms (moving sprites) among the collisions.
161160
platform_items = [
162161
item
@@ -167,9 +166,9 @@ def _move_sprite(
167166
# Choose the platform with the highest top (closest to the player)
168167
chosen_platform = None
169168
if platform_items:
170-
chosen_platform = max(platform_items,
171-
key=lambda s: getattr(s, "top",
172-
float("-inf")))
169+
chosen_platform = max(
170+
platform_items, key=lambda s: getattr(s, "top", float("-inf"))
171+
)
173172

174173
# Nudge the player up until no longer colliding with each collided item
175174
for item in hit_list_x:

0 commit comments

Comments
 (0)