polish bits here and there
This commit is contained in:
parent
2ba056bfc5
commit
6e1274d849
@ -92,5 +92,5 @@
|
|||||||
|
|
||||||
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
|
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
|
||||||
<icon path="art/icon.png"/>
|
<icon path="art/icon.png"/>
|
||||||
<haxedef name="SKIP_TO_PLAYSTATE" if="debug" />
|
<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
|
||||||
</project>
|
</project>
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -84,9 +84,9 @@ class ChartingState extends MusicBeatState
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_song = {
|
_song = {
|
||||||
song: 'Spookeez',
|
song: 'Monster',
|
||||||
notes: [],
|
notes: [],
|
||||||
bpm: 100,
|
bpm: 95,
|
||||||
sections: 0,
|
sections: 0,
|
||||||
needsVoices: false,
|
needsVoices: false,
|
||||||
player1: 'bf',
|
player1: 'bf',
|
||||||
@ -318,6 +318,7 @@ class ChartingState extends MusicBeatState
|
|||||||
_song.notes[curSection].mustHitSection = check.checked;
|
_song.notes[curSection].mustHitSection = check.checked;
|
||||||
case 'Change BPM':
|
case 'Change BPM':
|
||||||
_song.notes[curSection].changeBPM = check.checked;
|
_song.notes[curSection].changeBPM = check.checked;
|
||||||
|
FlxG.log.add('changed bpm shit');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (id == FlxUINumericStepper.CHANGE_EVENT && (sender is FlxUINumericStepper))
|
else if (id == FlxUINumericStepper.CHANGE_EVENT && (sender is FlxUINumericStepper))
|
||||||
@ -491,6 +492,8 @@ class ChartingState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
curSection = sec;
|
curSection = sec;
|
||||||
|
|
||||||
|
updateGrid();
|
||||||
|
|
||||||
if (updateMusic)
|
if (updateMusic)
|
||||||
{
|
{
|
||||||
FlxG.sound.music.pause();
|
FlxG.sound.music.pause();
|
||||||
|
@ -87,6 +87,8 @@ class PlayState extends MusicBeatState
|
|||||||
if (SONG == null)
|
if (SONG == null)
|
||||||
SONG = Song.loadFromJson(curLevel);
|
SONG = Song.loadFromJson(curLevel);
|
||||||
|
|
||||||
|
Conductor.changeBPM(SONG.bpm);
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(AssetPaths.stageback__png);
|
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(AssetPaths.stageback__png);
|
||||||
// bg.setGraphicSize(Std.int(bg.width * 2.5));
|
// bg.setGraphicSize(Std.int(bg.width * 2.5));
|
||||||
// bg.updateHitbox();
|
// bg.updateHitbox();
|
||||||
@ -693,13 +695,13 @@ class PlayState extends MusicBeatState
|
|||||||
switch (Math.abs(daNote.noteData))
|
switch (Math.abs(daNote.noteData))
|
||||||
{
|
{
|
||||||
case 2:
|
case 2:
|
||||||
dad.playAnim('singUP');
|
dad.playAnim('singUP', true);
|
||||||
case 3:
|
case 3:
|
||||||
dad.playAnim('singRIGHT');
|
dad.playAnim('singRIGHT', true);
|
||||||
case 1:
|
case 1:
|
||||||
dad.playAnim('singDOWN');
|
dad.playAnim('singDOWN', true);
|
||||||
case 0:
|
case 0:
|
||||||
dad.playAnim('singLEFT');
|
dad.playAnim('singLEFT', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SONG.needsVoices)
|
if (SONG.needsVoices)
|
||||||
@ -1150,20 +1152,24 @@ class PlayState extends MusicBeatState
|
|||||||
if (generatedMusic)
|
if (generatedMusic)
|
||||||
{
|
{
|
||||||
notes.sort(FlxSort.byY, FlxSort.DESCENDING);
|
notes.sort(FlxSort.byY, FlxSort.DESCENDING);
|
||||||
|
|
||||||
if (SONG.notes[curSection].changeBPM != null)
|
|
||||||
{
|
|
||||||
if (SONG.notes[curSection].changeBPM)
|
|
||||||
{
|
|
||||||
Conductor.changeBPM(SONG.notes[curSection].bpm);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
|
||||||
|
if (SONG.notes[Std.int(curStep / 16)].changeBPM)
|
||||||
|
{
|
||||||
|
Conductor.changeBPM(SONG.notes[Std.int(curStep / 16)].bpm);
|
||||||
|
FlxG.log.add('CHANGED BPM!');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Conductor.changeBPM(SONG.bpm);
|
||||||
|
|
||||||
if (camZooming && FlxG.camera.zoom < 1.35 && totalBeats % 4 == 0)
|
if (camZooming && FlxG.camera.zoom < 1.35 && totalBeats % 4 == 0)
|
||||||
FlxG.camera.zoom += 0.025;
|
FlxG.camera.zoom += 0.025;
|
||||||
|
|
||||||
dad.dance();
|
// Dad doesnt interupt his own notes
|
||||||
|
if (SONG.notes[Std.int(curStep / 16)].mustHitSection)
|
||||||
|
dad.dance();
|
||||||
|
|
||||||
healthHeads.setGraphicSize(Std.int(healthHeads.width + 20));
|
healthHeads.setGraphicSize(Std.int(healthHeads.width + 20));
|
||||||
|
|
||||||
if (totalBeats % gfSpeed == 0)
|
if (totalBeats % gfSpeed == 0)
|
||||||
|
@ -41,7 +41,7 @@ class TitleState extends MusicBeatState
|
|||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
#if SKIP_TO_PLAYSTATE
|
#if SKIP_TO_PLAYSTATE
|
||||||
FlxG.switchState(new FreeplayState());
|
FlxG.switchState(new ChartingState());
|
||||||
#else
|
#else
|
||||||
startIntro();
|
startIntro();
|
||||||
#end
|
#end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user