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 @@ -130,7 +130,6 @@ def __init__(
130130
131131 self ._hit_box : RotatableHitBox = self ._hit_box .create_rotatable (angle = self ._angle )
132132
133-
134133 # --- Properties ---
135134
136135 @property
@@ -296,10 +295,7 @@ def strafe(self, speed: float = 1.0) -> None:
296295 :param speed: speed
297296 """
298297 angle_rad = math .radians (self .angle + 90 )
299- self .position += Vec2 (
300- math .sin (angle_rad ) * speed ,
301- math .cos (angle_rad ) * speed
302- )
298+ self .position += Vec2 (math .sin (angle_rad ) * speed , math .cos (angle_rad ) * speed )
303299
304300 def turn_right (self , theta : float = 90.0 ) -> None :
305301 """
You can’t perform that action at this time.
0 commit comments