View source
class FreeplayLetter
package funkin.ui.freeplay
extends FunkinSprite
import funkin.ui.freeplay.LetterSort
Available on all platforms
The actual FunkinSprite for the letters, with their animation code stuff and regex stuff
Constructor
Variables
animLetters:Array<String> = []
A preformatted array of the letters, for use when accessing symbol animation info ex: ['AB', 'CD', 'EH', 'IL' ...]
regexLetters:Array<String> = []
A preformatted array of letter strings, for use when doing regex ex: ['A-B', 'C-D', 'E-H', 'I-L' ...]
Methods
changeLetter(diff:Int = 0, ?curSelection:Int):Void
Changes the letter graphic/anim, used in the LetterSort class above
Parameters:
diff | -1 or 1, to go left or right in the animation array |
|---|---|
curSelection | what the current letter selection is, to play the bouncing anim if it matches the current letter |