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 @@ -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" ,
Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments