File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments