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 @@ -70,9 +70,9 @@ def __init__(
7070 self ._depth = 0.0
7171 self ._texture = texture
7272
73- scale = Vec2 (scale , scale ) # Will be used below
74- self ._scale : Vec2 = scale
75- self ._size : Vec2 = scale * texture .size
73+ scale_vec2 = Vec2 (scale , scale ) # Will be used below
74+ self ._scale : Vec2 = scale_vec2
75+ self ._size : Vec2 = scale_vec2 * texture .size
7676
7777 self ._visible = bool (visible )
7878 self ._color : Color = WHITE
@@ -82,7 +82,7 @@ def __init__(
8282 # Core properties we don't use, but spritelist expects it
8383 self ._angle = 0.0
8484
85- self ._hit_box = HitBox (self ._texture .hit_box_points , position , scale )
85+ self ._hit_box = HitBox (self ._texture .hit_box_points , position , scale_vec2 )
8686
8787 # --- Core Properties ---
8888
You can’t perform that action at this time.
0 commit comments