File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ def __init__(
6464 self ._depth = 0.0
6565 self ._texture = texture
6666
67- scale = Vec2 (scale , scale ) # Will be used below
68- self ._scale : Vec2 = scale
69- self ._size : Vec2 = scale * texture .size
67+ scale_vec2 = Vec2 (scale , scale ) # Will be used below
68+ self ._scale : Vec2 = scale_vec2
69+ self ._size : Vec2 = scale_vec2 * texture .size
7070
7171 self ._visible = bool (visible )
7272 self ._color : Color = WHITE
@@ -75,7 +75,7 @@ def __init__(
7575 # Core properties we don't use, but spritelist expects it
7676 self ._angle = 0.0
7777
78- self ._hit_box = HitBox (self ._texture .hit_box_points , position , scale )
78+ self ._hit_box = HitBox (self ._texture .hit_box_points , position , scale_vec2 )
7979
8080 # --- Core Properties ---
8181
You can’t perform that action at this time.
0 commit comments