improve antialiasing option
i was tired when i made the original so i improved it.
This commit is contained in:
@ -122,7 +122,7 @@ class TitleState extends MusicBeatState
|
||||
persistentUpdate = true;
|
||||
|
||||
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
||||
// bg.antialiasing = true;
|
||||
// bg.antialiasing = FlxG.save.data.antialiasing;
|
||||
// bg.setGraphicSize(Std.int(bg.width * 0.6));
|
||||
// bg.updateHitbox();
|
||||
add(bg);
|
||||
@ -134,10 +134,7 @@ class TitleState extends MusicBeatState
|
||||
logoBl = new FlxSprite(-150, -100);
|
||||
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
|
||||
}
|
||||
if(FlxG.save.data.antialiasing)
|
||||
{
|
||||
logoBl.antialiasing = true;
|
||||
}
|
||||
logoBl.antialiasing = FlxG.save.data.antialiasing;
|
||||
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false);
|
||||
logoBl.updateHitbox();
|
||||
// logoBl.screenCenter();
|
||||
@ -147,10 +144,7 @@ class TitleState extends MusicBeatState
|
||||
gfDance.frames = Paths.getSparrowAtlas('gfDanceTitle');
|
||||
gfDance.animation.addByIndices('danceLeft', 'gfDance', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||
gfDance.animation.addByIndices('danceRight', 'gfDance', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
||||
if(FlxG.save.data.antialiasing)
|
||||
{
|
||||
gfDance.antialiasing = true;
|
||||
}
|
||||
gfDance.antialiasing = FlxG.save.data.antialiasing;
|
||||
add(gfDance);
|
||||
add(logoBl);
|
||||
|
||||
@ -158,10 +152,7 @@ class TitleState extends MusicBeatState
|
||||
titleText.frames = Paths.getSparrowAtlas('titleEnter');
|
||||
titleText.animation.addByPrefix('idle', "Press Enter to Begin", 24);
|
||||
titleText.animation.addByPrefix('press', "ENTER PRESSED", 24);
|
||||
if(FlxG.save.data.antialiasing)
|
||||
{
|
||||
titleText.antialiasing = true;
|
||||
}
|
||||
titleText.antialiasing = FlxG.save.data.antialiasing;
|
||||
titleText.animation.play('idle');
|
||||
titleText.updateHitbox();
|
||||
// titleText.screenCenter(X);
|
||||
@ -169,10 +160,7 @@ class TitleState extends MusicBeatState
|
||||
|
||||
var logo:FlxSprite = new FlxSprite().loadGraphic(Paths.image('logo'));
|
||||
logo.screenCenter();
|
||||
if(FlxG.save.data.antialiasing)
|
||||
{
|
||||
logo.antialiasing = true;
|
||||
}
|
||||
logo.antialiasing = FlxG.save.data.antialiasing;
|
||||
// add(logo);
|
||||
|
||||
// FlxTween.tween(logoBl, {y: logoBl.y + 50}, 0.6, {ease: FlxEase.quadInOut, type: PINGPONG});
|
||||
@ -198,10 +186,7 @@ class TitleState extends MusicBeatState
|
||||
ngSpr.setGraphicSize(Std.int(ngSpr.width * 0.8));
|
||||
ngSpr.updateHitbox();
|
||||
ngSpr.screenCenter(X);
|
||||
if(FlxG.save.data.antialiasing)
|
||||
{
|
||||
ngSpr.antialiasing = true;
|
||||
}
|
||||
ngSpr.antialiasing = FlxG.save.data.antialiasing;
|
||||
|
||||
FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG});
|
||||
|
||||
|
Reference in New Issue
Block a user