mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
section shit
This commit is contained in:
parent
cddb67d984
commit
518ee235d1
2 changed files with 45 additions and 5 deletions
|
@ -251,8 +251,6 @@ class Character extends FlxSprite
|
||||||
animation.addByPrefix('singUPmiss', 'pico Up note miss', 24);
|
animation.addByPrefix('singUPmiss', 'pico Up note miss', 24);
|
||||||
animation.addByPrefix('singDOWNmiss', 'Pico Down Note MISS', 24);
|
animation.addByPrefix('singDOWNmiss', 'Pico Down Note MISS', 24);
|
||||||
|
|
||||||
playAnim('idle');
|
|
||||||
|
|
||||||
addOffset('idle');
|
addOffset('idle');
|
||||||
addOffset("singUP", -29, 27);
|
addOffset("singUP", -29, 27);
|
||||||
addOffset("singRIGHT", -68, -7);
|
addOffset("singRIGHT", -68, -7);
|
||||||
|
@ -302,6 +300,8 @@ class Character extends FlxSprite
|
||||||
addOffset('deathConfirm', 37, 69);
|
addOffset('deathConfirm', 37, 69);
|
||||||
addOffset('scared', -4);
|
addOffset('scared', -4);
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
|
|
||||||
case 'bf-christmas':
|
case 'bf-christmas':
|
||||||
|
@ -329,6 +329,8 @@ class Character extends FlxSprite
|
||||||
addOffset("singDOWNmiss", -11, -19);
|
addOffset("singDOWNmiss", -11, -19);
|
||||||
addOffset("hey", 7, 4);
|
addOffset("hey", 7, 4);
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
case 'bf-car':
|
case 'bf-car':
|
||||||
var tex = FlxAtlasFrames.fromSparrow('assets/images/bfCar.png', 'assets/images/bfCar.xml');
|
var tex = FlxAtlasFrames.fromSparrow('assets/images/bfCar.png', 'assets/images/bfCar.xml');
|
||||||
|
@ -352,6 +354,7 @@ class Character extends FlxSprite
|
||||||
addOffset("singRIGHTmiss", -30, 21);
|
addOffset("singRIGHTmiss", -30, 21);
|
||||||
addOffset("singLEFTmiss", 12, 24);
|
addOffset("singLEFTmiss", 12, 24);
|
||||||
addOffset("singDOWNmiss", -11, -19);
|
addOffset("singDOWNmiss", -11, -19);
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
case 'bf-pixel':
|
case 'bf-pixel':
|
||||||
|
@ -379,6 +382,8 @@ class Character extends FlxSprite
|
||||||
setGraphicSize(Std.int(width * 6));
|
setGraphicSize(Std.int(width * 6));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
width -= 100;
|
width -= 100;
|
||||||
height -= 100;
|
height -= 100;
|
||||||
|
|
||||||
|
@ -417,6 +422,8 @@ class Character extends FlxSprite
|
||||||
addOffset("singLEFT", 40);
|
addOffset("singLEFT", 40);
|
||||||
addOffset("singDOWN", 14);
|
addOffset("singDOWN", 14);
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
setGraphicSize(Std.int(width * 6));
|
setGraphicSize(Std.int(width * 6));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
|
||||||
|
@ -434,6 +441,7 @@ class Character extends FlxSprite
|
||||||
addOffset("singRIGHT");
|
addOffset("singRIGHT");
|
||||||
addOffset("singLEFT", 40);
|
addOffset("singLEFT", 40);
|
||||||
addOffset("singDOWN", 14);
|
addOffset("singDOWN", 14);
|
||||||
|
playAnim('idle');
|
||||||
|
|
||||||
setGraphicSize(Std.int(width * 6));
|
setGraphicSize(Std.int(width * 6));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
@ -485,9 +493,11 @@ class Character extends FlxSprite
|
||||||
addOffset("singRIGHT-alt", -1, -24);
|
addOffset("singRIGHT-alt", -1, -24);
|
||||||
addOffset("singLEFT-alt", -30, 15);
|
addOffset("singLEFT-alt", -30, 15);
|
||||||
addOffset("singDOWN-alt", -30, -27);
|
addOffset("singDOWN-alt", -30, -27);
|
||||||
|
|
||||||
|
playAnim('idle');
|
||||||
}
|
}
|
||||||
|
|
||||||
playAnim('singUP');
|
dance();
|
||||||
|
|
||||||
if (isPlayer)
|
if (isPlayer)
|
||||||
{
|
{
|
||||||
|
@ -618,6 +628,8 @@ class Character extends FlxSprite
|
||||||
{
|
{
|
||||||
offset.set(daOffset[0], daOffset[1]);
|
offset.set(daOffset[0], daOffset[1]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
offset.set(0, 0);
|
||||||
|
|
||||||
if (curCharacter == 'gf')
|
if (curCharacter == 'gf')
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ import flixel.addons.effects.FlxTrail;
|
||||||
import flixel.addons.effects.FlxTrailArea;
|
import flixel.addons.effects.FlxTrailArea;
|
||||||
import flixel.addons.effects.chainable.FlxEffectSprite;
|
import flixel.addons.effects.chainable.FlxEffectSprite;
|
||||||
import flixel.addons.effects.chainable.FlxWaveEffect;
|
import flixel.addons.effects.chainable.FlxWaveEffect;
|
||||||
|
import flixel.addons.transition.FlxTransitionableState;
|
||||||
import flixel.graphics.atlas.FlxAtlas;
|
import flixel.graphics.atlas.FlxAtlas;
|
||||||
import flixel.graphics.frames.FlxAtlasFrames;
|
import flixel.graphics.frames.FlxAtlasFrames;
|
||||||
import flixel.group.FlxGroup.FlxTypedGroup;
|
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||||
|
@ -64,6 +65,9 @@ class PlayState extends MusicBeatState
|
||||||
private var curSection:Int = 0;
|
private var curSection:Int = 0;
|
||||||
|
|
||||||
private var camFollow:FlxObject;
|
private var camFollow:FlxObject;
|
||||||
|
|
||||||
|
private static var prevCamFollow:FlxObject;
|
||||||
|
|
||||||
private var strumLineNotes:FlxTypedGroup<FlxSprite>;
|
private var strumLineNotes:FlxTypedGroup<FlxSprite>;
|
||||||
private var playerStrums:FlxTypedGroup<FlxSprite>;
|
private var playerStrums:FlxTypedGroup<FlxSprite>;
|
||||||
|
|
||||||
|
@ -403,7 +407,9 @@ class PlayState extends MusicBeatState
|
||||||
bgGirls.scrollFactor.set(0.9, 0.9);
|
bgGirls.scrollFactor.set(0.9, 0.9);
|
||||||
|
|
||||||
if (SONG.song.toLowerCase() == 'roses')
|
if (SONG.song.toLowerCase() == 'roses')
|
||||||
|
{
|
||||||
bgGirls.getScared();
|
bgGirls.getScared();
|
||||||
|
}
|
||||||
|
|
||||||
bgGirls.setGraphicSize(Std.int(bgGirls.width * daPixelZoom));
|
bgGirls.setGraphicSize(Std.int(bgGirls.width * daPixelZoom));
|
||||||
bgGirls.updateHitbox();
|
bgGirls.updateHitbox();
|
||||||
|
@ -636,6 +642,13 @@ class PlayState extends MusicBeatState
|
||||||
camFollow = new FlxObject(0, 0, 1, 1);
|
camFollow = new FlxObject(0, 0, 1, 1);
|
||||||
|
|
||||||
camFollow.setPosition(camPos.x, camPos.y);
|
camFollow.setPosition(camPos.x, camPos.y);
|
||||||
|
|
||||||
|
if (prevCamFollow != null)
|
||||||
|
{
|
||||||
|
camFollow = prevCamFollow;
|
||||||
|
prevCamFollow = null;
|
||||||
|
}
|
||||||
|
|
||||||
add(camFollow);
|
add(camFollow);
|
||||||
|
|
||||||
FlxG.camera.follow(camFollow, LOCKON, 0.04);
|
FlxG.camera.follow(camFollow, LOCKON, 0.04);
|
||||||
|
@ -750,6 +763,9 @@ class PlayState extends MusicBeatState
|
||||||
black.scrollFactor.set();
|
black.scrollFactor.set();
|
||||||
add(black);
|
add(black);
|
||||||
|
|
||||||
|
if (isStoryMode && SONG.song.toLowerCase() == 'roses')
|
||||||
|
remove(black);
|
||||||
|
|
||||||
new FlxTimer().start(0.3, function(tmr:FlxTimer)
|
new FlxTimer().start(0.3, function(tmr:FlxTimer)
|
||||||
{
|
{
|
||||||
black.alpha -= 0.15;
|
black.alpha -= 0.15;
|
||||||
|
@ -1530,8 +1546,10 @@ class PlayState extends MusicBeatState
|
||||||
if (!inCutscene)
|
if (!inCutscene)
|
||||||
keyShit();
|
keyShit();
|
||||||
|
|
||||||
// if (FlxG.keys.justPressed.ONE)
|
#if debug
|
||||||
// endSong();
|
if (FlxG.keys.justPressed.ONE)
|
||||||
|
endSong();
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
function endSong():Void
|
function endSong():Void
|
||||||
|
@ -1594,10 +1612,20 @@ class PlayState extends MusicBeatState
|
||||||
FlxG.sound.play('assets/sounds/Lights_Shut_off' + TitleState.soundExt);
|
FlxG.sound.play('assets/sounds/Lights_Shut_off' + TitleState.soundExt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SONG.song.toLowerCase() == 'senpai')
|
||||||
|
{
|
||||||
|
transIn = null;
|
||||||
|
transOut = null;
|
||||||
|
prevCamFollow = camFollow;
|
||||||
|
}
|
||||||
|
|
||||||
PlayState.SONG = Song.loadFromJson(PlayState.storyPlaylist[0].toLowerCase() + difficulty, PlayState.storyPlaylist[0]);
|
PlayState.SONG = Song.loadFromJson(PlayState.storyPlaylist[0].toLowerCase() + difficulty, PlayState.storyPlaylist[0]);
|
||||||
FlxG.sound.music.stop();
|
FlxG.sound.music.stop();
|
||||||
|
|
||||||
FlxG.switchState(new PlayState());
|
FlxG.switchState(new PlayState());
|
||||||
|
|
||||||
|
transIn = FlxTransitionableState.defaultTransIn;
|
||||||
|
transOut = FlxTransitionableState.defaultTransOut;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue