improve code on removing AA from pixel icons
This commit is contained in:
parent
91a55d694e
commit
24977c2526
@ -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,16 +38,13 @@ 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;
|
||||
}
|
||||
switch(char)
|
||||
{
|
||||
case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel':
|
||||
antialiasing = false;
|
||||
}
|
||||
|
||||
scrollFactor.set();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user