-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCheat.hx
58 lines (49 loc) · 1.33 KB
/
Cheat.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package;
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
import Controls.Control;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxSubState;
import flixel.addons.transition.FlxTransitionableState;
import flixel.group.FlxGroup.FlxTypedGroup;
import flixel.input.keyboard.FlxKey;
import flixel.system.FlxSound;
import flixel.text.FlxText;
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.util.FlxColor;
import flixel.effects.FlxFlicker;
import flixel.FlxCamera;
using StringTools;
class UnownSubState extends MusicBeatSubstate
{
var selectedWord:String;
var realWord:String = '';
var position:Int = 0;
var words:Array<String> = [
'DODGE',
];
var Playst = new PlayState();
var endsong:Array<String> = [
'ENDINGTHISSONGCUZSUFFER',
];
var lines:FlxTypedGroup<FlxSprite>;
var unowns:FlxTypedSpriteGroup<FlxSprite>;
public var win:Void->Void = null;
public var lose:Void->Void = null;
var timer:Int = 10;
var timerTxt:FlxText;
public function new(theTimer:Int = 15, word:String = '')
{
if (PlayState.SONG.song.toLowerCase() == 'DICK PAYNE')
{
trace("You cheat like a bitch")
}
if (PlayState.SONG.song.toLowerCase() == 'release')
{
words = endsong;
Playst.endSong();
}
}
}
}