Skip to content

Commit c295d9d

Browse files
authored
Fix white space issues in collision.py (#1709)
1 parent 26cdee3 commit c295d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arcade/sprite_list/collision.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _check_for_collision(sprite1: SpriteType, sprite2: SpriteType) -> bool:
9393
:returns: True if sprites overlap.
9494
:rtype: bool
9595
"""
96-
96+
9797
#NOTE: for speed becuase attribute look ups are slow.
9898
sprite1_position = sprite1._position
9999
sprite1_width = sprite1._width
@@ -106,7 +106,7 @@ def _check_for_collision(sprite1: SpriteType, sprite2: SpriteType) -> bool:
106106
(sprite1_width if sprite1_width > sprite1_height else sprite1_height)
107107
+ (sprite2_width if sprite2_width > sprite2_height else sprite2_height)
108108
)
109-
109+
110110
# Multiply by half of the theoretical max diagonal length for an estimation of distance
111111
radius_sum *= 0.71 # 1.42 / 2
112112
radius_sum_sq = radius_sum * radius_sum

0 commit comments

Comments
 (0)