Skip to content

Commit 36d5f2b

Browse files
committed
Formatting with ./make.py format
1 parent b4381a1 commit 36d5f2b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

arcade/sprite/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class BasicSprite:
3737
"_position",
3838
"_depth",
3939
"_size",
40-
#"_width",
41-
#"_height",
40+
# "_width",
41+
# "_height",
4242
"_scale",
4343
"_color",
4444
"_texture",

arcade/sprite/sprite.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def __init__(
131131

132132
self._hit_box: RotatableHitBox = self._hit_box.create_rotatable(angle=self._angle)
133133

134-
135134
# --- Properties ---
136135

137136
@property
@@ -297,10 +296,7 @@ def strafe(self, speed: float = 1.0) -> None:
297296
:param speed: speed
298297
"""
299298
angle_rad = math.radians(self.angle + 90)
300-
self.position += Vec2(
301-
math.sin(angle_rad) * speed,
302-
math.cos(angle_rad) * speed
303-
)
299+
self.position += Vec2(math.sin(angle_rad) * speed, math.cos(angle_rad) * speed)
304300

305301
def turn_right(self, theta: float = 90.0) -> None:
306302
"""

0 commit comments

Comments
 (0)