Skip to content

Commit 04fc724

Browse files
Fix bug <3
1 parent 8095a08 commit 04fc724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ scripts = {} //Only initialized if there's a Sprite() lying around
1818
* ```
1919
*/
2020
export default function Sprite(name, cI, cost, x, y, s, r){
21-
spriteName,
21+
spriteName = name,
2222
costumeI = cI,
2323
costume = cost
2424
x = y,
@@ -40,4 +40,4 @@ export default function Sprite(name, cI, cost, x, y, s, r){
4040
rotate = rotate + deg;
4141
}
4242
};
43-
};
43+
};

0 commit comments

Comments
 (0)