improve antialiasing option
i was tired when i made the original so i improved it.
This commit is contained in:
parent
c36af0785b
commit
bf96409d8a
@ -278,10 +278,7 @@ class AlphaCharacter extends FlxSprite
|
|||||||
super(x, y);
|
super(x, y);
|
||||||
var tex = Paths.getSparrowAtlas('alphabet');
|
var tex = Paths.getSparrowAtlas('alphabet');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createBold(letter:String)
|
public function createBold(letter:String)
|
||||||
|
@ -14,10 +14,7 @@ class BackgroundDancer extends FlxSprite
|
|||||||
animation.addByIndices('danceLeft', 'bg dancer sketch PINK', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
animation.addByIndices('danceLeft', 'bg dancer sketch PINK', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||||
animation.addByIndices('danceRight', 'bg dancer sketch PINK', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
animation.addByIndices('danceRight', 'bg dancer sketch PINK', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
||||||
animation.play('danceLeft');
|
animation.play('danceLeft');
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var danceDir:Bool = false;
|
var danceDir:Bool = false;
|
||||||
|
@ -73,7 +73,10 @@ class Caching extends MusicBeatState
|
|||||||
text.y -= kadeLogo.height / 2 - 125;
|
text.y -= kadeLogo.height / 2 - 125;
|
||||||
text.x -= 170;
|
text.x -= 170;
|
||||||
kadeLogo.setGraphicSize(Std.int(kadeLogo.width * 0.6));
|
kadeLogo.setGraphicSize(Std.int(kadeLogo.width * 0.6));
|
||||||
kadeLogo.antialiasing = true;
|
if(FlxG.save.data.antialiasing != null)
|
||||||
|
kadeLogo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
|
else
|
||||||
|
kadeLogo.antialiasing = true;
|
||||||
|
|
||||||
kadeLogo.alpha = 0;
|
kadeLogo.alpha = 0;
|
||||||
|
|
||||||
|
@ -26,10 +26,7 @@ class Character extends FlxSprite
|
|||||||
this.isPlayer = isPlayer;
|
this.isPlayer = isPlayer;
|
||||||
|
|
||||||
var tex:FlxAtlasFrames;
|
var tex:FlxAtlasFrames;
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (curCharacter)
|
switch (curCharacter)
|
||||||
{
|
{
|
||||||
|
@ -89,10 +89,7 @@ class DiffOverview extends FlxSubState
|
|||||||
babyArrow.animation.addByPrefix('blue', 'arrowDOWN');
|
babyArrow.animation.addByPrefix('blue', 'arrowDOWN');
|
||||||
babyArrow.animation.addByPrefix('purple', 'arrowLEFT');
|
babyArrow.animation.addByPrefix('purple', 'arrowLEFT');
|
||||||
babyArrow.animation.addByPrefix('red', 'arrowRIGHT');
|
babyArrow.animation.addByPrefix('red', 'arrowRIGHT');
|
||||||
if(FlxG.save.data.antialiasing)
|
babyArrow.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
babyArrow.antialiasing = true;
|
|
||||||
}
|
|
||||||
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
||||||
|
|
||||||
switch (Math.abs(i))
|
switch (Math.abs(i))
|
||||||
|
@ -179,10 +179,7 @@ class FreeplayState extends MusicBeatState
|
|||||||
// LOAD CHARACTERS
|
// LOAD CHARACTERS
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menuBGBlue'));
|
var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menuBGBlue'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
grpSongs = new FlxTypedGroup<Alphabet>();
|
grpSongs = new FlxTypedGroup<Alphabet>();
|
||||||
|
@ -23,12 +23,13 @@ class GameOverState extends FlxTransitionableState
|
|||||||
|
|
||||||
override function create()
|
override function create()
|
||||||
{
|
{
|
||||||
var loser:FlxSprite = new FlxSprite(100, 100);
|
var loser:FlxSprite = new FlxSprite(100, 100);
|
||||||
var loseTex = Paths.getSparrowAtlas('lose');
|
var loseTex = Paths.getSparrowAtlas('lose');
|
||||||
loser.frames = loseTex;
|
loser.frames = loseTex;
|
||||||
loser.animation.addByPrefix('lose', 'lose', 24, false);
|
loser.animation.addByPrefix('lose', 'lose', 24, false);
|
||||||
loser.animation.play('lose');
|
loser.animation.play('lose');
|
||||||
add(loser);
|
loser.antialiasing = FlxG.save.data.antialiasing;
|
||||||
|
add(loser);
|
||||||
|
|
||||||
var bf:Boyfriend = new Boyfriend(bfX, bfY);
|
var bf:Boyfriend = new Boyfriend(bfX, bfY);
|
||||||
// bf.scrollFactor.set();
|
// bf.scrollFactor.set();
|
||||||
@ -37,15 +38,12 @@ class GameOverState extends FlxTransitionableState
|
|||||||
|
|
||||||
FlxG.camera.follow(bf, LOCKON, 0.001);
|
FlxG.camera.follow(bf, LOCKON, 0.001);
|
||||||
|
|
||||||
var restart:FlxSprite = new FlxSprite(500, 50).loadGraphic(Paths.image('restart'));
|
var restart:FlxSprite = new FlxSprite(500, 50).loadGraphic(Paths.image('restart'));
|
||||||
restart.setGraphicSize(Std.int(restart.width * 0.6));
|
restart.setGraphicSize(Std.int(restart.width * 0.6));
|
||||||
restart.updateHitbox();
|
restart.updateHitbox();
|
||||||
restart.alpha = 0;
|
restart.alpha = 0;
|
||||||
if(FlxG.save.data.antialiasing)
|
restart.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
add(restart);
|
||||||
restart.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(restart);
|
|
||||||
|
|
||||||
FlxG.sound.music.fadeOut(2, FlxG.sound.music.volume * 0.6);
|
FlxG.sound.music.fadeOut(2, FlxG.sound.music.volume * 0.6);
|
||||||
|
|
||||||
|
@ -47,10 +47,14 @@ class GameplayCustomizeState extends MusicBeatState
|
|||||||
#end
|
#end
|
||||||
|
|
||||||
sick = new FlxSprite().loadGraphic(Paths.image('sick','shared'));
|
sick = new FlxSprite().loadGraphic(Paths.image('sick','shared'));
|
||||||
|
sick.antialiasing = FlxG.save.data.antialiasing;
|
||||||
sick.scrollFactor.set();
|
sick.scrollFactor.set();
|
||||||
background = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback','shared'));
|
background = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback','shared'));
|
||||||
curt = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains','shared'));
|
curt = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains','shared'));
|
||||||
front = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront','shared'));
|
front = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront','shared'));
|
||||||
|
background.antialiasing = FlxG.save.data.antialiasing;
|
||||||
|
curt.antialiasing = FlxG.save.data.antialiasing;
|
||||||
|
front.antialiasing = FlxG.save.data.antialiasing;
|
||||||
|
|
||||||
//Conductor.changeBPM(102);
|
//Conductor.changeBPM(102);
|
||||||
persistentUpdate = true;
|
persistentUpdate = true;
|
||||||
@ -218,7 +222,7 @@ class GameplayCustomizeState extends MusicBeatState
|
|||||||
babyArrow.animation.addByPrefix('blue', 'arrowDOWN');
|
babyArrow.animation.addByPrefix('blue', 'arrowDOWN');
|
||||||
babyArrow.animation.addByPrefix('purple', 'arrowLEFT');
|
babyArrow.animation.addByPrefix('purple', 'arrowLEFT');
|
||||||
babyArrow.animation.addByPrefix('red', 'arrowRIGHT');
|
babyArrow.animation.addByPrefix('red', 'arrowRIGHT');
|
||||||
babyArrow.antialiasing = true;
|
babyArrow.antialiasing = FlxG.save.data.antialiasing;
|
||||||
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
||||||
switch (Math.abs(i))
|
switch (Math.abs(i))
|
||||||
{
|
{
|
||||||
|
@ -22,20 +22,14 @@ class GitarooPause extends MusicBeatState
|
|||||||
FlxG.sound.music.stop();
|
FlxG.sound.music.stop();
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('pauseAlt/pauseBG'));
|
var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('pauseAlt/pauseBG'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
var bf:FlxSprite = new FlxSprite(0, 30);
|
var bf:FlxSprite = new FlxSprite(0, 30);
|
||||||
bf.frames = Paths.getSparrowAtlas('pauseAlt/bfLol');
|
bf.frames = Paths.getSparrowAtlas('pauseAlt/bfLol');
|
||||||
bf.animation.addByPrefix('lol', "funnyThing", 13);
|
bf.animation.addByPrefix('lol', "funnyThing", 13);
|
||||||
bf.animation.play('lol');
|
bf.animation.play('lol');
|
||||||
if(FlxG.save.data.antialiasing)
|
bf.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bf.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(bf);
|
add(bf);
|
||||||
bf.screenCenter(X);
|
bf.screenCenter(X);
|
||||||
|
|
||||||
@ -44,10 +38,7 @@ class GitarooPause extends MusicBeatState
|
|||||||
replayButton.animation.addByPrefix('selected', 'bluereplay', 0, false);
|
replayButton.animation.addByPrefix('selected', 'bluereplay', 0, false);
|
||||||
replayButton.animation.appendByPrefix('selected', 'yellowreplay');
|
replayButton.animation.appendByPrefix('selected', 'yellowreplay');
|
||||||
replayButton.animation.play('selected');
|
replayButton.animation.play('selected');
|
||||||
if(FlxG.save.data.antialiasing)
|
replayButton.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
replayButton.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(replayButton);
|
add(replayButton);
|
||||||
|
|
||||||
cancelButton = new FlxSprite(FlxG.width * 0.58, replayButton.y);
|
cancelButton = new FlxSprite(FlxG.width * 0.58, replayButton.y);
|
||||||
@ -55,10 +46,7 @@ class GitarooPause extends MusicBeatState
|
|||||||
cancelButton.animation.addByPrefix('selected', 'bluecancel', 0, false);
|
cancelButton.animation.addByPrefix('selected', 'bluecancel', 0, false);
|
||||||
cancelButton.animation.appendByPrefix('selected', 'cancelyellow');
|
cancelButton.animation.appendByPrefix('selected', 'cancelyellow');
|
||||||
cancelButton.animation.play('selected');
|
cancelButton.animation.play('selected');
|
||||||
if(FlxG.save.data.antialiasing)
|
cancelButton.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
cancelButton.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(cancelButton);
|
add(cancelButton);
|
||||||
|
|
||||||
changeThing();
|
changeThing();
|
||||||
|
@ -25,16 +25,7 @@ class HealthIcon extends FlxSprite
|
|||||||
|
|
||||||
isPlayer = isOldIcon = false;
|
isPlayer = isOldIcon = false;
|
||||||
|
|
||||||
if (FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
switch(char)
|
|
||||||
{
|
|
||||||
case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel':
|
|
||||||
antialiasing = false;
|
|
||||||
default:
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
changeIcon(char);
|
changeIcon(char);
|
||||||
scrollFactor.set();
|
scrollFactor.set();
|
||||||
@ -51,6 +42,10 @@ class HealthIcon extends FlxSprite
|
|||||||
char = char.split("-")[0];
|
char = char.split("-")[0];
|
||||||
|
|
||||||
loadGraphic(Paths.image('icons/icon-' + char), true, 150, 150);
|
loadGraphic(Paths.image('icons/icon-' + char), true, 150, 150);
|
||||||
|
if(char.endsWith('-pixel') || char.startsWith('senpai') || char.startsWith('spirit'))
|
||||||
|
antialiasing = false
|
||||||
|
else
|
||||||
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
animation.add(char, [0, 1], 0, false, isPlayer);
|
animation.add(char, [0, 1], 0, false, isPlayer);
|
||||||
animation.play(char);
|
animation.play(char);
|
||||||
}
|
}
|
||||||
|
@ -71,10 +71,7 @@ class LoadReplayState extends MusicBeatState
|
|||||||
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
|
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
|
||||||
menuBG.updateHitbox();
|
menuBG.updateHitbox();
|
||||||
menuBG.screenCenter();
|
menuBG.screenCenter();
|
||||||
if(FlxG.save.data.antialiasing)
|
menuBG.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
menuBG.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(menuBG);
|
add(menuBG);
|
||||||
|
|
||||||
grpControls = new FlxTypedGroup<Alphabet>();
|
grpControls = new FlxTypedGroup<Alphabet>();
|
||||||
|
@ -38,10 +38,7 @@ class LoadingState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
logo = new FlxSprite(-150, -100);
|
logo = new FlxSprite(-150, -100);
|
||||||
logo.frames = Paths.getSparrowAtlas('logoBumpin');
|
logo.frames = Paths.getSparrowAtlas('logoBumpin');
|
||||||
if(FlxG.save.data.antialiasing)
|
logo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
logo.antialiasing = true;
|
|
||||||
}
|
|
||||||
logo.animation.addByPrefix('bump', 'logo bumpin', 24);
|
logo.animation.addByPrefix('bump', 'logo bumpin', 24);
|
||||||
logo.animation.play('bump');
|
logo.animation.play('bump');
|
||||||
logo.updateHitbox();
|
logo.updateHitbox();
|
||||||
@ -52,10 +49,7 @@ class LoadingState extends MusicBeatState
|
|||||||
gfDance.frames = Paths.getSparrowAtlas('gfDanceTitle');
|
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('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);
|
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 = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
gfDance.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(gfDance);
|
add(gfDance);
|
||||||
add(logo);
|
add(logo);
|
||||||
|
|
||||||
|
@ -67,10 +67,7 @@ class MainMenuState extends MusicBeatState
|
|||||||
bg.setGraphicSize(Std.int(bg.width * 1.1));
|
bg.setGraphicSize(Std.int(bg.width * 1.1));
|
||||||
bg.updateHitbox();
|
bg.updateHitbox();
|
||||||
bg.screenCenter();
|
bg.screenCenter();
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
camFollow = new FlxObject(0, 0, 1, 1);
|
camFollow = new FlxObject(0, 0, 1, 1);
|
||||||
@ -83,10 +80,7 @@ class MainMenuState extends MusicBeatState
|
|||||||
magenta.updateHitbox();
|
magenta.updateHitbox();
|
||||||
magenta.screenCenter();
|
magenta.screenCenter();
|
||||||
magenta.visible = false;
|
magenta.visible = false;
|
||||||
if(FlxG.save.data.antialiasing)
|
magenta.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
magenta.antialiasing = true;
|
|
||||||
}
|
|
||||||
magenta.color = 0xFFfd719b;
|
magenta.color = 0xFFfd719b;
|
||||||
add(magenta);
|
add(magenta);
|
||||||
// magenta.scrollFactor.set();
|
// magenta.scrollFactor.set();
|
||||||
@ -107,10 +101,7 @@ class MainMenuState extends MusicBeatState
|
|||||||
menuItem.screenCenter(X);
|
menuItem.screenCenter(X);
|
||||||
menuItems.add(menuItem);
|
menuItems.add(menuItem);
|
||||||
menuItem.scrollFactor.set();
|
menuItem.scrollFactor.set();
|
||||||
if(FlxG.save.data.antialiasing)
|
menuItem.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
menuItem.antialiasing = true;
|
|
||||||
}
|
|
||||||
if (firstStart)
|
if (firstStart)
|
||||||
FlxTween.tween(menuItem,{y: 60 + (i * 160)},1 + (i * 0.25) ,{ease: FlxEase.expoInOut, onComplete: function(flxTween:FlxTween)
|
FlxTween.tween(menuItem,{y: 60 + (i * 160)},1 + (i * 0.25) ,{ease: FlxEase.expoInOut, onComplete: function(flxTween:FlxTween)
|
||||||
{
|
{
|
||||||
|
@ -44,10 +44,7 @@ class MenuCharacter extends FlxSprite
|
|||||||
super(x, y);
|
super(x, y);
|
||||||
this.flipped = flipped;
|
this.flipped = flipped;
|
||||||
|
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
frames = Paths.getSparrowAtlas('campaign_menu_UI_characters');
|
frames = Paths.getSparrowAtlas('campaign_menu_UI_characters');
|
||||||
|
|
||||||
|
@ -116,10 +116,7 @@ class Note extends FlxSprite
|
|||||||
|
|
||||||
setGraphicSize(Std.int(width * 0.7));
|
setGraphicSize(Std.int(width * 0.7));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -156,10 +153,7 @@ class Note extends FlxSprite
|
|||||||
setGraphicSize(Std.int(width * 0.7));
|
setGraphicSize(Std.int(width * 0.7));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
|
||||||
if(FlxG.save.data.antialiasing)
|
antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,6 +184,7 @@ class Note extends FlxSprite
|
|||||||
// and flip it so it doesn't look weird.
|
// and flip it so it doesn't look weird.
|
||||||
// THIS DOESN'T FUCKING FLIP THE NOTE, CONTRIBUTERS DON'T JUST COMMENT THIS OUT JESUS
|
// THIS DOESN'T FUCKING FLIP THE NOTE, CONTRIBUTERS DON'T JUST COMMENT THIS OUT JESUS
|
||||||
// then what is this lol
|
// then what is this lol
|
||||||
|
// BRO IT LITERALLY SAYS IT FLIPS IF ITS A TRAIL AND ITS DOWNSCROLL
|
||||||
if (FlxG.save.data.downscroll && sustainNote)
|
if (FlxG.save.data.downscroll && sustainNote)
|
||||||
flipY = true;
|
flipY = true;
|
||||||
|
|
||||||
|
@ -92,10 +92,7 @@ class OptionsMenu extends MusicBeatState
|
|||||||
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
|
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
|
||||||
menuBG.updateHitbox();
|
menuBG.updateHitbox();
|
||||||
menuBG.screenCenter();
|
menuBG.screenCenter();
|
||||||
if(FlxG.save.data.antialiasing)
|
menuBG.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
menuBG.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(menuBG);
|
add(menuBG);
|
||||||
|
|
||||||
grpControls = new FlxTypedGroup<Alphabet>();
|
grpControls = new FlxTypedGroup<Alphabet>();
|
||||||
|
@ -32,10 +32,7 @@ class OutdatedSubState extends MusicBeatState
|
|||||||
bg.scale.x *= 1.55;
|
bg.scale.x *= 1.55;
|
||||||
bg.scale.y *= 1.55;
|
bg.scale.y *= 1.55;
|
||||||
bg.screenCenter();
|
bg.screenCenter();
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
var kadeLogo:FlxSprite = new FlxSprite(FlxG.width, 0).loadGraphic(Paths.image('KadeEngineLogo'));
|
var kadeLogo:FlxSprite = new FlxSprite(FlxG.width, 0).loadGraphic(Paths.image('KadeEngineLogo'));
|
||||||
@ -44,10 +41,7 @@ class OutdatedSubState extends MusicBeatState
|
|||||||
kadeLogo.x -= kadeLogo.frameHeight;
|
kadeLogo.x -= kadeLogo.frameHeight;
|
||||||
kadeLogo.y -= 180;
|
kadeLogo.y -= 180;
|
||||||
kadeLogo.alpha = 0.8;
|
kadeLogo.alpha = 0.8;
|
||||||
if(FlxG.save.data.antialiasing)
|
kadeLogo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
kadeLogo.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(kadeLogo);
|
add(kadeLogo);
|
||||||
|
|
||||||
var txt:FlxText = new FlxText(0, 0, FlxG.width,
|
var txt:FlxText = new FlxText(0, 0, FlxG.width,
|
||||||
|
@ -535,10 +535,7 @@ class PlayState extends MusicBeatState
|
|||||||
halloweenBG.animation.addByPrefix('idle', 'halloweem bg0');
|
halloweenBG.animation.addByPrefix('idle', 'halloweem bg0');
|
||||||
halloweenBG.animation.addByPrefix('lightning', 'halloweem bg lightning strike', 24, false);
|
halloweenBG.animation.addByPrefix('lightning', 'halloweem bg lightning strike', 24, false);
|
||||||
halloweenBG.animation.play('idle');
|
halloweenBG.animation.play('idle');
|
||||||
if(FlxG.save.data.antialiasing)
|
halloweenBG.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
halloweenBG.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(halloweenBG);
|
add(halloweenBG);
|
||||||
|
|
||||||
isHalloween = true;
|
isHalloween = true;
|
||||||
@ -570,10 +567,7 @@ class PlayState extends MusicBeatState
|
|||||||
light.visible = false;
|
light.visible = false;
|
||||||
light.setGraphicSize(Std.int(light.width * 0.85));
|
light.setGraphicSize(Std.int(light.width * 0.85));
|
||||||
light.updateHitbox();
|
light.updateHitbox();
|
||||||
if(FlxG.save.data.antialiasing)
|
light.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
light.antialiasing = true;
|
|
||||||
}
|
|
||||||
phillyCityLights.add(light);
|
phillyCityLights.add(light);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -601,6 +595,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset', 'week4'));
|
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset', 'week4'));
|
||||||
skyBG.scrollFactor.set(0.1, 0.1);
|
skyBG.scrollFactor.set(0.1, 0.1);
|
||||||
|
skyBG.antialiasing = FlxG.save.data.antialiasing;
|
||||||
add(skyBG);
|
add(skyBG);
|
||||||
|
|
||||||
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
|
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
|
||||||
@ -608,6 +603,7 @@ class PlayState extends MusicBeatState
|
|||||||
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
|
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
|
||||||
bgLimo.animation.play('drive');
|
bgLimo.animation.play('drive');
|
||||||
bgLimo.scrollFactor.set(0.4, 0.4);
|
bgLimo.scrollFactor.set(0.4, 0.4);
|
||||||
|
bgLimo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
add(bgLimo);
|
add(bgLimo);
|
||||||
if (FlxG.save.data.distractions)
|
if (FlxG.save.data.distractions)
|
||||||
{
|
{
|
||||||
@ -638,12 +634,10 @@ class PlayState extends MusicBeatState
|
|||||||
limo.frames = limoTex;
|
limo.frames = limoTex;
|
||||||
limo.animation.addByPrefix('drive', "Limo stage", 24);
|
limo.animation.addByPrefix('drive', "Limo stage", 24);
|
||||||
limo.animation.play('drive');
|
limo.animation.play('drive');
|
||||||
if(FlxG.save.data.antialiasing)
|
limo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
limo.antialiasing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol', 'week4'));
|
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol', 'week4'));
|
||||||
|
fastCar.antialiasing = FlxG.save.data.antialiasing;
|
||||||
// add(limo);
|
// add(limo);
|
||||||
}
|
}
|
||||||
case 'mall':
|
case 'mall':
|
||||||
@ -653,10 +647,7 @@ class PlayState extends MusicBeatState
|
|||||||
defaultCamZoom = 0.80;
|
defaultCamZoom = 0.80;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls', 'week5'));
|
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls', 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
bg.scrollFactor.set(0.2, 0.2);
|
bg.scrollFactor.set(0.2, 0.2);
|
||||||
bg.active = false;
|
bg.active = false;
|
||||||
bg.setGraphicSize(Std.int(bg.width * 0.8));
|
bg.setGraphicSize(Std.int(bg.width * 0.8));
|
||||||
@ -666,10 +657,7 @@ class PlayState extends MusicBeatState
|
|||||||
upperBoppers = new FlxSprite(-240, -90);
|
upperBoppers = new FlxSprite(-240, -90);
|
||||||
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop', 'week5');
|
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop', 'week5');
|
||||||
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
|
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
|
||||||
if(FlxG.save.data.antialiasing)
|
upperBoppers.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
upperBoppers.antialiasing = true;
|
|
||||||
}
|
|
||||||
upperBoppers.scrollFactor.set(0.33, 0.33);
|
upperBoppers.scrollFactor.set(0.33, 0.33);
|
||||||
upperBoppers.setGraphicSize(Std.int(upperBoppers.width * 0.85));
|
upperBoppers.setGraphicSize(Std.int(upperBoppers.width * 0.85));
|
||||||
upperBoppers.updateHitbox();
|
upperBoppers.updateHitbox();
|
||||||
@ -679,10 +667,7 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
|
|
||||||
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator', 'week5'));
|
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator', 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bgEscalator.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bgEscalator.antialiasing = true;
|
|
||||||
}
|
|
||||||
bgEscalator.scrollFactor.set(0.3, 0.3);
|
bgEscalator.scrollFactor.set(0.3, 0.3);
|
||||||
bgEscalator.active = false;
|
bgEscalator.active = false;
|
||||||
bgEscalator.setGraphicSize(Std.int(bgEscalator.width * 0.9));
|
bgEscalator.setGraphicSize(Std.int(bgEscalator.width * 0.9));
|
||||||
@ -690,20 +675,14 @@ class PlayState extends MusicBeatState
|
|||||||
add(bgEscalator);
|
add(bgEscalator);
|
||||||
|
|
||||||
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree', 'week5'));
|
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree', 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
tree.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
tree.antialiasing = true;
|
|
||||||
}
|
|
||||||
tree.scrollFactor.set(0.40, 0.40);
|
tree.scrollFactor.set(0.40, 0.40);
|
||||||
add(tree);
|
add(tree);
|
||||||
|
|
||||||
bottomBoppers = new FlxSprite(-300, 140);
|
bottomBoppers = new FlxSprite(-300, 140);
|
||||||
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop', 'week5');
|
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop', 'week5');
|
||||||
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
|
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
|
||||||
if(FlxG.save.data.antialiasing)
|
bottomBoppers.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bottomBoppers.antialiasing = true;
|
|
||||||
}
|
|
||||||
bottomBoppers.scrollFactor.set(0.9, 0.9);
|
bottomBoppers.scrollFactor.set(0.9, 0.9);
|
||||||
bottomBoppers.setGraphicSize(Std.int(bottomBoppers.width * 1));
|
bottomBoppers.setGraphicSize(Std.int(bottomBoppers.width * 1));
|
||||||
bottomBoppers.updateHitbox();
|
bottomBoppers.updateHitbox();
|
||||||
@ -714,19 +693,13 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow', 'week5'));
|
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow', 'week5'));
|
||||||
fgSnow.active = false;
|
fgSnow.active = false;
|
||||||
if(FlxG.save.data.antialiasing)
|
fgSnow.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
fgSnow.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(fgSnow);
|
add(fgSnow);
|
||||||
|
|
||||||
santa = new FlxSprite(-840, 150);
|
santa = new FlxSprite(-840, 150);
|
||||||
santa.frames = Paths.getSparrowAtlas('christmas/santa', 'week5');
|
santa.frames = Paths.getSparrowAtlas('christmas/santa', 'week5');
|
||||||
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
|
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
|
||||||
if(FlxG.save.data.antialiasing)
|
santa.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
santa.antialiasing = true;
|
|
||||||
}
|
|
||||||
if (FlxG.save.data.distractions)
|
if (FlxG.save.data.distractions)
|
||||||
{
|
{
|
||||||
add(santa);
|
add(santa);
|
||||||
@ -736,10 +709,7 @@ class PlayState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
curStage = 'mallEvil';
|
curStage = 'mallEvil';
|
||||||
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG', 'week5'));
|
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG', 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
bg.scrollFactor.set(0.2, 0.2);
|
bg.scrollFactor.set(0.2, 0.2);
|
||||||
bg.active = false;
|
bg.active = false;
|
||||||
bg.setGraphicSize(Std.int(bg.width * 0.8));
|
bg.setGraphicSize(Std.int(bg.width * 0.8));
|
||||||
@ -747,18 +717,12 @@ class PlayState extends MusicBeatState
|
|||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree', 'week5'));
|
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree', 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
evilTree.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
evilTree.antialiasing = true;
|
|
||||||
}
|
|
||||||
evilTree.scrollFactor.set(0.2, 0.2);
|
evilTree.scrollFactor.set(0.2, 0.2);
|
||||||
add(evilTree);
|
add(evilTree);
|
||||||
|
|
||||||
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow", 'week5'));
|
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow", 'week5'));
|
||||||
if(FlxG.save.data.antialiasing)
|
evilSnow.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
evilSnow.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(evilSnow);
|
add(evilSnow);
|
||||||
}
|
}
|
||||||
case 'school':
|
case 'school':
|
||||||
@ -898,10 +862,7 @@ class PlayState extends MusicBeatState
|
|||||||
defaultCamZoom = 0.9;
|
defaultCamZoom = 0.9;
|
||||||
curStage = 'stage';
|
curStage = 'stage';
|
||||||
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback'));
|
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback'));
|
||||||
if(FlxG.save.data.antialiasing)
|
bg.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
bg.antialiasing = true;
|
|
||||||
}
|
|
||||||
bg.scrollFactor.set(0.9, 0.9);
|
bg.scrollFactor.set(0.9, 0.9);
|
||||||
bg.active = false;
|
bg.active = false;
|
||||||
add(bg);
|
add(bg);
|
||||||
@ -909,10 +870,7 @@ class PlayState extends MusicBeatState
|
|||||||
var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront'));
|
var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront'));
|
||||||
stageFront.setGraphicSize(Std.int(stageFront.width * 1.1));
|
stageFront.setGraphicSize(Std.int(stageFront.width * 1.1));
|
||||||
stageFront.updateHitbox();
|
stageFront.updateHitbox();
|
||||||
if(FlxG.save.data.antialiasing)
|
stageFront.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
stageFront.antialiasing = true;
|
|
||||||
}
|
|
||||||
stageFront.scrollFactor.set(0.9, 0.9);
|
stageFront.scrollFactor.set(0.9, 0.9);
|
||||||
stageFront.active = false;
|
stageFront.active = false;
|
||||||
add(stageFront);
|
add(stageFront);
|
||||||
@ -920,10 +878,7 @@ class PlayState extends MusicBeatState
|
|||||||
var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains'));
|
var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains'));
|
||||||
stageCurtains.setGraphicSize(Std.int(stageCurtains.width * 0.9));
|
stageCurtains.setGraphicSize(Std.int(stageCurtains.width * 0.9));
|
||||||
stageCurtains.updateHitbox();
|
stageCurtains.updateHitbox();
|
||||||
if(FlxG.save.data.antialiasing)
|
stageCurtains.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
stageCurtains.antialiasing = true;
|
|
||||||
}
|
|
||||||
stageCurtains.scrollFactor.set(1.3, 1.3);
|
stageCurtains.scrollFactor.set(1.3, 1.3);
|
||||||
stageCurtains.active = false;
|
stageCurtains.active = false;
|
||||||
|
|
||||||
@ -2077,10 +2032,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
babyArrow.x += Note.swagWidth * i;
|
babyArrow.x += Note.swagWidth * i;
|
||||||
|
|
||||||
if(FlxG.save.data.antialiasing)
|
babyArrow.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
babyArrow.antialiasing = true;
|
|
||||||
}
|
|
||||||
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3603,15 +3555,9 @@ class PlayState extends MusicBeatState
|
|||||||
if (!curStage.startsWith('school'))
|
if (!curStage.startsWith('school'))
|
||||||
{
|
{
|
||||||
rating.setGraphicSize(Std.int(rating.width * 0.7));
|
rating.setGraphicSize(Std.int(rating.width * 0.7));
|
||||||
if(FlxG.save.data.antialiasing)
|
rating.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
rating.antialiasing = true;
|
|
||||||
}
|
|
||||||
comboSpr.setGraphicSize(Std.int(comboSpr.width * 0.7));
|
comboSpr.setGraphicSize(Std.int(comboSpr.width * 0.7));
|
||||||
if(FlxG.save.data.antialiasing)
|
comboSpr.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
comboSpr.antialiasing = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -3660,10 +3606,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
if (!curStage.startsWith('school'))
|
if (!curStage.startsWith('school'))
|
||||||
{
|
{
|
||||||
if(FlxG.save.data.antialiasing)
|
numScore.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
numScore.antialiasing = true;
|
|
||||||
}
|
|
||||||
numScore.setGraphicSize(Std.int(numScore.width * 0.5));
|
numScore.setGraphicSize(Std.int(numScore.width * 0.5));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -146,10 +146,7 @@ class StoryMenuState extends MusicBeatState
|
|||||||
grpWeekText.add(weekThing);
|
grpWeekText.add(weekThing);
|
||||||
|
|
||||||
weekThing.screenCenter(X);
|
weekThing.screenCenter(X);
|
||||||
if(FlxG.save.data.antialiasing)
|
weekThing.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
weekThing.antialiasing = true;
|
|
||||||
}
|
|
||||||
// weekThing.updateHitbox();
|
// weekThing.updateHitbox();
|
||||||
|
|
||||||
// Needs an offset thingie
|
// Needs an offset thingie
|
||||||
@ -161,10 +158,7 @@ class StoryMenuState extends MusicBeatState
|
|||||||
lock.animation.addByPrefix('lock', 'lock');
|
lock.animation.addByPrefix('lock', 'lock');
|
||||||
lock.animation.play('lock');
|
lock.animation.play('lock');
|
||||||
lock.ID = i;
|
lock.ID = i;
|
||||||
if(FlxG.save.data.antialiasing)
|
lock.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
lock.antialiasing = true;
|
|
||||||
}
|
|
||||||
grpLocks.add(lock);
|
grpLocks.add(lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ class TitleState extends MusicBeatState
|
|||||||
persistentUpdate = true;
|
persistentUpdate = true;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
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.setGraphicSize(Std.int(bg.width * 0.6));
|
||||||
// bg.updateHitbox();
|
// bg.updateHitbox();
|
||||||
add(bg);
|
add(bg);
|
||||||
@ -134,10 +134,7 @@ class TitleState extends MusicBeatState
|
|||||||
logoBl = new FlxSprite(-150, -100);
|
logoBl = new FlxSprite(-150, -100);
|
||||||
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
|
logoBl.frames = Paths.getSparrowAtlas('logoBumpin');
|
||||||
}
|
}
|
||||||
if(FlxG.save.data.antialiasing)
|
logoBl.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
logoBl.antialiasing = true;
|
|
||||||
}
|
|
||||||
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false);
|
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false);
|
||||||
logoBl.updateHitbox();
|
logoBl.updateHitbox();
|
||||||
// logoBl.screenCenter();
|
// logoBl.screenCenter();
|
||||||
@ -147,10 +144,7 @@ class TitleState extends MusicBeatState
|
|||||||
gfDance.frames = Paths.getSparrowAtlas('gfDanceTitle');
|
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('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);
|
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 = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
gfDance.antialiasing = true;
|
|
||||||
}
|
|
||||||
add(gfDance);
|
add(gfDance);
|
||||||
add(logoBl);
|
add(logoBl);
|
||||||
|
|
||||||
@ -158,10 +152,7 @@ class TitleState extends MusicBeatState
|
|||||||
titleText.frames = Paths.getSparrowAtlas('titleEnter');
|
titleText.frames = Paths.getSparrowAtlas('titleEnter');
|
||||||
titleText.animation.addByPrefix('idle', "Press Enter to Begin", 24);
|
titleText.animation.addByPrefix('idle', "Press Enter to Begin", 24);
|
||||||
titleText.animation.addByPrefix('press', "ENTER PRESSED", 24);
|
titleText.animation.addByPrefix('press', "ENTER PRESSED", 24);
|
||||||
if(FlxG.save.data.antialiasing)
|
titleText.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
titleText.antialiasing = true;
|
|
||||||
}
|
|
||||||
titleText.animation.play('idle');
|
titleText.animation.play('idle');
|
||||||
titleText.updateHitbox();
|
titleText.updateHitbox();
|
||||||
// titleText.screenCenter(X);
|
// titleText.screenCenter(X);
|
||||||
@ -169,10 +160,7 @@ class TitleState extends MusicBeatState
|
|||||||
|
|
||||||
var logo:FlxSprite = new FlxSprite().loadGraphic(Paths.image('logo'));
|
var logo:FlxSprite = new FlxSprite().loadGraphic(Paths.image('logo'));
|
||||||
logo.screenCenter();
|
logo.screenCenter();
|
||||||
if(FlxG.save.data.antialiasing)
|
logo.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
logo.antialiasing = true;
|
|
||||||
}
|
|
||||||
// add(logo);
|
// add(logo);
|
||||||
|
|
||||||
// FlxTween.tween(logoBl, {y: logoBl.y + 50}, 0.6, {ease: FlxEase.quadInOut, type: PINGPONG});
|
// 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.setGraphicSize(Std.int(ngSpr.width * 0.8));
|
||||||
ngSpr.updateHitbox();
|
ngSpr.updateHitbox();
|
||||||
ngSpr.screenCenter(X);
|
ngSpr.screenCenter(X);
|
||||||
if(FlxG.save.data.antialiasing)
|
ngSpr.antialiasing = FlxG.save.data.antialiasing;
|
||||||
{
|
|
||||||
ngSpr.antialiasing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG});
|
FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user