mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-24 02:49:33 +00:00
swappable characters debug
This commit is contained in:
parent
ee81c90f6b
commit
41254d2d92
|
@ -8,7 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Added
|
### Added
|
||||||
- Enemy icons change when they you are winning a lot ([Thanks to pahaze for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/138))
|
- Enemy icons change when they you are winning a lot ([Thanks to pahaze for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/138))
|
||||||
- Holding CTRL in charting editor places notes on both sides
|
- Holding CTRL in charting editor places notes on both sides
|
||||||
|
- Q and E changes sustain lengths in note editor
|
||||||
- Other charting editor workflow improvements
|
- Other charting editor workflow improvements
|
||||||
|
### Removed
|
||||||
|
- Removed APE
|
||||||
### Fixed
|
### Fixed
|
||||||
- Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132))
|
- Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132))
|
||||||
|
|
||||||
|
|
1
assets/data/cocoa/cocoa.json
Normal file
1
assets/data/cocoa/cocoa.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -31,3 +31,5 @@ his name isnt evan--silly tiktok
|
||||||
stream chuckie finster--on spotify
|
stream chuckie finster--on spotify
|
||||||
never forget to--pray to god
|
never forget to--pray to god
|
||||||
dont play rust--we only funkin
|
dont play rust--we only funkin
|
||||||
|
good bye--my penis
|
||||||
|
dababy--biggest inspiration
|
|
@ -14,5 +14,6 @@ SrPelo
|
||||||
Austin East
|
Austin East
|
||||||
Krystin, Kaye-lyn, Cassidy, Mack, Levi, and Jasmine.
|
Krystin, Kaye-lyn, Cassidy, Mack, Levi, and Jasmine.
|
||||||
Laurel
|
Laurel
|
||||||
|
bbpanzu
|
||||||
|
|
||||||
BIT BOY - MIKE WELSH
|
BIT BOY - MIKE WELSH
|
Binary file not shown.
Before Width: | Height: | Size: 264 KiB |
BIN
assets/music/Eggnog_Inst.mp3
Normal file
BIN
assets/music/Eggnog_Inst.mp3
Normal file
Binary file not shown.
BIN
assets/music/Eggnog_Inst.ogg
Normal file
BIN
assets/music/Eggnog_Inst.ogg
Normal file
Binary file not shown.
BIN
assets/music/Eggnog_Voices.mp3
Normal file
BIN
assets/music/Eggnog_Voices.mp3
Normal file
Binary file not shown.
BIN
assets/music/Eggnog_Voices.ogg
Normal file
BIN
assets/music/Eggnog_Voices.ogg
Normal file
Binary file not shown.
|
@ -11,9 +11,9 @@ class Boyfriend extends Character
|
||||||
{
|
{
|
||||||
public var stunned:Bool = false;
|
public var stunned:Bool = false;
|
||||||
|
|
||||||
public function new(x:Float, y:Float)
|
public function new(x:Float, y:Float, ?char:String = 'bf')
|
||||||
{
|
{
|
||||||
super(x, y);
|
super(x, y, char, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
override function update(elapsed:Float)
|
override function update(elapsed:Float)
|
||||||
|
|
|
@ -166,7 +166,6 @@ class Character extends FlxSprite
|
||||||
addOffset("singLEFTmiss", 62, 64);
|
addOffset("singLEFTmiss", 62, 64);
|
||||||
addOffset("singDOWNmiss", 210, -28);
|
addOffset("singDOWNmiss", 210, -28);
|
||||||
|
|
||||||
if (!isPlayer)
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
|
|
||||||
case 'bf':
|
case 'bf':
|
||||||
|
@ -188,7 +187,6 @@ class Character extends FlxSprite
|
||||||
animation.addByPrefix('deathConfirm', "BF Dead confirm", 24, false);
|
animation.addByPrefix('deathConfirm', "BF Dead confirm", 24, false);
|
||||||
|
|
||||||
animation.addByPrefix('scared', 'BF idle shaking', 24);
|
animation.addByPrefix('scared', 'BF idle shaking', 24);
|
||||||
playAnim('idle');
|
|
||||||
|
|
||||||
antialiasing = true;
|
antialiasing = true;
|
||||||
|
|
||||||
|
@ -206,6 +204,28 @@ class Character extends FlxSprite
|
||||||
addOffset('deathLoop', 37, 5);
|
addOffset('deathLoop', 37, 5);
|
||||||
addOffset('deathConfirm', 37, 69);
|
addOffset('deathConfirm', 37, 69);
|
||||||
addOffset('scared', -4);
|
addOffset('scared', -4);
|
||||||
|
|
||||||
|
flipX = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
playAnim('singUP');
|
||||||
|
|
||||||
|
if (isPlayer)
|
||||||
|
{
|
||||||
|
flipX = !flipX;
|
||||||
|
|
||||||
|
// var animArray
|
||||||
|
var oldRight = animation.getByName('singRIGHT').frames;
|
||||||
|
animation.getByName('singRIGHT').frames = animation.getByName('singLEFT').frames;
|
||||||
|
animation.getByName('singLEFT').frames = oldRight;
|
||||||
|
|
||||||
|
// IF THEY HAVE MISS ANIMATIONS??
|
||||||
|
if (animation.getByName('singRIGHTmiss') != null)
|
||||||
|
{
|
||||||
|
var oldMiss = animation.getByName('singRIGHTmiss').frames;
|
||||||
|
animation.getByName('singRIGHTmiss').frames = animation.getByName('singLEFTmiss').frames;
|
||||||
|
animation.getByName('singLEFTmiss').frames = oldMiss;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@ class ChartingState extends MusicBeatState
|
||||||
*/
|
*/
|
||||||
var curSection:Int = 0;
|
var curSection:Int = 0;
|
||||||
|
|
||||||
|
public static var lastSection:Int = 0;
|
||||||
|
|
||||||
var bpmTxt:FlxText;
|
var bpmTxt:FlxText;
|
||||||
|
|
||||||
var strumLine:FlxSprite;
|
var strumLine:FlxSprite;
|
||||||
|
@ -79,6 +81,8 @@ class ChartingState extends MusicBeatState
|
||||||
|
|
||||||
override function create()
|
override function create()
|
||||||
{
|
{
|
||||||
|
curSection = lastSection;
|
||||||
|
|
||||||
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
||||||
add(gridBG);
|
add(gridBG);
|
||||||
|
|
||||||
|
@ -167,6 +171,18 @@ class ChartingState extends MusicBeatState
|
||||||
trace('CHECKED!');
|
trace('CHECKED!');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var check_mute_inst = new FlxUICheckBox(10, 200, null, null, "Mute Instrumental (in editor)", 100);
|
||||||
|
check_mute_inst.checked = false;
|
||||||
|
check_mute_inst.callback = function()
|
||||||
|
{
|
||||||
|
var vol:Float = 1;
|
||||||
|
|
||||||
|
if (check_mute_inst.checked)
|
||||||
|
vol = 0;
|
||||||
|
|
||||||
|
FlxG.sound.music.volume = vol;
|
||||||
|
};
|
||||||
|
|
||||||
var saveButton:FlxButton = new FlxButton(110, 8, "Save", function()
|
var saveButton:FlxButton = new FlxButton(110, 8, "Save", function()
|
||||||
{
|
{
|
||||||
saveLevel();
|
saveLevel();
|
||||||
|
@ -217,6 +233,7 @@ class ChartingState extends MusicBeatState
|
||||||
tab_group_song.add(UI_songTitle);
|
tab_group_song.add(UI_songTitle);
|
||||||
|
|
||||||
tab_group_song.add(check_voices);
|
tab_group_song.add(check_voices);
|
||||||
|
tab_group_song.add(check_mute_inst);
|
||||||
tab_group_song.add(saveButton);
|
tab_group_song.add(saveButton);
|
||||||
tab_group_song.add(reloadSong);
|
tab_group_song.add(reloadSong);
|
||||||
tab_group_song.add(reloadSongJson);
|
tab_group_song.add(reloadSongJson);
|
||||||
|
@ -489,12 +506,23 @@ class ChartingState extends MusicBeatState
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.ENTER)
|
if (FlxG.keys.justPressed.ENTER)
|
||||||
{
|
{
|
||||||
|
lastSection = curSection;
|
||||||
|
|
||||||
PlayState.SONG = _song;
|
PlayState.SONG = _song;
|
||||||
FlxG.sound.music.stop();
|
FlxG.sound.music.stop();
|
||||||
vocals.stop();
|
vocals.stop();
|
||||||
FlxG.switchState(new PlayState());
|
FlxG.switchState(new PlayState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FlxG.keys.justPressed.E)
|
||||||
|
{
|
||||||
|
changeNoteSustain(Conductor.stepCrochet);
|
||||||
|
}
|
||||||
|
if (FlxG.keys.justPressed.Q)
|
||||||
|
{
|
||||||
|
changeNoteSustain(-Conductor.stepCrochet);
|
||||||
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.TAB)
|
if (FlxG.keys.justPressed.TAB)
|
||||||
{
|
{
|
||||||
if (FlxG.keys.pressed.SHIFT)
|
if (FlxG.keys.pressed.SHIFT)
|
||||||
|
@ -607,6 +635,18 @@ class ChartingState extends MusicBeatState
|
||||||
super.update(elapsed);
|
super.update(elapsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeNoteSustain(value:Float):Void
|
||||||
|
{
|
||||||
|
if (curSelectedNote[2] != null)
|
||||||
|
{
|
||||||
|
curSelectedNote[2] += value;
|
||||||
|
curSelectedNote[2] = Math.max(curSelectedNote[2], 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateNoteUI();
|
||||||
|
updateGrid();
|
||||||
|
}
|
||||||
|
|
||||||
function recalculateSteps():Int
|
function recalculateSteps():Int
|
||||||
{
|
{
|
||||||
var steps:Int = 0;
|
var steps:Int = 0;
|
||||||
|
@ -675,15 +715,7 @@ class ChartingState extends MusicBeatState
|
||||||
daNum++;
|
daNum++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.pressed.CONTROL)
|
|
||||||
{
|
|
||||||
FlxG.sound.music.time = (daLength - lengthBpmBullshit()) * Conductor.stepCrochet;
|
FlxG.sound.music.time = (daLength - lengthBpmBullshit()) * Conductor.stepCrochet;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
FlxG.sound.music.time += (lengthBpmBullshit() * Conductor.stepCrochet) * sec;
|
|
||||||
}
|
|
||||||
|
|
||||||
vocals.time = FlxG.sound.music.time;
|
vocals.time = FlxG.sound.music.time;
|
||||||
updateCurStep();
|
updateCurStep();
|
||||||
}
|
}
|
||||||
|
|
|
@ -312,7 +312,7 @@ class PlayState extends MusicBeatState
|
||||||
dad.y += 300;
|
dad.y += 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
boyfriend = new Boyfriend(770, 450);
|
boyfriend = new Boyfriend(770, 450, SONG.player1);
|
||||||
add(boyfriend);
|
add(boyfriend);
|
||||||
|
|
||||||
// REPOSITIONING PER STAGE
|
// REPOSITIONING PER STAGE
|
||||||
|
|
Loading…
Reference in a new issue