From b6b0da4cbba71bbaa1e7a539793ade66600da069 Mon Sep 17 00:00:00 2001 From: CyndaquilDAC <65635932+CyndaquilDAC@users.noreply.github.com> Date: Tue, 13 Apr 2021 07:26:55 -0500 Subject: [PATCH] antialias deez nuts --- source/HealthIcon.hx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/HealthIcon.hx b/source/HealthIcon.hx index 4818754..2625d95 100644 --- a/source/HealthIcon.hx +++ b/source/HealthIcon.hx @@ -15,7 +15,7 @@ class HealthIcon extends FlxSprite loadGraphic(Paths.image('iconGrid'), true, 150, 150); - antialiasing = true; + animation.add('bf', [0, 1], 0, false, isPlayer); animation.add('bf-car', [0, 1], 0, false, isPlayer); animation.add('bf-christmas', [0, 1], 0, false, isPlayer); @@ -38,6 +38,16 @@ class HealthIcon extends FlxSprite animation.add('monster', [19, 20], 0, false, isPlayer); animation.add('monster-christmas', [19, 20], 0, false, isPlayer); animation.play(char); + switch(char){ + case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel': + { + + } + default: + { + antialiasing = true; + } + } scrollFactor.set(); }