Skip to content

Commit 5d65be0

Browse files
committed
Formatting with ./make.py format
1 parent fd16294 commit 5d65be0

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
@@ -43,8 +43,8 @@ class BasicSprite:
4343
"_position",
4444
"_depth",
4545
"_size",
46-
#"_width",
47-
#"_height",
46+
# "_width",
47+
# "_height",
4848
"_scale",
4949
"_color",
5050
"_texture",

arcade/sprite/sprite.py

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

153153
self._hit_box: RotatableHitBox = self._hit_box.create_rotatable(angle=self._angle)
154154

155-
156155
# --- Properties ---
157156

158157
@property
@@ -313,10 +312,7 @@ def strafe(self, speed: float = 1.0) -> None:
313312
speed: The speed at which the sprite moves.
314313
"""
315314
angle_rad = math.radians(self.angle + 90)
316-
self.position += Vec2(
317-
math.sin(angle_rad) * speed,
318-
math.cos(angle_rad) * speed
319-
)
315+
self.position += Vec2(math.sin(angle_rad) * speed, math.cos(angle_rad) * speed)
320316

321317
def turn_right(self, theta: float = 90.0) -> None:
322318
"""

0 commit comments

Comments
 (0)