Merge pull request #1039 from KadeDev/stable

STOP MERGING INTO STABLE!!!!!!
This commit is contained in:
Puyo 2021-06-26 11:11:26 +02:00 committed by GitHub
commit 84d7b68af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 190 additions and 147 deletions

View File

@ -9,7 +9,7 @@ install:
- cd /home/appveyor - cd /home/appveyor
- sudo add-apt-repository ppa:haxe/releases -y - sudo add-apt-repository ppa:haxe/releases -y
- sudo apt update - sudo apt update
- sudo apt install neko tar -y - sudo apt install neko tar gcc-multilib g++-multilib -y
- wget https://github.com/HaxeFoundation/haxe/releases/download/4.1.5/haxe-4.1.5-linux64.tar.gz - wget https://github.com/HaxeFoundation/haxe/releases/download/4.1.5/haxe-4.1.5-linux64.tar.gz
- mkdir $HAXE_INSTALLDIR - mkdir $HAXE_INSTALLDIR
- tar -xf haxe-4.1.5-linux64.tar.gz -C $HAXE_INSTALLDIR - tar -xf haxe-4.1.5-linux64.tar.gz -C $HAXE_INSTALLDIR
@ -32,7 +32,6 @@ install:
- haxelib run lime rebuild extension-webm linux - haxelib run lime rebuild extension-webm linux
- haxelib install linc_luajit - haxelib install linc_luajit
- haxelib install actuate - haxelib install actuate
- haxelib git extension-webm https://github.com/KadeDev/extension-webm
- haxelib list - haxelib list
- cd /home/appveyor/projects/kade-engine-linux - cd /home/appveyor/projects/kade-engine-linux

Binary file not shown.

Before

Width:  |  Height:  |  Size: 700 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

@ -1,53 +1,92 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="NOTE_assets.png"> <TextureAtlas imagePath="NOTE_assets.png">
<!-- Created with Adobe Animate version 20.0.0.17400 --> <!-- Created with Adobe Animate version 21.0.0.35450 -->
<!-- http://www.adobe.com/products/animate.html --> <!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="arrowDOWN0000" x="0" y="235" width="157" height="153"/> <SubTexture name="arrow static instance 10000" x="488" y="238" width="155" height="158"/>
<SubTexture name="arrowLEFT0000" x="310" y="235" width="153" height="157"/> <SubTexture name="arrow static instance 20000" x="647" y="238" width="157" height="155"/>
<SubTexture name="arrowRIGHT0000" x="157" y="235" width="153" height="157"/> <SubTexture name="arrow static instance 30000" x="808" y="238" width="155" height="157"/>
<SubTexture name="arrowUP0000" x="784" y="232" width="157" height="153"/> <SubTexture name="arrow static instance 40000" x="323" y="240" width="157" height="154"/>
<SubTexture name="blue0000" x="1850" y="154" width="157" height="154"/> <SubTexture name="blue hold end instance 10000" x="1062" y="452" width="51" height="64"/>
<SubTexture name="blue hold end0000" x="1170" y="447" width="50" height="64"/> <SubTexture name="blue hold piece instance 10000" x="1282" y="457" width="51" height="44"/>
<SubTexture name="blue hold piece0000" x="1370" y="449" width="50" height="44"/> <SubTexture name="blue instance 10000" x="0" y="240" width="158" height="154"/>
<SubTexture name="down confirm0000" x="0" y="0" width="238" height="235"/> <SubTexture name="down confirm instance 10000" x="0" y="0" width="240" height="236"/>
<SubTexture name="down confirm0001" x="238" y="0" width="238" height="235"/> <SubTexture name="down confirm instance 10001" x="244" y="0" width="240" height="236"/>
<SubTexture name="down confirm0002" x="1176" y="230" width="219" height="208" frameX="-6" frameY="-12" frameWidth="238" frameHeight="235"/> <SubTexture name="down confirm instance 10002" x="1206" y="235" width="221" height="218" frameX="-6" frameY="-12" frameWidth="240" frameHeight="236"/>
<SubTexture name="down confirm0003" x="1176" y="230" width="219" height="208" frameX="-6" frameY="-12" frameWidth="238" frameHeight="235"/> <SubTexture name="down confirm instance 10003" x="1206" y="235" width="221" height="218" frameX="-6" frameY="-12" frameWidth="240" frameHeight="236"/>
<SubTexture name="down press0000" x="149" y="392" width="142" height="140" frameX="-4" frameY="-2" frameWidth="149" frameHeight="146"/> <SubTexture name="down press instance 10000" x="805" y="399" width="143" height="139" frameX="-4" frameY="-3" frameWidth="150" frameHeight="146"/>
<SubTexture name="down press0001" x="149" y="392" width="142" height="140" frameX="-4" frameY="-2" frameWidth="149" frameHeight="146"/> <SubTexture name="down press instance 10001" x="805" y="399" width="143" height="139" frameX="-4" frameY="-3" frameWidth="150" frameHeight="146"/>
<SubTexture name="down press0002" x="0" y="388" width="149" height="146"/> <SubTexture name="down press instance 10002" x="1898" y="0" width="150" height="146"/>
<SubTexture name="down press0003" x="0" y="388" width="149" height="146"/> <SubTexture name="down press instance 10003" x="1898" y="0" width="150" height="146"/>
<SubTexture name="green0000" x="1850" y="0" width="157" height="154"/> <SubTexture name="green hold end instance 10000" x="1007" y="452" width="51" height="64"/>
<SubTexture name="green hold end0000" x="1120" y="442" width="50" height="64"/> <SubTexture name="green hold piece instance 10000" x="1227" y="457" width="51" height="44"/>
<SubTexture name="green hold piece0000" x="1320" y="447" width="50" height="44"/> <SubTexture name="green instance 10000" x="162" y="240" width="157" height="154"/>
<SubTexture name="left confirm0000" x="948" y="0" width="228" height="231"/> <SubTexture name="left confirm instance 10000" x="972" y="0" width="230" height="232"/>
<SubTexture name="left confirm0001" x="1402" y="228" width="218" height="221" frameX="-5" frameY="-5" frameWidth="228" frameHeight="231"/> <SubTexture name="left confirm instance 10001" x="1438" y="233" width="220" height="222" frameX="-5" frameY="-5" frameWidth="230" frameHeight="232"/>
<SubTexture name="left confirm0002" x="1402" y="0" width="225" height="221" frameX="-2" frameY="-1" frameWidth="228" frameHeight="231"/> <SubTexture name="left confirm instance 10002" x="1438" y="0" width="227" height="229" frameX="-2" frameY="-1" frameWidth="230" frameHeight="232"/>
<SubTexture name="left confirm0003" x="1402" y="0" width="225" height="221" frameX="-2" frameY="-1" frameWidth="228" frameHeight="231"/> <SubTexture name="left confirm instance 10003" x="1438" y="0" width="227" height="229" frameX="-2" frameY="-1" frameWidth="230" frameHeight="232"/>
<SubTexture name="left press0000" x="291" y="392" width="140" height="142" frameX="-3" frameY="-3" frameWidth="146" frameHeight="149"/> <SubTexture name="left press instance 10000" x="1898" y="449" width="139" height="142" frameX="-4" frameY="-3" frameWidth="146" frameHeight="149"/>
<SubTexture name="left press0001" x="291" y="392" width="140" height="142" frameX="-3" frameY="-3" frameWidth="146" frameHeight="149"/> <SubTexture name="left press instance 10001" x="1898" y="449" width="139" height="142" frameX="-4" frameY="-3" frameWidth="146" frameHeight="149"/>
<SubTexture name="left press0002" x="463" y="389" width="146" height="149"/> <SubTexture name="left press instance 10002" x="1898" y="150" width="146" height="149"/>
<SubTexture name="left press0003" x="463" y="389" width="146" height="149"/> <SubTexture name="left press instance 10003" x="1898" y="150" width="146" height="149"/>
<SubTexture name="pruple end hold0000" x="1220" y="447" width="50" height="64"/> <SubTexture name="left press instance 10004" x="1898" y="150" width="146" height="149"/>
<SubTexture name="purple0000" x="630" y="232" width="154" height="157"/> <SubTexture name="left press instance 10005" x="1898" y="150" width="146" height="149"/>
<SubTexture name="purple hold piece0000" x="1420" y="449" width="50" height="44"/> <SubTexture name="left press instance 10006" x="1898" y="150" width="146" height="149"/>
<SubTexture name="red0000" x="476" y="232" width="154" height="157"/> <SubTexture name="left press instance 10007" x="1898" y="150" width="146" height="149"/>
<SubTexture name="red hold end0000" x="1070" y="442" width="50" height="64"/> <SubTexture name="left press instance 10008" x="1898" y="150" width="146" height="149"/>
<SubTexture name="red hold piece0000" x="1270" y="447" width="50" height="44"/> <SubTexture name="left press instance 10009" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right confirm0000" x="1627" y="0" width="223" height="226" frameX="-1" frameY="-3" frameWidth="226" frameHeight="230"/> <SubTexture name="left press instance 10010" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right confirm0001" x="1627" y="226" width="223" height="226" frameX="-1" frameY="-3" frameWidth="226" frameHeight="230"/> <SubTexture name="left press instance 10011" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right confirm0002" x="1176" y="0" width="226" height="230"/> <SubTexture name="left press instance 10012" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right confirm0003" x="1176" y="0" width="226" height="230"/> <SubTexture name="left press instance 10013" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right press0000" x="932" y="442" width="138" height="141" frameX="-3" frameY="-7" frameWidth="148" frameHeight="151"/> <SubTexture name="left press instance 10014" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right press0001" x="932" y="442" width="138" height="141" frameX="-3" frameY="-7" frameWidth="148" frameHeight="151"/> <SubTexture name="left press instance 10015" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right press0002" x="784" y="385" width="148" height="151"/> <SubTexture name="left press instance 10016" x="1898" y="150" width="146" height="149"/>
<SubTexture name="right press0003" x="784" y="385" width="148" height="151"/> <SubTexture name="left press instance 10017" x="1898" y="150" width="146" height="149"/>
<SubTexture name="up confirm0000" x="476" y="0" width="236" height="232"/> <SubTexture name="left press instance 10018" x="1898" y="150" width="146" height="149"/>
<SubTexture name="up confirm0001" x="712" y="0" width="236" height="232"/> <SubTexture name="left press instance 10019" x="1898" y="150" width="146" height="149"/>
<SubTexture name="up confirm0002" x="948" y="231" width="214" height="206" frameX="-11" frameY="-10" frameWidth="236" frameHeight="232"/> <SubTexture name="pruple end hold instance 10000" x="1117" y="452" width="51" height="64"/>
<SubTexture name="up confirm0003" x="948" y="231" width="214" height="206" frameX="-11" frameY="-10" frameWidth="236" frameHeight="232"/> <SubTexture name="purple hold piece instance 10000" x="1337" y="457" width="51" height="44"/>
<SubTexture name="up press0000" x="609" y="389" width="144" height="141" frameX="-5" frameY="-4" frameWidth="153" frameHeight="150"/> <SubTexture name="purple instance 10000" x="0" y="398" width="154" height="157"/>
<SubTexture name="up press0001" x="609" y="389" width="144" height="141" frameX="-5" frameY="-4" frameWidth="153" frameHeight="150"/> <SubTexture name="red hold end instance 10000" x="952" y="452" width="51" height="64"/>
<SubTexture name="up press0002" x="1850" y="308" width="153" height="150"/> <SubTexture name="red hold piece instance 10000" x="1172" y="457" width="51" height="44"/>
<SubTexture name="up press0003" x="1850" y="308" width="153" height="150"/> <SubTexture name="red instance 10000" x="647" y="397" width="154" height="157"/>
</TextureAtlas> <SubTexture name="right confirm instance 10000" x="1669" y="0" width="225" height="228" frameX="-1" frameY="-2" frameWidth="228" frameHeight="231"/>
<SubTexture name="right confirm instance 10001" x="1669" y="232" width="225" height="228" frameX="-1" frameY="-2" frameWidth="228" frameHeight="231"/>
<SubTexture name="right confirm instance 10002" x="1206" y="0" width="228" height="231"/>
<SubTexture name="right confirm instance 10003" x="1206" y="0" width="228" height="231"/>
<SubTexture name="right press instance 10000" x="469" y="400" width="139" height="142" frameX="-3" frameY="-7" frameWidth="149" frameHeight="152"/>
<SubTexture name="right press instance 10001" x="469" y="400" width="139" height="142" frameX="-3" frameY="-7" frameWidth="149" frameHeight="152"/>
<SubTexture name="right press instance 10002" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10003" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10004" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10005" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10006" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10007" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10008" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10009" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10010" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10011" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10012" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10013" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10014" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10015" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10016" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10017" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10018" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10019" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10020" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10021" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10022" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10023" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10024" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10025" x="316" y="398" width="149" height="152"/>
<SubTexture name="right press instance 10026" x="316" y="398" width="149" height="152"/>
<SubTexture name="up confirm instance 10000" x="488" y="0" width="238" height="234"/>
<SubTexture name="up confirm instance 10001" x="730" y="0" width="238" height="234"/>
<SubTexture name="up confirm instance 10002" x="972" y="236" width="216" height="212" frameX="-11" frameY="-11" frameWidth="238" frameHeight="234"/>
<SubTexture name="up confirm instance 10003" x="972" y="236" width="216" height="212" frameX="-11" frameY="-11" frameWidth="238" frameHeight="234"/>
<SubTexture name="up press instance 10000" x="1898" y="303" width="144" height="142" frameX="-6" frameY="-4" frameWidth="154" frameHeight="151"/>
<SubTexture name="up press instance 10001" x="1898" y="303" width="144" height="142" frameX="-6" frameY="-4" frameWidth="154" frameHeight="151"/>
<SubTexture name="up press instance 10002" x="158" y="398" width="154" height="151"/>
<SubTexture name="up press instance 10003" x="158" y="398" width="154" height="151"/>
</TextureAtlas>

View File

@ -72,8 +72,12 @@ class KeyBinds
FlxG.save.data.gprightBind = "DPAD_RIGHT"; FlxG.save.data.gprightBind = "DPAD_RIGHT";
trace("No GRIGHT"); trace("No GRIGHT");
} }
if(FlxG.save.data.killBind == null){
FlxG.save.data.killBind = "R";
trace("No KILL");
}
trace('${FlxG.save.data.leftBind}-${FlxG.save.data.downBind}-${FlxG.save.data.upBind}-${FlxG.save.data.rightBind}'); trace('${FlxG.save.data.leftBind}-${FlxG.save.data.downBind}-${FlxG.save.data.upBind}-${FlxG.save.data.rightBind}');
} }
} }

View File

@ -99,20 +99,20 @@ class Note extends FlxSprite
default: default:
frames = Paths.getSparrowAtlas('NOTE_assets'); frames = Paths.getSparrowAtlas('NOTE_assets');
animation.addByPrefix('greenScroll', 'green0'); animation.addByPrefix('greenScroll', 'green instance 1');
animation.addByPrefix('redScroll', 'red0'); animation.addByPrefix('redScroll', 'red instance 1');
animation.addByPrefix('blueScroll', 'blue0'); animation.addByPrefix('blueScroll', 'blue instance 1');
animation.addByPrefix('purpleScroll', 'purple0'); animation.addByPrefix('purpleScroll', 'purple instance 1');
animation.addByPrefix('purpleholdend', 'pruple end hold'); animation.addByPrefix('purpleholdend', 'pruple end hold instance 1');
animation.addByPrefix('greenholdend', 'green hold end'); animation.addByPrefix('greenholdend', 'green hold end instance 1');
animation.addByPrefix('redholdend', 'red hold end'); animation.addByPrefix('redholdend', 'red hold end instance 1');
animation.addByPrefix('blueholdend', 'blue hold end'); animation.addByPrefix('blueholdend', 'blue hold end instance 1');
animation.addByPrefix('purplehold', 'purple hold piece'); animation.addByPrefix('purplehold', 'purple hold piece instance 1');
animation.addByPrefix('greenhold', 'green hold piece'); animation.addByPrefix('greenhold', 'green hold piece instance 1');
animation.addByPrefix('redhold', 'red hold piece'); animation.addByPrefix('redhold', 'red hold piece instance 1');
animation.addByPrefix('bluehold', 'blue hold piece'); animation.addByPrefix('bluehold', 'blue hold piece instance 1');
setGraphicSize(Std.int(width * 0.7)); setGraphicSize(Std.int(width * 0.7));
updateHitbox(); updateHitbox();
@ -235,4 +235,4 @@ class Note extends FlxSprite
alpha = 0.3; alpha = 0.3;
} }
} }
} }

View File

@ -111,19 +111,18 @@ class PauseSubState extends MusicBeatSubstate
var gamepad:FlxGamepad = FlxG.gamepads.lastActive; var gamepad:FlxGamepad = FlxG.gamepads.lastActive;
var upP = controls.UP_P; var upPcontroller:Bool = false;
var downP = controls.DOWN_P; var downPcontroller:Bool = false;
var leftP = controls.LEFT_P; var leftPcontroller:Bool = false;
var rightP = controls.RIGHT_P; var rightPcontroller:Bool = false;
var accepted = controls.ACCEPT;
var oldOffset:Float = 0; var oldOffset:Float = 0;
if (gamepad != null && KeyBinds.gamepad) if (gamepad != null && KeyBinds.gamepad)
{ {
upP = gamepad.justPressed.DPAD_UP; upPcontroller = gamepad.justPressed.DPAD_UP;
downP = gamepad.justPressed.DPAD_DOWN; downPcontroller = gamepad.justPressed.DPAD_DOWN;
leftP = gamepad.justPressed.DPAD_LEFT; leftPcontroller = gamepad.justPressed.DPAD_LEFT;
rightP = gamepad.justPressed.DPAD_RIGHT; rightPcontroller = gamepad.justPressed.DPAD_RIGHT;
} }
// pre lowercasing the song name (update) // pre lowercasing the song name (update)
@ -134,17 +133,18 @@ class PauseSubState extends MusicBeatSubstate
} }
var songPath = 'assets/data/' + songLowercase + '/'; var songPath = 'assets/data/' + songLowercase + '/';
if (upP) if (controls.UP_P || upPcontroller)
{ {
changeSelection(-1); changeSelection(-1);
}else if (downP) }
else if (controls.DOWN_P || downPcontroller)
{ {
changeSelection(1); changeSelection(1);
} }
#if cpp #if cpp
else if (leftP) else if (controls.LEFT_P || leftPcontroller)
{ {
oldOffset = PlayState.songOffset; oldOffset = PlayState.songOffset;
PlayState.songOffset -= 1; PlayState.songOffset -= 1;
@ -171,7 +171,8 @@ class PauseSubState extends MusicBeatSubstate
cameras = [FlxG.cameras.list[FlxG.cameras.list.length - 1]]; cameras = [FlxG.cameras.list[FlxG.cameras.list.length - 1]];
offsetChanged = true; offsetChanged = true;
} }
}else if (rightP) }
else if (controls.RIGHT_P || rightPcontroller)
{ {
oldOffset = PlayState.songOffset; oldOffset = PlayState.songOffset;
PlayState.songOffset += 1; PlayState.songOffset += 1;
@ -199,7 +200,7 @@ class PauseSubState extends MusicBeatSubstate
} }
#end #end
if (accepted) if (controls.ACCEPT)
{ {
var daSelected:String = menuItems[curSelected]; var daSelected:String = menuItems[curSelected];

View File

@ -1744,73 +1744,73 @@ class PlayState extends MusicBeatState
babyArrow.animation.add('confirm', [12, 16], 24, false); babyArrow.animation.add('confirm', [12, 16], 24, false);
} }
case 'normal': case 'normal':
babyArrow.frames = Paths.getSparrowAtlas('NOTE_assets'); babyArrow.frames = Paths.getSparrowAtlas('NOTE_assets');
babyArrow.animation.addByPrefix('green', 'arrowUP'); babyArrow.animation.addByPrefix('green', 'arrow static instance 1');
babyArrow.animation.addByPrefix('blue', 'arrowDOWN'); babyArrow.animation.addByPrefix('blue', 'arrow static instance 2');
babyArrow.animation.addByPrefix('purple', 'arrowLEFT'); babyArrow.animation.addByPrefix('purple', 'arrow static instance 3');
babyArrow.animation.addByPrefix('red', 'arrowRIGHT'); babyArrow.animation.addByPrefix('red', 'arrow static instance 4');
babyArrow.antialiasing = true;
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
switch (Math.abs(i))
{
case 0:
babyArrow.x += Note.swagWidth * 0;
babyArrow.animation.addByPrefix('static', 'arrowLEFT');
babyArrow.animation.addByPrefix('pressed', 'left press', 24, false);
babyArrow.animation.addByPrefix('confirm', 'left confirm', 24, false);
case 1:
babyArrow.x += Note.swagWidth * 1;
babyArrow.animation.addByPrefix('static', 'arrowDOWN');
babyArrow.animation.addByPrefix('pressed', 'down press', 24, false);
babyArrow.animation.addByPrefix('confirm', 'down confirm', 24, false);
case 2:
babyArrow.x += Note.swagWidth * 2;
babyArrow.animation.addByPrefix('static', 'arrowUP');
babyArrow.animation.addByPrefix('pressed', 'up press', 24, false);
babyArrow.animation.addByPrefix('confirm', 'up confirm', 24, false);
case 3:
babyArrow.x += Note.swagWidth * 3;
babyArrow.animation.addByPrefix('static', 'arrowRIGHT');
babyArrow.animation.addByPrefix('pressed', 'right press', 24, false);
babyArrow.animation.addByPrefix('confirm', 'right confirm', 24, false);
}
default: babyArrow.antialiasing = true;
babyArrow.frames = Paths.getSparrowAtlas('NOTE_assets'); babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
babyArrow.animation.addByPrefix('green', 'arrowUP');
babyArrow.animation.addByPrefix('blue', 'arrowDOWN');
babyArrow.animation.addByPrefix('purple', 'arrowLEFT');
babyArrow.animation.addByPrefix('red', 'arrowRIGHT');
babyArrow.antialiasing = true; switch (Math.abs(i))
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7)); {
case 0:
switch (Math.abs(i)) babyArrow.x += Note.swagWidth * 0;
{ babyArrow.animation.addByPrefix('static', 'arrow static instance 1');
case 0: babyArrow.animation.addByPrefix('pressed', 'left press instance 1', 24, false);
babyArrow.x += Note.swagWidth * 0; babyArrow.animation.addByPrefix('confirm', 'left confirm instance 1', 24, false);
babyArrow.animation.addByPrefix('static', 'arrowLEFT'); case 1:
babyArrow.animation.addByPrefix('pressed', 'left press', 24, false); babyArrow.x += Note.swagWidth * 1;
babyArrow.animation.addByPrefix('confirm', 'left confirm', 24, false); babyArrow.animation.addByPrefix('static', 'arrow static instance 2');
case 1: babyArrow.animation.addByPrefix('pressed', 'down press instance 1', 24, false);
babyArrow.x += Note.swagWidth * 1; babyArrow.animation.addByPrefix('confirm', 'down confirm instance 1', 24, false);
babyArrow.animation.addByPrefix('static', 'arrowDOWN'); case 2:
babyArrow.animation.addByPrefix('pressed', 'down press', 24, false); babyArrow.x += Note.swagWidth * 2;
babyArrow.animation.addByPrefix('confirm', 'down confirm', 24, false); babyArrow.animation.addByPrefix('static', 'arrow static instance 4');
case 2: babyArrow.animation.addByPrefix('pressed', 'up press instance 1', 24, false);
babyArrow.x += Note.swagWidth * 2; babyArrow.animation.addByPrefix('confirm', 'up confirm instance 1', 24, false);
babyArrow.animation.addByPrefix('static', 'arrowUP'); case 3:
babyArrow.animation.addByPrefix('pressed', 'up press', 24, false); babyArrow.x += Note.swagWidth * 3;
babyArrow.animation.addByPrefix('confirm', 'up confirm', 24, false); babyArrow.animation.addByPrefix('static', 'arrow static instance 3');
case 3: babyArrow.animation.addByPrefix('pressed', 'right press instance 1', 24, false);
babyArrow.x += Note.swagWidth * 3; babyArrow.animation.addByPrefix('confirm', 'right confirm instance 1', 24, false);
babyArrow.animation.addByPrefix('static', 'arrowRIGHT');
babyArrow.animation.addByPrefix('pressed', 'right press', 24, false);
babyArrow.animation.addByPrefix('confirm', 'right confirm', 24, false);
} }
default:
babyArrow.frames = Paths.getSparrowAtlas('NOTE_assets');
babyArrow.animation.addByPrefix('green', 'arrow static instance 1');
babyArrow.animation.addByPrefix('blue', 'arrow static instance 2');
babyArrow.animation.addByPrefix('purple', 'arrow static instance 3');
babyArrow.animation.addByPrefix('red', 'arrow static instance 4');
babyArrow.antialiasing = true;
babyArrow.setGraphicSize(Std.int(babyArrow.width * 0.7));
switch (Math.abs(i))
{
case 0:
babyArrow.x += Note.swagWidth * 0;
babyArrow.animation.addByPrefix('static', 'arrow static instance 1');
babyArrow.animation.addByPrefix('pressed', 'left press instance 1', 24, false);
babyArrow.animation.addByPrefix('confirm', 'left confirm instance 1', 24, false);
case 1:
babyArrow.x += Note.swagWidth * 1;
babyArrow.animation.addByPrefix('static', 'arrow static instance 2');
babyArrow.animation.addByPrefix('pressed', 'down press instance 1', 24, false);
babyArrow.animation.addByPrefix('confirm', 'down confirm instance 1', 24, false);
case 2:
babyArrow.x += Note.swagWidth * 2;
babyArrow.animation.addByPrefix('static', 'arrow static instance 4');
babyArrow.animation.addByPrefix('pressed', 'up press instance 1', 24, false);
babyArrow.animation.addByPrefix('confirm', 'up confirm instance 1', 24, false);
case 3:
babyArrow.x += Note.swagWidth * 3;
babyArrow.animation.addByPrefix('static', 'arrow static instance 3');
babyArrow.animation.addByPrefix('pressed', 'right press instance 1', 24, false);
babyArrow.animation.addByPrefix('confirm', 'right confirm instance 1', 24, false);
}
} }
babyArrow.updateHitbox(); babyArrow.updateHitbox();