Advertisement
Pinacoin

Code backup 2

Apr 13th, 2021
2,124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 2.45 KB | None | 0 0
  1. portraitLeft = new FlxSprite(-20, 40);
  2.         portraitLeft.frames = Paths.getSparrowAtlas('rockconcert/punkPort');
  3.         portraitLeft.animation.addByPrefix('enter', 'Punk Girl Portrait', 24, false);
  4.         portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9));
  5.         portraitLeft.updateHitbox();
  6.         portraitLeft.scrollFactor.set();
  7.         add(portraitLeft);
  8.         portraitLeft.visible = false;
  9.  
  10.         portraitRight = new FlxSprite(0, 40);
  11.         portraitRight.frames = Paths.getSparrowAtlas('rockconcert/boyfriendPort');
  12.         portraitRight.animation.addByPrefix('enter', 'BF Portrait Enter instance', 24, false);
  13.         portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9));
  14.         portraitRight.updateHitbox();
  15.         portraitRight.scrollFactor.set();
  16.         add(portraitRight);
  17.         portraitRight.visible = false;
  18.  
  19. case 'take-back':
  20.                 FlxG.sound.playMusic(Paths.music('Thwok'), 0);
  21.                 FlxG.sound.music.fadeIn(1, 0, 0.8);
  22.             case 'rocket':
  23.                 FlxG.sound.playMusic(Paths.music('Thwok'), 0);
  24.                 FlxG.sound.music.fadeIn(1, 0, 0.8);
  25.             case 'hope-seeker':
  26.                 FlxG.sound.playMusic(Paths.music('Thwok'), 0);
  27.                 FlxG.sound.music.fadeIn(1, 0, 0.8);
  28.  
  29. case 'take-back':
  30.                 hasDialog = true;
  31.                 box.frames = Paths.getSparrowAtlas('shared/images/speech_bubble_talking');
  32.                 box.animation.addByPrefix('normalOpen', 'Speech Bubble Normal Open', 24, false);
  33.                 box.animation.addByIndices('normal', 'Speech Bubble Normal Open', [4], "", 24);
  34.            
  35.             case 'rocket':
  36.                 hasDialog = true;
  37.                 box.frames = Paths.getSparrowAtlas('shared/images/speech_bubble_talking');
  38.                 box.animation.addByPrefix('normalOpen', 'Speech Bubble Normal Open', 24, false);
  39.                 box.animation.addByIndices('normal', 'Speech Bubble Normal Open', [4], "", 24);
  40.  
  41.             case 'hope-seeker':
  42.                 hasDialog = true;
  43.                 box.frames = Paths.getSparrowAtlas('shared/images/speech_bubble_talking');
  44.                 box.animation.addByPrefix('normalOpen', 'Speech Bubble Normal Open', 24, false);
  45.                 box.animation.addByIndices('normal', 'Speech Bubble Normal Open', [4], "", 24);
  46.  
  47. case 'take-back':
  48.                 dialogue = CoolUtil.coolTextFile(Paths.txt('take-back/takeDialogue'));
  49.             case 'rocket':
  50.                 dialogue = CoolUtil.coolTextFile(Paths.txt('rocket/rocketDialogue'));
  51.             case 'hope-seeker':
  52.                 dialogue = CoolUtil.coolTextFile(Paths.txt('hope-seeker/hopeDialogue'));
  53.  
  54.                 case 'take-back':
  55.                     schoolIntro(doof);
  56.                 case 'rocket':
  57.                     schoolIntro(doof);
  58.                 case 'hope-seeker':
  59.                     schoolIntro(doof);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement