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:
43
43
"_position" ,
44
44
"_depth" ,
45
45
"_size" ,
46
- #"_width",
47
- #"_height",
46
+ # "_width",
47
+ # "_height",
48
48
"_scale" ,
49
49
"_color" ,
50
50
"_texture" ,
Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ def __init__(
152
152
153
153
self ._hit_box : RotatableHitBox = self ._hit_box .create_rotatable (angle = self ._angle )
154
154
155
-
156
155
# --- Properties ---
157
156
158
157
@property
@@ -313,10 +312,7 @@ def strafe(self, speed: float = 1.0) -> None:
313
312
speed: The speed at which the sprite moves.
314
313
"""
315
314
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 )
320
316
321
317
def turn_right (self , theta : float = 90.0 ) -> None :
322
318
"""
You can’t perform that action at this time.
0 commit comments