character loading is fixed

This commit is contained in:
KadeDev 2021-04-16 02:53:38 -07:00
parent a0d8d26c4a
commit 8d5d6f6e39
2 changed files with 18 additions and 18 deletions

View File

@ -63,7 +63,7 @@ class Character extends FlxSprite
playAnim('danceRight');
case 'gf-christmas':
tex = Paths.getSparrowAtlas('christmas/gfChristmas');
tex = Paths.getSparrowAtlas('christmas/gfChristmas','week5');
frames = tex;
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
@ -94,7 +94,7 @@ class Character extends FlxSprite
playAnim('danceRight');
case 'gf-car':
tex = Paths.getSparrowAtlas('gfCar');
tex = Paths.getSparrowAtlas('gfCar','week4');
frames = tex;
animation.addByIndices('singUP', 'GF Dancing Beat Hair blowing CAR', [0], "", 24, false);
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
@ -107,7 +107,7 @@ class Character extends FlxSprite
playAnim('danceRight');
case 'gf-pixel':
tex = Paths.getSparrowAtlas('weeb/gfPixel');
tex = Paths.getSparrowAtlas('weeb/gfPixel','week6');
frames = tex;
animation.addByIndices('singUP', 'GF IDLE', [2], "", 24, false);
animation.addByIndices('danceLeft', 'GF IDLE', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
@ -140,7 +140,7 @@ class Character extends FlxSprite
playAnim('idle');
case 'spooky':
tex = Paths.getSparrowAtlas('spooky_kids_assets');
tex = Paths.getSparrowAtlas('spooky_kids_assets','week2');
frames = tex;
animation.addByPrefix('singUP', 'spooky UP NOTE', 24, false);
animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false);
@ -159,7 +159,7 @@ class Character extends FlxSprite
playAnim('danceRight');
case 'mom':
tex = Paths.getSparrowAtlas('Mom_Assets');
tex = Paths.getSparrowAtlas('Mom_Assets','week4');
frames = tex;
animation.addByPrefix('idle', "Mom Idle", 24, false);
@ -179,7 +179,7 @@ class Character extends FlxSprite
playAnim('idle');
case 'mom-car':
tex = Paths.getSparrowAtlas('momCar');
tex = Paths.getSparrowAtlas('momCar','week4');
frames = tex;
animation.addByPrefix('idle', "Mom Idle", 24, false);
@ -198,7 +198,7 @@ class Character extends FlxSprite
playAnim('idle');
case 'monster':
tex = Paths.getSparrowAtlas('Monster_Assets');
tex = Paths.getSparrowAtlas('Monster_Assets','week2');
frames = tex;
animation.addByPrefix('idle', 'monster idle', 24, false);
animation.addByPrefix('singUP', 'monster up note', 24, false);
@ -213,7 +213,7 @@ class Character extends FlxSprite
addOffset("singDOWN", -30, -40);
playAnim('idle');
case 'monster-christmas':
tex = Paths.getSparrowAtlas('christmas/monsterChristmas');
tex = Paths.getSparrowAtlas('christmas/monsterChristmas','week5');
frames = tex;
animation.addByPrefix('idle', 'monster idle', 24, false);
animation.addByPrefix('singUP', 'monster up note', 24, false);
@ -228,7 +228,7 @@ class Character extends FlxSprite
addOffset("singDOWN", -40, -94);
playAnim('idle');
case 'pico':
tex = Paths.getSparrowAtlas('Pico_FNF_assetss');
tex = Paths.getSparrowAtlas('Pico_FNF_assetss','week3');
frames = tex;
animation.addByPrefix('idle', "Pico Idle Dance", 24);
animation.addByPrefix('singUP', 'pico Up note0', 24, false);
@ -306,7 +306,7 @@ class Character extends FlxSprite
flipX = true;
case 'bf-christmas':
var tex = Paths.getSparrowAtlas('christmas/bfChristmas');
var tex = Paths.getSparrowAtlas('christmas/bfChristmas','week5');
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
@ -334,7 +334,7 @@ class Character extends FlxSprite
flipX = true;
case 'bf-car':
var tex = Paths.getSparrowAtlas('bfCar');
var tex = Paths.getSparrowAtlas('bfCar','week4');
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
@ -359,7 +359,7 @@ class Character extends FlxSprite
flipX = true;
case 'bf-pixel':
frames = Paths.getSparrowAtlas('weeb/bfPixel');
frames = Paths.getSparrowAtlas('weeb/bfPixel','week6');
animation.addByPrefix('idle', 'BF IDLE', 24, false);
animation.addByPrefix('singUP', 'BF UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'BF LEFT NOTE', 24, false);
@ -392,7 +392,7 @@ class Character extends FlxSprite
flipX = true;
case 'bf-pixel-dead':
frames = Paths.getSparrowAtlas('weeb/bfPixelsDEAD');
frames = Paths.getSparrowAtlas('weeb/bfPixelsDEAD','week6');
animation.addByPrefix('singUP', "BF Dies pixel", 24, false);
animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false);
animation.addByPrefix('deathLoop', "Retry Loop", 24, true);
@ -410,7 +410,7 @@ class Character extends FlxSprite
flipX = true;
case 'senpai':
frames = Paths.getSparrowAtlas('weeb/senpai');
frames = Paths.getSparrowAtlas('weeb/senpai','week6');
animation.addByPrefix('idle', 'Senpai Idle', 24, false);
animation.addByPrefix('singUP', 'SENPAI UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'SENPAI LEFT NOTE', 24, false);
@ -430,7 +430,7 @@ class Character extends FlxSprite
antialiasing = false;
case 'senpai-angry':
frames = Paths.getSparrowAtlas('weeb/senpai');
frames = Paths.getSparrowAtlas('weeb/senpai','week6');
animation.addByPrefix('idle', 'Angry Senpai Idle', 24, false);
animation.addByPrefix('singUP', 'Angry Senpai UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'Angry Senpai LEFT NOTE', 24, false);
@ -450,7 +450,7 @@ class Character extends FlxSprite
antialiasing = false;
case 'spirit':
frames = Paths.getPackerAtlas('weeb/spirit');
frames = Paths.getPackerAtlas('weeb/spirit','week6');
animation.addByPrefix('idle', "idle spirit_", 24, false);
animation.addByPrefix('singUP', "up_", 24, false);
animation.addByPrefix('singRIGHT', "right_", 24, false);
@ -471,7 +471,7 @@ class Character extends FlxSprite
antialiasing = false;
case 'parents-christmas':
frames = Paths.getSparrowAtlas('christmas/mom_dad_christmas_assets');
frames = Paths.getSparrowAtlas('christmas/mom_dad_christmas_assets','week5');
animation.addByPrefix('idle', 'Parent Christmas Idle', 24, false);
animation.addByPrefix('singUP', 'Parent Up Note Dad', 24, false);
animation.addByPrefix('singDOWN', 'Parent Down Note Dad', 24, false);

View File

@ -66,7 +66,7 @@ class TitleState extends MusicBeatState
PlayerSettings.init();
#if windows
#if desktop
DiscordClient.initialize();
Application.current.onExit.add (function (exitCode) {