Revert "lots of stuff"
This reverts commit 00687fb1b6fc307008d3218d1b32f1807523ffba.
This commit is contained in:
parent
00687fb1b6
commit
3d01f74c10
@ -123,7 +123,7 @@
|
|||||||
<haxelib name="discord_rpc" if="windows"/>
|
<haxelib name="discord_rpc" if="windows"/>
|
||||||
<haxelib name="linc_luajit" if="windows"/>
|
<haxelib name="linc_luajit" if="windows"/>
|
||||||
|
|
||||||
<!-- <haxelib name="hxcpp-debug-server" if="desktop"/> -->
|
<haxelib name="hxcpp-debug-server" if="desktop"/>
|
||||||
|
|
||||||
<!-- <haxelib name="markdown" /> -->
|
<!-- <haxelib name="markdown" /> -->
|
||||||
<!-- <haxelib name="HtmlParser" /> -->
|
<!-- <haxelib name="HtmlParser" /> -->
|
||||||
|
@ -407,7 +407,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
public function loadOffsetFile(character:String)
|
public function loadOffsetFile(character:String)
|
||||||
{
|
{
|
||||||
var offset:Array<String> = CoolUtil.coolTextFile(Paths.txt('images/characters/' + character + "Offsets", 'shared'));
|
var offset:Array<String> = CoolUtil.coolTextFile(Paths.txt('images/characters/' + character + "Offsets"));
|
||||||
|
|
||||||
for (i in 0...offset.length)
|
for (i in 0...offset.length)
|
||||||
{
|
{
|
||||||
@ -452,13 +452,13 @@ class Character extends FlxSprite
|
|||||||
/**
|
/**
|
||||||
* FOR GF DANCING SHIT
|
* FOR GF DANCING SHIT
|
||||||
*/
|
*/
|
||||||
public function dance(forced:Bool = false)
|
public function dance()
|
||||||
{
|
{
|
||||||
if (!debugMode)
|
if (!debugMode)
|
||||||
{
|
{
|
||||||
switch (curCharacter)
|
switch (curCharacter)
|
||||||
{
|
{
|
||||||
case 'gf' | 'gf-christmas' | 'gf-car' | 'gf-pixel':
|
case 'gf':
|
||||||
if (!animation.curAnim.name.startsWith('hair'))
|
if (!animation.curAnim.name.startsWith('hair'))
|
||||||
{
|
{
|
||||||
danced = !danced;
|
danced = !danced;
|
||||||
@ -468,6 +468,39 @@ class Character extends FlxSprite
|
|||||||
else
|
else
|
||||||
playAnim('danceLeft');
|
playAnim('danceLeft');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'gf-christmas':
|
||||||
|
if (!animation.curAnim.name.startsWith('hair'))
|
||||||
|
{
|
||||||
|
danced = !danced;
|
||||||
|
|
||||||
|
if (danced)
|
||||||
|
playAnim('danceRight');
|
||||||
|
else
|
||||||
|
playAnim('danceLeft');
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'gf-car':
|
||||||
|
if (!animation.curAnim.name.startsWith('hair'))
|
||||||
|
{
|
||||||
|
danced = !danced;
|
||||||
|
|
||||||
|
if (danced)
|
||||||
|
playAnim('danceRight');
|
||||||
|
else
|
||||||
|
playAnim('danceLeft');
|
||||||
|
}
|
||||||
|
case 'gf-pixel':
|
||||||
|
if (!animation.curAnim.name.startsWith('hair'))
|
||||||
|
{
|
||||||
|
danced = !danced;
|
||||||
|
|
||||||
|
if (danced)
|
||||||
|
playAnim('danceRight');
|
||||||
|
else
|
||||||
|
playAnim('danceLeft');
|
||||||
|
}
|
||||||
|
|
||||||
case 'spooky':
|
case 'spooky':
|
||||||
danced = !danced;
|
danced = !danced;
|
||||||
|
|
||||||
@ -476,7 +509,7 @@ class Character extends FlxSprite
|
|||||||
else
|
else
|
||||||
playAnim('danceLeft');
|
playAnim('danceLeft');
|
||||||
default:
|
default:
|
||||||
playAnim('idle', forced);
|
playAnim('idle');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ class GameplayCustomizeState extends MusicBeatState
|
|||||||
curt = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains','shared'));
|
curt = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains','shared'));
|
||||||
front = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront','shared'));
|
front = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront','shared'));
|
||||||
|
|
||||||
//Conductor.changeBPM(102);
|
Conductor.changeBPM(102);
|
||||||
persistentUpdate = true;
|
persistentUpdate = true;
|
||||||
|
|
||||||
super.create();
|
super.create();
|
||||||
@ -193,9 +193,8 @@ class GameplayCustomizeState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
super.beatHit();
|
super.beatHit();
|
||||||
|
|
||||||
bf.playAnim('idle', true);
|
bf.playAnim('idle');
|
||||||
dad.dance(true);
|
dad.dance();
|
||||||
gf.dance();
|
|
||||||
|
|
||||||
FlxG.camera.zoom += 0.015;
|
FlxG.camera.zoom += 0.015;
|
||||||
camHUD.zoom += 0.010;
|
camHUD.zoom += 0.010;
|
||||||
|
@ -53,7 +53,7 @@ class Paths
|
|||||||
return 'assets/$file';
|
return 'assets/$file';
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static public function file(file:String, ?library:String, type:AssetType = TEXT)
|
inline static public function file(file:String, type:AssetType = TEXT, ?library:String)
|
||||||
{
|
{
|
||||||
return getPath(file, type, library);
|
return getPath(file, type, library);
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ class Paths
|
|||||||
return null;
|
return null;
|
||||||
#end
|
#end
|
||||||
else
|
else
|
||||||
return FlxAtlasFrames.fromSparrow(image('characters/$key', library), file('images/characters/$key.xml', library));
|
return FlxAtlasFrames.fromSparrow(image('characters/$key'), file('images/characters/$key.xml'));
|
||||||
return FlxAtlasFrames.fromSparrow(image(key, library), file('images/$key.xml', library));
|
return FlxAtlasFrames.fromSparrow(image(key, library), file('images/$key.xml', library));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ class Paths
|
|||||||
return null;
|
return null;
|
||||||
#end
|
#end
|
||||||
else
|
else
|
||||||
return FlxAtlasFrames.fromSpriteSheetPacker(image('characters/$key'), file('images/characters/$key.txt', library));
|
return FlxAtlasFrames.fromSpriteSheetPacker(image('characters/$key'), file('images/characters/$key.txt'));
|
||||||
return FlxAtlasFrames.fromSpriteSheetPacker(image(key, library), file('images/$key.txt', library));
|
return FlxAtlasFrames.fromSpriteSheetPacker(image(key, library), file('images/$key.txt', library));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -171,8 +171,6 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var notesHitArray:Array<Date> = [];
|
var notesHitArray:Array<Date> = [];
|
||||||
var currentFrames:Int = 0;
|
var currentFrames:Int = 0;
|
||||||
var idleToBeat:Bool = true; // change if bf and dad would idle to the beat of the song
|
|
||||||
var idleBeat:Int = 1; // how frequently bf and dad would play their idle animation(1 - every beat, 2 - every 2 beats and so on)
|
|
||||||
|
|
||||||
public var dialogue:Array<String> = ['dad:blah blah blah', 'bf:coolswag'];
|
public var dialogue:Array<String> = ['dad:blah blah blah', 'bf:coolswag'];
|
||||||
|
|
||||||
@ -4175,9 +4173,8 @@ class PlayState extends MusicBeatState
|
|||||||
// Conductor.changeBPM(SONG.bpm);
|
// Conductor.changeBPM(SONG.bpm);
|
||||||
|
|
||||||
// Dad doesnt interupt his own notes
|
// Dad doesnt interupt his own notes
|
||||||
if ((SONG.notes[Math.floor(curStep / 16)].mustHitSection || !dad.animation.curAnim.name.startsWith("sing")) && dad.curCharacter != 'gf')
|
if (SONG.notes[Math.floor(curStep / 16)].mustHitSection && dad.curCharacter != 'gf')
|
||||||
if (curBeat % idleBeat == 0)
|
dad.dance();
|
||||||
dad.dance(idleToBeat);
|
|
||||||
}
|
}
|
||||||
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
|
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);
|
||||||
wiggleShit.update(Conductor.crochet);
|
wiggleShit.update(Conductor.crochet);
|
||||||
@ -4209,9 +4206,9 @@ class PlayState extends MusicBeatState
|
|||||||
gf.dance();
|
gf.dance();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!boyfriend.animation.curAnim.name.startsWith("sing") && curBeat % idleBeat == 0)
|
if (!boyfriend.animation.curAnim.name.startsWith("sing"))
|
||||||
{
|
{
|
||||||
boyfriend.playAnim('idle', idleToBeat);
|
boyfriend.playAnim('idle');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if (!dad.animation.curAnim.name.startsWith("sing"))
|
/*if (!dad.animation.curAnim.name.startsWith("sing"))
|
||||||
|
@ -275,7 +275,6 @@ class TitleState extends MusicBeatState
|
|||||||
// FlxG.sound.music.stop();
|
// FlxG.sound.music.stop();
|
||||||
|
|
||||||
MainMenuState.firstStart = true;
|
MainMenuState.firstStart = true;
|
||||||
MainMenuState.finishedFunnyMove = false;
|
|
||||||
|
|
||||||
new FlxTimer().start(2, function(tmr:FlxTimer)
|
new FlxTimer().start(2, function(tmr:FlxTimer)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user