Merge pull request #202 from CyndaquilDAC/antialiasing-fix
Pixel health icons don't antialias anymore
This commit is contained in:
commit
7d11dc9081
@ -15,7 +15,7 @@ class HealthIcon extends FlxSprite
|
|||||||
|
|
||||||
loadGraphic(Paths.image('iconGrid'), true, 150, 150);
|
loadGraphic(Paths.image('iconGrid'), true, 150, 150);
|
||||||
|
|
||||||
antialiasing = true;
|
|
||||||
animation.add('bf', [0, 1], 0, false, isPlayer);
|
animation.add('bf', [0, 1], 0, false, isPlayer);
|
||||||
animation.add('bf-car', [0, 1], 0, false, isPlayer);
|
animation.add('bf-car', [0, 1], 0, false, isPlayer);
|
||||||
animation.add('bf-christmas', [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', [19, 20], 0, false, isPlayer);
|
||||||
animation.add('monster-christmas', [19, 20], 0, false, isPlayer);
|
animation.add('monster-christmas', [19, 20], 0, false, isPlayer);
|
||||||
animation.play(char);
|
animation.play(char);
|
||||||
|
switch(char){
|
||||||
|
case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel':
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
antialiasing = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
scrollFactor.set();
|
scrollFactor.set();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user