Add memory usage indicator and add GC toggle

This commit is contained in:
AirDog46
2025-05-18 00:54:25 +03:00
parent e03cd7d1c3
commit 903970c542
9 changed files with 108 additions and 13 deletions

View File

@@ -23,6 +23,10 @@ class GameOverState extends FlxTransitionableState
override function create()
{
if (!FlxG.save.data.GC) {
Gc.enable(true);
trace("Player died. We can reenable the garbage collector");
}
var loser:FlxSprite = new FlxSprite(100, 100);
var loseTex = Paths.getSparrowAtlas('lose');
loser.frames = loseTex;