mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 11:26:53 -05:00
quieter trailer and GF doin shit
This commit is contained in:
parent
3f1552be6e
commit
26f690a264
4 changed files with 38 additions and 15 deletions
|
@ -73,6 +73,14 @@ class Character extends FlxSprite
|
||||||
loadOffsetFile(curCharacter);
|
loadOffsetFile(curCharacter);
|
||||||
|
|
||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
case 'gf-tankmen':
|
||||||
|
frames = Paths.getSparrowAtlas('characters/gfTankmen');
|
||||||
|
animation.addByIndices('sad', 'GF Crying at Gunpoint', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "", 24, true);
|
||||||
|
animation.addByIndices('danceLeft', 'GF Dancing at Gunpoint', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||||
|
animation.addByIndices('danceRight', 'GF Dancing at Gunpoint', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
||||||
|
|
||||||
|
loadOffsetFile('gf');
|
||||||
|
playAnim('danceRight');
|
||||||
|
|
||||||
case 'bf-holding-gf':
|
case 'bf-holding-gf':
|
||||||
frames = Paths.getSparrowAtlas('characters/bfAndGF');
|
frames = Paths.getSparrowAtlas('characters/bfAndGF');
|
||||||
|
@ -614,7 +622,7 @@ class Character extends FlxSprite
|
||||||
{
|
{
|
||||||
switch (curCharacter)
|
switch (curCharacter)
|
||||||
{
|
{
|
||||||
case 'gf' | 'gf-christmas' | 'gf-car' | 'gf-pixel':
|
case 'gf' | 'gf-christmas' | 'gf-car' | 'gf-pixel' | 'gf-tankmen':
|
||||||
if (!animation.curAnim.name.startsWith('hair'))
|
if (!animation.curAnim.name.startsWith('hair'))
|
||||||
{
|
{
|
||||||
danced = !danced;
|
danced = !danced;
|
||||||
|
|
|
@ -543,14 +543,14 @@ class PlayState extends MusicBeatState
|
||||||
tankWatchtower = new BGSprite('tankWatchtower', 100, 50, 0.5, 0.5, ['watchtower gradient color']);
|
tankWatchtower = new BGSprite('tankWatchtower', 100, 50, 0.5, 0.5, ['watchtower gradient color']);
|
||||||
add(tankWatchtower);
|
add(tankWatchtower);
|
||||||
|
|
||||||
|
tankmanRun = new FlxTypedGroup<TankmenBG>();
|
||||||
|
add(tankmanRun);
|
||||||
|
|
||||||
var tankGround:BGSprite = new BGSprite('tankGround', -420, -150);
|
var tankGround:BGSprite = new BGSprite('tankGround', -420, -150);
|
||||||
tankGround.setGraphicSize(Std.int(tankGround.width * 1.15));
|
tankGround.setGraphicSize(Std.int(tankGround.width * 1.15));
|
||||||
tankGround.updateHitbox();
|
tankGround.updateHitbox();
|
||||||
add(tankGround);
|
add(tankGround);
|
||||||
|
|
||||||
tankmanRun = new FlxTypedGroup<TankmenBG>();
|
|
||||||
add(tankmanRun);
|
|
||||||
|
|
||||||
// smokeLeft.screenCenter();
|
// smokeLeft.screenCenter();
|
||||||
|
|
||||||
var fgTank0:BGSprite = new BGSprite('tank0', -500, 650, 1.7, 1.5, ['fg']);
|
var fgTank0:BGSprite = new BGSprite('tank0', -500, 650, 1.7, 1.5, ['fg']);
|
||||||
|
@ -609,6 +609,8 @@ class PlayState extends MusicBeatState
|
||||||
gfVersion = 'gf-pixel';
|
gfVersion = 'gf-pixel';
|
||||||
case 'schoolEvil':
|
case 'schoolEvil':
|
||||||
gfVersion = 'gf-pixel';
|
gfVersion = 'gf-pixel';
|
||||||
|
case 'tank':
|
||||||
|
gfVersion = 'gf-tankmen';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SONG.song.toLowerCase() == 'stress')
|
if (SONG.song.toLowerCase() == 'stress')
|
||||||
|
@ -625,9 +627,9 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
for (i in 0...TankmenBG.animationNotes.length)
|
for (i in 0...TankmenBG.animationNotes.length)
|
||||||
{
|
{
|
||||||
if (FlxG.random.bool(50))
|
if (FlxG.random.bool(16))
|
||||||
{
|
{
|
||||||
var tankman:TankmenBG = new TankmenBG(500, 200 + FlxG.random.int(0, 150), TankmenBG.animationNotes[i][1] < 2);
|
var tankman:TankmenBG = new TankmenBG(500, 200 + FlxG.random.int(50, 100), TankmenBG.animationNotes[i][1] < 2);
|
||||||
tankman.strumTime = TankmenBG.animationNotes[i][0];
|
tankman.strumTime = TankmenBG.animationNotes[i][0];
|
||||||
tankmanRun.add(tankman);
|
tankmanRun.add(tankman);
|
||||||
}
|
}
|
||||||
|
@ -721,17 +723,17 @@ class PlayState extends MusicBeatState
|
||||||
gf.x += 180;
|
gf.x += 180;
|
||||||
gf.y += 300;
|
gf.y += 300;
|
||||||
case "tank":
|
case "tank":
|
||||||
gf.y += 10;
|
gf.y -= 65;
|
||||||
gf.x -= 30;
|
gf.x -= 110;
|
||||||
boyfriend.x += 40;
|
boyfriend.x += 40;
|
||||||
boyfriend.y += 0;
|
boyfriend.y += 0;
|
||||||
dad.y += 60;
|
dad.y += 60;
|
||||||
dad.x -= 80;
|
dad.x -= 80;
|
||||||
|
|
||||||
if (gfVersion != 'pico-speaker')
|
if (gfVersion == 'gf-tankmen')
|
||||||
{
|
{
|
||||||
gf.x -= 80;
|
gf.x += 80;
|
||||||
gf.y -= 75;
|
// gf.y -= 75;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -903,8 +905,8 @@ class PlayState extends MusicBeatState
|
||||||
switch (curSong.toLowerCase())
|
switch (curSong.toLowerCase())
|
||||||
{
|
{
|
||||||
// REMOVE THIS LATER
|
// REMOVE THIS LATER
|
||||||
case 'stress':
|
// case 'stress':
|
||||||
stressIntro();
|
// stressIntro();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
startCountdown();
|
startCountdown();
|
||||||
|
@ -2310,6 +2312,8 @@ class PlayState extends MusicBeatState
|
||||||
noteSplash.cameras = [camHUD];
|
noteSplash.cameras = [camHUD];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only add the score if you're not on practice mode
|
||||||
|
if (!practiceMode)
|
||||||
songScore += score;
|
songScore += score;
|
||||||
|
|
||||||
/* if (combo > 60)
|
/* if (combo > 60)
|
||||||
|
@ -2619,6 +2623,7 @@ class PlayState extends MusicBeatState
|
||||||
}
|
}
|
||||||
combo = 0;
|
combo = 0;
|
||||||
|
|
||||||
|
if (!practiceMode)
|
||||||
songScore -= 10;
|
songScore -= 10;
|
||||||
|
|
||||||
FlxG.sound.play(Paths.soundRandom('missnote', 1, 3), FlxG.random.float(0.1, 0.2));
|
FlxG.sound.play(Paths.soundRandom('missnote', 1, 3), FlxG.random.float(0.1, 0.2));
|
||||||
|
|
|
@ -31,6 +31,11 @@ class TankmenBG extends FlxSprite
|
||||||
goingRight = isGoingRight;
|
goingRight = isGoingRight;
|
||||||
endingOffset = FlxG.random.float(50, 200);
|
endingOffset = FlxG.random.float(50, 200);
|
||||||
|
|
||||||
|
updateHitbox();
|
||||||
|
|
||||||
|
setGraphicSize(Std.int(width * 0.8));
|
||||||
|
updateHitbox();
|
||||||
|
|
||||||
tankSpeed = FlxG.random.float(0.6, 1);
|
tankSpeed = FlxG.random.float(0.6, 1);
|
||||||
|
|
||||||
if (goingRight)
|
if (goingRight)
|
||||||
|
|
|
@ -157,6 +157,7 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
video.width = video.videoWidth;
|
video.width = video.videoWidth;
|
||||||
video.height = video.videoHeight;
|
video.height = video.videoHeight;
|
||||||
|
// video.
|
||||||
}
|
}
|
||||||
|
|
||||||
private function netStream_onAsyncError(event:AsyncErrorEvent):Void
|
private function netStream_onAsyncError(event:AsyncErrorEvent):Void
|
||||||
|
@ -179,7 +180,10 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
private function overlay_onMouseDown(event:MouseEvent):Void
|
private function overlay_onMouseDown(event:MouseEvent):Void
|
||||||
{
|
{
|
||||||
|
netStream.soundTransform.volume = 0.2;
|
||||||
|
netStream.soundTransform.pan = -1;
|
||||||
netStream.play(Paths.file('music/kickstarterTrailer.mp4'));
|
netStream.play(Paths.file('music/kickstarterTrailer.mp4'));
|
||||||
|
|
||||||
FlxG.stage.removeChild(overlay);
|
FlxG.stage.removeChild(overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,6 +435,7 @@ class TitleState extends MusicBeatState
|
||||||
FlxG.stage.removeChild(video);
|
FlxG.stage.removeChild(video);
|
||||||
|
|
||||||
startIntro();
|
startIntro();
|
||||||
|
skipIntro();
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue