mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
arrows stuff
This commit is contained in:
parent
01065e54d5
commit
2b61c81ff5
2 changed files with 11 additions and 10 deletions
|
@ -4,12 +4,13 @@ import flixel.FlxSprite;
|
||||||
import flixel.graphics.frames.FlxAtlasFrames;
|
import flixel.graphics.frames.FlxAtlasFrames;
|
||||||
import flixel.math.FlxMath;
|
import flixel.math.FlxMath;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
|
|
||||||
|
using StringTools;
|
||||||
|
|
||||||
#if polymod
|
#if polymod
|
||||||
import polymod.format.ParseRules.TargetSignatureElement;
|
import polymod.format.ParseRules.TargetSignatureElement;
|
||||||
#end
|
#end
|
||||||
|
|
||||||
using StringTools;
|
|
||||||
|
|
||||||
class Note extends FlxSprite
|
class Note extends FlxSprite
|
||||||
{
|
{
|
||||||
public var strumTime:Float = 0;
|
public var strumTime:Float = 0;
|
||||||
|
@ -82,10 +83,10 @@ 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');
|
||||||
animation.addByPrefix('redScroll', 'red0');
|
animation.addByPrefix('redScroll', 'red instance');
|
||||||
animation.addByPrefix('blueScroll', 'blue0');
|
animation.addByPrefix('blueScroll', 'blue instance');
|
||||||
animation.addByPrefix('purpleScroll', 'purple0');
|
animation.addByPrefix('purpleScroll', 'purple instance');
|
||||||
|
|
||||||
animation.addByPrefix('purpleholdend', 'pruple end hold');
|
animation.addByPrefix('purpleholdend', 'pruple end hold');
|
||||||
animation.addByPrefix('greenholdend', 'green hold end');
|
animation.addByPrefix('greenholdend', 'green hold end');
|
||||||
|
|
|
@ -1241,22 +1241,22 @@ class PlayState extends MusicBeatState
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
babyArrow.x += Note.swagWidth * 0;
|
babyArrow.x += Note.swagWidth * 0;
|
||||||
babyArrow.animation.addByPrefix('static', 'arrowLEFT');
|
babyArrow.animation.addByPrefix('static', 'arrow static instance 1');
|
||||||
babyArrow.animation.addByPrefix('pressed', 'left press', 24, false);
|
babyArrow.animation.addByPrefix('pressed', 'left press', 24, false);
|
||||||
babyArrow.animation.addByPrefix('confirm', 'left confirm', 24, false);
|
babyArrow.animation.addByPrefix('confirm', 'left confirm', 24, false);
|
||||||
case 1:
|
case 1:
|
||||||
babyArrow.x += Note.swagWidth * 1;
|
babyArrow.x += Note.swagWidth * 1;
|
||||||
babyArrow.animation.addByPrefix('static', 'arrowDOWN');
|
babyArrow.animation.addByPrefix('static', 'arrow static instance 2');
|
||||||
babyArrow.animation.addByPrefix('pressed', 'down press', 24, false);
|
babyArrow.animation.addByPrefix('pressed', 'down press', 24, false);
|
||||||
babyArrow.animation.addByPrefix('confirm', 'down confirm', 24, false);
|
babyArrow.animation.addByPrefix('confirm', 'down confirm', 24, false);
|
||||||
case 2:
|
case 2:
|
||||||
babyArrow.x += Note.swagWidth * 2;
|
babyArrow.x += Note.swagWidth * 2;
|
||||||
babyArrow.animation.addByPrefix('static', 'arrowUP');
|
babyArrow.animation.addByPrefix('static', 'arrow static instance 4');
|
||||||
babyArrow.animation.addByPrefix('pressed', 'up press', 24, false);
|
babyArrow.animation.addByPrefix('pressed', 'up press', 24, false);
|
||||||
babyArrow.animation.addByPrefix('confirm', 'up confirm', 24, false);
|
babyArrow.animation.addByPrefix('confirm', 'up confirm', 24, false);
|
||||||
case 3:
|
case 3:
|
||||||
babyArrow.x += Note.swagWidth * 3;
|
babyArrow.x += Note.swagWidth * 3;
|
||||||
babyArrow.animation.addByPrefix('static', 'arrowRIGHT');
|
babyArrow.animation.addByPrefix('static', 'arrow static instance 3');
|
||||||
babyArrow.animation.addByPrefix('pressed', 'right press', 24, false);
|
babyArrow.animation.addByPrefix('pressed', 'right press', 24, false);
|
||||||
babyArrow.animation.addByPrefix('confirm', 'right confirm', 24, false);
|
babyArrow.animation.addByPrefix('confirm', 'right confirm', 24, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue