more performance shit
This commit is contained in:
parent
aa7cef2c25
commit
ce0fd00fba
@ -52,7 +52,7 @@
|
|||||||
<!--<haxedef name="FLX_RECORD" />-->
|
<!--<haxedef name="FLX_RECORD" />-->
|
||||||
|
|
||||||
<!--Disable the right and middle mouse buttons-->
|
<!--Disable the right and middle mouse buttons-->
|
||||||
<!--<haxedef name="FLX_NO_MOUSE_ADVANCED" />-->
|
<haxedef name="FLX_NO_MOUSE_ADVANCED" />
|
||||||
|
|
||||||
<!--Disable the native cursor API on Flash-->
|
<!--Disable the native cursor API on Flash-->
|
||||||
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
|
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
|
||||||
|
@ -28,8 +28,6 @@ class PlayState extends FlxState
|
|||||||
private var lastStep:Float = 0;
|
private var lastStep:Float = 0;
|
||||||
private var vocals:FlxSound;
|
private var vocals:FlxSound;
|
||||||
|
|
||||||
private var canHit:Bool = false;
|
|
||||||
|
|
||||||
private var totalBeats:Int = 0;
|
private var totalBeats:Int = 0;
|
||||||
private var totalSteps:Int = 0;
|
private var totalSteps:Int = 0;
|
||||||
|
|
||||||
@ -314,7 +312,7 @@ class PlayState extends FlxState
|
|||||||
FlxG.watch.addQuick('spsa', unspawnNotes[0].strumTime);
|
FlxG.watch.addQuick('spsa', unspawnNotes[0].strumTime);
|
||||||
FlxG.watch.addQuick('weed', Conductor.songPosition);
|
FlxG.watch.addQuick('weed', Conductor.songPosition);
|
||||||
|
|
||||||
if (unspawnNotes[0].strumTime - Conductor.songPosition < 5 * 1000)
|
if (unspawnNotes[0].strumTime - Conductor.songPosition < 1500)
|
||||||
{
|
{
|
||||||
var dunceNote:Note = unspawnNotes[0];
|
var dunceNote:Note = unspawnNotes[0];
|
||||||
notes.add(dunceNote);
|
notes.add(dunceNote);
|
||||||
@ -352,6 +350,8 @@ class PlayState extends FlxState
|
|||||||
}
|
}
|
||||||
|
|
||||||
daNote.kill();
|
daNote.kill();
|
||||||
|
notes.remove(daNote, true);
|
||||||
|
daNote.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * 0.45);
|
daNote.y = (strumLine.y - (Conductor.songPosition - daNote.strumTime) * 0.45);
|
||||||
@ -401,7 +401,7 @@ class PlayState extends FlxState
|
|||||||
curSection += 1;
|
curSection += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function keyShit():Void
|
private function keyShit():Void
|
||||||
{
|
{
|
||||||
// HOLDING
|
// HOLDING
|
||||||
var up = FlxG.keys.anyPressed([W, UP]);
|
var up = FlxG.keys.anyPressed([W, UP]);
|
||||||
@ -518,6 +518,7 @@ class PlayState extends FlxState
|
|||||||
if (leftR)
|
if (leftR)
|
||||||
spr.animation.play('static');
|
spr.animation.play('static');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spr.animation.curAnim.name == 'confirm')
|
if (spr.animation.curAnim.name == 'confirm')
|
||||||
{
|
{
|
||||||
spr.centerOffsets();
|
spr.centerOffsets();
|
||||||
@ -644,15 +645,11 @@ class PlayState extends FlxState
|
|||||||
if (Conductor.songPosition > lastStep + Conductor.stepCrochet - Conductor.safeZoneOffset
|
if (Conductor.songPosition > lastStep + Conductor.stepCrochet - Conductor.safeZoneOffset
|
||||||
|| Conductor.songPosition < lastStep + Conductor.safeZoneOffset)
|
|| Conductor.songPosition < lastStep + Conductor.safeZoneOffset)
|
||||||
{
|
{
|
||||||
canHit = true;
|
|
||||||
|
|
||||||
if (Conductor.songPosition > lastStep + Conductor.stepCrochet)
|
if (Conductor.songPosition > lastStep + Conductor.stepCrochet)
|
||||||
{
|
{
|
||||||
totalSteps += 1;
|
totalSteps += 1;
|
||||||
lastStep += Conductor.stepCrochet;
|
lastStep += Conductor.stepCrochet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
canHit = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user