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:
37
37
"_position" ,
38
38
"_depth" ,
39
39
"_size" ,
40
- #"_width",
41
- #"_height",
40
+ # "_width",
41
+ # "_height",
42
42
"_scale" ,
43
43
"_color" ,
44
44
"_texture" ,
Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ def __init__(
131
131
132
132
self ._hit_box : RotatableHitBox = self ._hit_box .create_rotatable (angle = self ._angle )
133
133
134
-
135
134
# --- Properties ---
136
135
137
136
@property
@@ -297,10 +296,7 @@ def strafe(self, speed: float = 1.0) -> None:
297
296
:param speed: speed
298
297
"""
299
298
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 )
304
300
305
301
def turn_right (self , theta : float = 90.0 ) -> None :
306
302
"""
You can’t perform that action at this time.
0 commit comments