Skip to content

Commit 7981be3

Browse files
better
Signed-off-by: CrusherNotDrip <crushernotdrip@tilnotdrip.org>
1 parent 4bf2b4d commit 7981be3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/funkin/objects/FunkinSprite.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package funkin.objects;
22

3+
import flixel.graphics.FlxGraphic;
34
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
45
import flixel.util.FlxSignal.FlxTypedSignal;
56
import flxanimate.FlxAnimate;
@@ -38,8 +39,9 @@ class FunkinSprite extends FlxSprite
3839
// Regex Check for colors?
3940
if (path.startsWith('#'))
4041
{
41-
// TODO: `makeGraphic` can take a LOT up in memory. move it to something more close to `makeSolid` from Base Game.
42-
makeGraphic(rectWidth, rectHeight, FlxColor.fromString(path));
42+
loadGraphic(FlxG.bitmap.create(1, 1, FlxColor.fromString(path), false));
43+
scale.set(rectWidth, rectHeight);
44+
updateHitbox();
4345
}
4446
else
4547
{

0 commit comments

Comments
 (0)