mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-17 20:32:53 +00:00
Use haxe switch case 'or'
This commit is contained in:
parent
dc815ae7aa
commit
201556e09b
|
@ -1084,44 +1084,7 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
switch (curStage)
|
switch (curStage)
|
||||||
{
|
{
|
||||||
case 'school':
|
case 'school' | 'schoolEvil':
|
||||||
babyArrow.loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17);
|
|
||||||
babyArrow.animation.add('green', [6]);
|
|
||||||
babyArrow.animation.add('red', [7]);
|
|
||||||
babyArrow.animation.add('blue', [5]);
|
|
||||||
babyArrow.animation.add('purplel', [4]);
|
|
||||||
|
|
||||||
babyArrow.setGraphicSize(Std.int(babyArrow.width * daPixelZoom));
|
|
||||||
babyArrow.updateHitbox();
|
|
||||||
babyArrow.antialiasing = false;
|
|
||||||
|
|
||||||
switch (Math.abs(i))
|
|
||||||
{
|
|
||||||
case 2:
|
|
||||||
babyArrow.x += Note.swagWidth * 2;
|
|
||||||
babyArrow.animation.add('static', [2]);
|
|
||||||
babyArrow.animation.add('pressed', [6, 10], 12, false);
|
|
||||||
babyArrow.animation.add('confirm', [14, 18], 12, false);
|
|
||||||
case 3:
|
|
||||||
babyArrow.x += Note.swagWidth * 3;
|
|
||||||
babyArrow.animation.add('static', [3]);
|
|
||||||
babyArrow.animation.add('pressed', [7, 11], 12, false);
|
|
||||||
babyArrow.animation.add('confirm', [15, 19], 24, false);
|
|
||||||
case 1:
|
|
||||||
babyArrow.x += Note.swagWidth * 1;
|
|
||||||
babyArrow.animation.add('static', [1]);
|
|
||||||
babyArrow.animation.add('pressed', [5, 9], 12, false);
|
|
||||||
babyArrow.animation.add('confirm', [13, 17], 24, false);
|
|
||||||
case 0:
|
|
||||||
babyArrow.x += Note.swagWidth * 0;
|
|
||||||
babyArrow.animation.add('static', [0]);
|
|
||||||
babyArrow.animation.add('pressed', [4, 8], 12, false);
|
|
||||||
babyArrow.animation.add('confirm', [12, 16], 24, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
case 'schoolEvil':
|
|
||||||
// ALL THIS IS COPY PASTED CUZ IM LAZY
|
|
||||||
|
|
||||||
babyArrow.loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17);
|
babyArrow.loadGraphic('assets/images/weeb/pixelUI/arrows-pixels.png', true, 17, 17);
|
||||||
babyArrow.animation.add('green', [6]);
|
babyArrow.animation.add('green', [6]);
|
||||||
babyArrow.animation.add('red', [7]);
|
babyArrow.animation.add('red', [7]);
|
||||||
|
|
Loading…
Reference in a new issue