Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Master #1750

Merged
merged 127 commits into from
Aug 14, 2021
Merged

Master #1750

Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
05817e1
WHY WAS IT LIKE THIS BRUH BRUH BRUH BRU HBUH
Kade-github Aug 3, 2021
6103c53
Fix chart load/save difficulty
cuckydev Aug 3, 2021
8a57ce4
Fix inconsistent stuff
cuckydev Aug 3, 2021
7f5d4ac
Fix sustain clipping
cuckydev Aug 3, 2021
3765191
Improve sus clipping and turn off dad and pico idle loops
cuckydev Aug 3, 2021
89f81d7
Merge pull request #1555 from cuckydev/fixeverything
Kade-github Aug 3, 2021
33b069b
Merge pull request #1556 from cuckydev/fixsusssssy
Kade-github Aug 3, 2021
40a7030
Delete SusClip.hx
cuckydev Aug 3, 2021
005f72e
Merge pull request #1559 from cuckydev/removesusclip
Kade-github Aug 3, 2021
7c1f566
Fix note alpha during sustain clip
cuckydev Aug 3, 2021
e913173
Merge pull request #1561 from cuckydev/master
Kade-github Aug 3, 2021
c36af07
stable into master lol!
CyndaquilDAC Aug 3, 2021
bf96409
improve antialiasing option
CyndaquilDAC Aug 3, 2021
36f6e2a
Merge pull request #1568 from CyndaquilDAC/improve-antialiasing-option
Kade-github Aug 4, 2021
5698b68
updates to early window and health gain + work on waveform
Kade-github Aug 4, 2021
574d13e
fix a modchart bug with cameras
Kade-github Aug 4, 2021
cd32686
Merge branch 'master' of https://github.com/KadeDev/Kade-Engine
Kade-github Aug 4, 2021
bbd8599
fix crashing on tutorial
Kade-github Aug 4, 2021
ca0245d
fix thorn man
Kade-github Aug 4, 2021
78b7faf
fix freeplay visual bug
Kade-github Aug 4, 2021
fa77122
re add start section and result screen clean
Kade-github Aug 4, 2021
298ff6e
fix
Spel0 Aug 4, 2021
42fe20f
forgor
Spel0 Aug 5, 2021
83d6944
Scalable text and spacing fix
Xela10001 Aug 6, 2021
7b97080
Added resizing existing text
Xela10001 Aug 6, 2021
a936523
fix story mode desyncing ranking with combos
Kade-github Aug 6, 2021
b2bed6b
fix animation shit
Kade-github Aug 8, 2021
24b3003
strums
Spel0 Aug 8, 2021
7ce5049
Merge branch 'master' into botplay-light-strums
Spel0 Aug 8, 2021
ad2b554
why is it even
Spel0 Aug 8, 2021
54b8858
lamo
Spel0 Aug 8, 2021
24acbc5
Instant Respawn
Catbrother-Everything Aug 8, 2021
aaee8b2
second left frames and fixed dad fla
CyndaquilDAC Aug 8, 2021
6c28a10
Merge pull request #1647 from Spel0/botplay-light-strums
Kade-github Aug 8, 2021
0dc0cd7
Merge pull request #1593 from Spel0/trees-fix
Kade-github Aug 8, 2021
bbcbb49
sussy fortnite
CyndaquilDAC Aug 8, 2021
8d0fb33
Merge branch 'KadeDev:stable' into dad-but-better
CyndaquilDAC Aug 8, 2021
3af8a1d
Merge pull request #1614 from Xela10001/patch-1
Kade-github Aug 8, 2021
1e6362d
Merge branch 'KadeDev:master' into master
CyndaquilDAC Aug 8, 2021
6ec60b2
Merge pull request #1652 from CyndaquilDAC/dad-but-better
Kade-github Aug 8, 2021
bc62372
make snap work and add skipping sections
Kade-github Aug 8, 2021
4629ab4
Merge branch 'master' of https://github.com/KadeDev/Kade-Engine
Kade-github Aug 8, 2021
728d22e
Merge branch 'KadeDev:master' into master
CyndaquilDAC Aug 8, 2021
0833778
senpai fix
Spel0 Aug 8, 2021
42269e0
fix for bf sprites with less than 10 frames of note animation
Spel0 Aug 8, 2021
f2d0a5b
Midpoint-Based Movement Functionality Added
Xela10001 Aug 8, 2021
ea1417d
cleaner dialogue code
CyndaquilDAC Aug 8, 2021
b166733
fix stutter at the start of the song
Kade-github Aug 8, 2021
8d6e9d8
fix the sutter at the start of the song
Kade-github Aug 8, 2021
b2a2034
Merge pull request #1660 from Xela10001/patch-2
Kade-github Aug 8, 2021
35c725a
Merge pull request #1651 from Lil-Parrot/Instant-Respawn-Option
Kade-github Aug 8, 2021
1873a94
Merge pull request #1662 from CyndaquilDAC/cleaner-dialogue-code
Kade-github Aug 8, 2021
53f6095
make zooming better and qol in customize state
Kade-github Aug 9, 2021
973689d
fix some aligning as well
Kade-github Aug 9, 2021
accc74f
fix zooming
Kade-github Aug 9, 2021
61bb962
Merge branch 'master' of https://github.com/KadeDev/Kade-Engine
Kade-github Aug 9, 2021
3a748bd
arrows anim fix
Spel0 Aug 10, 2021
83ef995
Revert "arrows anim fix"
Spel0 Aug 10, 2021
418f9d2
Revert "Revert "arrows anim fix""
Spel0 Aug 10, 2021
13dee19
Merge pull request #1659 from Spel0/toasters-toast-toast
Kade-github Aug 11, 2021
f7e6b95
save
Kade-github Aug 11, 2021
8daddfa
basic selection and keybinds for charter
Kade-github Aug 11, 2021
fd92f15
Merge branch 'master' of https://github.com/KadeDev/Kade-Engine
Kade-github Aug 11, 2021
49ae503
also fix black box thing
Kade-github Aug 11, 2021
ce037c3
copy and paste
Kade-github Aug 11, 2021
0dd0a05
maths for da fuckin drag box
Kade-github Aug 11, 2021
7f80d19
undoing and better pasting
Kade-github Aug 11, 2021
9d9f767
fix scroll speed changes
Kade-github Aug 11, 2021
0c925f3
fix sm charts putting notes in wrong sections
Kade-github Aug 11, 2021
fc85f3e
fix section skip on bpm changes
Kade-github Aug 12, 2021
33d1eaf
oh right its actually this
Kade-github Aug 12, 2021
2ea025f
optimization to note rendering and sm fixes
Kade-github Aug 12, 2021
8034f31
fix botplay strums
Kade-github Aug 12, 2021
cde9e30
make botplay based on time instead of fuckin stupid ass posistionsstgast
Kade-github Aug 12, 2021
880c51a
some more fixes so botplay works
Kade-github Aug 12, 2021
c7ca061
I don't care if its too late or not
Kade-github Aug 12, 2021
28d1e25
bruh bruh bruh
Kade-github Aug 12, 2021
6196046
agag
Kade-github Aug 12, 2021
19c49b0
optimize combos
Kade-github Aug 12, 2021
badd9bf
value changing
Kade-github Aug 12, 2021
7c3b286
save
Kade-github Aug 12, 2021
ab94841
convert fnf bpm changes to ke bpm changes
Kade-github Aug 12, 2021
63ac4ec
fix event ui layering
Kade-github Aug 12, 2021
f35bce9
fixator
Spel0 Aug 12, 2021
44fa55f
Fix offsets(hold ones are still buggy tho)
Spel0 Aug 12, 2021
6c1af67
hold notes position fix
Spel0 Aug 12, 2021
695bb8f
If someone would change pixel zoom var? idk
Spel0 Aug 12, 2021
22da852
dumb
Spel0 Aug 12, 2021
a21cd8f
Chart menu fixes
Spel0 Aug 12, 2021
e099572
a lot of little fixes and alt animation per notes
Kade-github Aug 13, 2021
b2fef2d
fix steps reseting in gameplay
Kade-github Aug 13, 2021
5f8ca9b
oops don't add this lol
Kade-github Aug 13, 2021
435343b
Merge branch 'master' into fix-fixin-fixes
Spel0 Aug 13, 2021
c2db786
from previous PR(to fix crash)
Spel0 Aug 13, 2021
91a6b77
Ability for BF to have idle and notes alt anims + failsafe
Spel0 Aug 13, 2021
fac055c
for opponent
Spel0 Aug 13, 2021
4952cf8
Separate check boxes for P1 and Opponent alt idles
Spel0 Aug 13, 2021
cf9237c
conversion
Spel0 Aug 13, 2021
b749f10
fix deleting not removing selected boxes
Kade-github Aug 13, 2021
94b6cba
make claps based on time instead of y positions
Kade-github Aug 13, 2021
2b13c59
optimization for claps as well
Kade-github Aug 13, 2021
73d5f06
oh and a playing check lol
Kade-github Aug 13, 2021
c3020d9
fix play here
Kade-github Aug 13, 2021
5eb3a66
if optimize mode is on, then remove assets and free memory
Kade-github Aug 14, 2021
ae269dd
optiatmi
Kade-github Aug 14, 2021
7d59048
ughuhuh
Kade-github Aug 14, 2021
5f4dc93
make pixel notes check notestyle not stage
arthu-rguo Aug 14, 2021
87b8afa
Merge branch 'KadeDev:master' into master
arthu-rguo Aug 14, 2021
adc2e71
fix zoom reset
Kade-github Aug 14, 2021
313047e
Update ChartingState.hx
Spel0 Aug 14, 2021
048e167
Merge branch 'master' into fix-fixin-fixes
Spel0 Aug 14, 2021
d75e63c
fuck nuts balls sex penis even
Kade-github Aug 14, 2021
e3e37d9
Merge pull request #1735 from ArfieCat/master
Kade-github Aug 14, 2021
04247e9
Merge pull request #1717 from Spel0/fix-fixin-fixes
Kade-github Aug 14, 2021
3c0b69d
version update and other crap
Kade-github Aug 14, 2021
fa9cd7e
Merge branch 'master' of https://github.com/KadeDev/Kade-Engine
Kade-github Aug 14, 2021
a148c75
penis
Kade-github Aug 14, 2021
6376fe6
save
Kade-github Aug 14, 2021
b2f596f
fix song bpm
Kade-github Aug 14, 2021
7d5d091
penis
Kade-github Aug 14, 2021
46de02d
yooo fuckin linux game
Kade-github Aug 14, 2021
f488aab
pushed building
Kade-github Aug 14, 2021
84e054d
bruhg
Kade-github Aug 14, 2021
500dd5d
make checkerboard off by default
Kade-github Aug 14, 2021
84c4e95
changelog's
Kade-github Aug 14, 2021
37dfc3b
version jump
Kade-github Aug 14, 2021
a3059f4
version jump
Kade-github Aug 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 34 additions & 38 deletions source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ class ChartingState extends MusicBeatState
FlxG.sound.music.stop();
if (!PlayState.isSM)
vocals.stop();
PlayState.startTime = lastUpdatedSection.startTime;
PlayState.startTime = _song.notes[curSection].startTime;
LoadingState.loadAndSwitchState(new PlayState());
});

Expand Down Expand Up @@ -1842,6 +1842,7 @@ class ChartingState extends MusicBeatState
{
if (i.overlaps(selectBox) && !i.charterSelected)
{
trace("seleting " + i.strumTime);
selectNote(i, false);
}
}
Expand Down Expand Up @@ -2141,20 +2142,14 @@ class ChartingState extends MusicBeatState

if (playClaps)
{
curRenderedNotes.forEach(function(note:Note)
for(note in shownNotes)
{
if (FlxG.sound.music.playing)
if (note.strumTime <= Conductor.songPosition && !claps.contains(note) && FlxG.sound.music.playing)
{
if (strumLine.overlaps(note))
{
if(!claps.contains(note))
{
claps.push(note);
FlxG.sound.play(Paths.sound('SNAP'));
}
}
claps.push(note);
FlxG.sound.play(Paths.sound('SNAP'));
}
});
}
}
/*curRenderedNotes.forEach(function(note:Note) {
if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit
Expand Down Expand Up @@ -2240,7 +2235,7 @@ class ChartingState extends MusicBeatState
{
if (FlxG.keys.pressed.CONTROL)
{
selectNote(note);
selectNote(note, false);
}
else
{
Expand Down Expand Up @@ -2717,26 +2712,31 @@ class ChartingState extends MusicBeatState
selectedBoxes.members.remove(selectedBoxes.members[0]);
}

for (i in getSectionByTime(note.strumTime).sectionNotes)
for(sec in _song.notes)
{
if (i[0] == note.strumTime && i[1] == note.rawNoteData)
swagNum = 0;
for(i in sec.sectionNotes)
{
curSelectedNote = getSectionByTime(note.strumTime).sectionNotes[swagNum];
if (curSelectedNoteObject != null)
curSelectedNoteObject.charterSelected = false;
if (i[0] == note.strumTime && i[1] == note.rawNoteData)
{
curSelectedNote = sec.sectionNotes[swagNum];
if (curSelectedNoteObject != null)
curSelectedNoteObject.charterSelected = false;

curSelectedNoteObject = note;
if (!note.charterSelected)
{
var box = new ChartingBox(note.x,note.y,note);
box.connectedNoteData = i;
selectedBoxes.add(box);
note.charterSelected = true;
curSelectedNoteObject.charterSelected = true;
}


curSelectedNoteObject = note;
if (!note.charterSelected)
{
var box = new ChartingBox(note.x,note.y,note);
box.connectedNoteData = i;
selectedBoxes.add(box);
curSelectedNoteObject.charterSelected = true;
}

swagNum += 1;
}

swagNum += 1;
}

updateNoteUI();
Expand Down Expand Up @@ -2775,18 +2775,14 @@ class ChartingState extends MusicBeatState
if (note.sustainLength > 0)
curRenderedSustains.remove(note.noteCharterObject);

if (note.charterSelected)
for(i in 0...selectedBoxes.members.length)
{
note.charterSelected = false;
for(i in 0...selectedBoxes.members.length)
var box = selectedBoxes.members[i];
if (box.connectedNote == note)
{
var box = selectedBoxes.members[i];
if (box.connectedNote == note)
{
selectedBoxes.members.remove(box);
box.destroy();
return;
}
selectedBoxes.members.remove(box);
box.destroy();
return;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class FreeplayState extends MusicBeatState

override function create()
{
clean();
var initSonglist = CoolUtil.coolTextFile(Paths.txt('data/freeplaySonglist'));

//var diffList = "";
Expand Down Expand Up @@ -398,6 +399,7 @@ class FreeplayState extends MusicBeatState
PlayState.isSM = false;
#end
LoadingState.loadAndSwitchState(new PlayState());
clean();
}
}

Expand Down
1 change: 1 addition & 0 deletions source/HelperFunctions.hx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import flixel.FlxG;
import flixel.math.FlxMath;

class HelperFunctions
Expand Down
1 change: 1 addition & 0 deletions source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class MainMenuState extends MusicBeatState

override function create()
{
clean();
#if windows
// Updating Discord Rich Presence
DiscordClient.changePresence("In the Menus", null);
Expand Down
21 changes: 21 additions & 0 deletions source/MusicBeatState.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package;

import flixel.FlxBasic;
#if windows
import Discord.DiscordClient;
#end
Expand All @@ -22,6 +23,26 @@ class MusicBeatState extends FlxUIState
inline function get_controls():Controls
return PlayerSettings.player1.controls;

private var assets:Array<FlxBasic> = [];

override function add(Object:flixel.FlxBasic):flixel.FlxBasic
{
if (FlxG.save.data.optimize)
assets.push(Object);
return super.add(Object);
}

public function clean()
{
if (FlxG.save.data.optimize)
{
for(i in assets)
{
remove(i);
}
}
}

override function create()
{
TimingStruct.clearTimings();
Expand Down
3 changes: 3 additions & 0 deletions source/OptionsMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class OptionsMenu extends MusicBeatState
var blackBorder:FlxSprite;
override function create()
{
clean();
instance = this;
var menuBG:FlxSprite = new FlxSprite().loadGraphic(Paths.image("menuDesat"));

Expand Down Expand Up @@ -139,7 +140,9 @@ class OptionsMenu extends MusicBeatState
if (acceptInput)
{
if (controls.BACK && !isCat)
{
FlxG.switchState(new MainMenuState());
}
else if (controls.BACK)
{
isCat = false;
Expand Down
4 changes: 4 additions & 0 deletions source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class PauseSubState extends MusicBeatSubstate
{
var daSelected:String = menuItems[curSelected];


switch (daSelected)
{
case "Resume":
Expand All @@ -221,6 +222,7 @@ class PauseSubState extends MusicBeatSubstate
PlayState.instance.remove(PlayState.instance.videoSprite);
PlayState.instance.removedVideo = true;
}
PlayState.instance.clean();
FlxG.resetState();
case "Exit to menu":
PlayState.startTime = 0;
Expand All @@ -247,6 +249,8 @@ class PauseSubState extends MusicBeatSubstate
if (FlxG.save.data.fpsCap > 290)
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(290);

PlayState.instance.clean();

if (PlayState.isStoryMode)
FlxG.switchState(new StoryMenuState());
else
Expand Down
78 changes: 51 additions & 27 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,46 @@ class PlayState extends MusicBeatState
}
}

if (startTime != 0)
{
var toBeRemoved = [];
for(i in 0...notes.members.length)
{
var dunceNote:Note = notes.members[i];

if (dunceNote.strumTime - startTime <= 0)
toBeRemoved.push(dunceNote);
else
{
if (PlayStateChangeables.useDownscroll)
{
if (dunceNote.mustPress)
dunceNote.y = (playerStrums.members[Math.floor(Math.abs(dunceNote.noteData))].y
+ 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) - dunceNote.noteYOff;
else
dunceNote.y = (strumLineNotes.members[Math.floor(Math.abs(dunceNote.noteData))].y
+ 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) - dunceNote.noteYOff;
}
else
{
if (dunceNote.mustPress)
dunceNote.y = (playerStrums.members[Math.floor(Math.abs(dunceNote.noteData))].y
- 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) + dunceNote.noteYOff;
else
dunceNote.y = (strumLineNotes.members[Math.floor(Math.abs(dunceNote.noteData))].y
- 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) + dunceNote.noteYOff;
}
}
}

for(i in toBeRemoved)
notes.members.remove(i);
}

trace('generated');

// add(strumLine);
Expand Down Expand Up @@ -1362,34 +1402,7 @@ class PlayState extends MusicBeatState
//generateStaticArrows(0);
//generateStaticArrows(1);

if (startTime != 0)
{
var toBeRemoved = [];
for(i in 0...unspawnNotes.length)
{
var dunceNote:Note = unspawnNotes[i];

if (dunceNote.strumTime - startTime <= 0)
toBeRemoved.push(dunceNote);
else if (dunceNote.strumTime - startTime < 3500)
{
notes.add(dunceNote);

if (dunceNote.mustPress)
dunceNote.y = (playerStrums.members[Math.floor(Math.abs(dunceNote.noteData))].y
+ 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) - dunceNote.noteYOff;
else
dunceNote.y = (strumLineNotes.members[Math.floor(Math.abs(dunceNote.noteData))].y
+ 0.45 * (startTime - dunceNote.strumTime) * FlxMath.roundDecimal(PlayStateChangeables.scrollSpeed == 1 ? SONG.speed : PlayStateChangeables.scrollSpeed,
2)) - dunceNote.noteYOff;
toBeRemoved.push(dunceNote);
}
}

for(i in toBeRemoved)
unspawnNotes.remove(i);
}

#if windows
// pre lowercasing the song name (startCountdown)
Expand Down Expand Up @@ -2430,6 +2443,7 @@ class PlayState extends MusicBeatState
{
trace('GITAROO MAN EASTER EGG');
FlxG.switchState(new GitarooPause());
clean();
}
else
openSubState(new PauseSubState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
Expand All @@ -2451,7 +2465,9 @@ class PlayState extends MusicBeatState
#if windows
DiscordClient.changePresence("Chart Editor", null, null, true);
#end

FlxG.switchState(new ChartingState());
clean();
FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleInput);
FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, releaseInput);
#if windows
Expand Down Expand Up @@ -2505,6 +2521,7 @@ class PlayState extends MusicBeatState
}

FlxG.switchState(new AnimationDebug(SONG.player2));
clean();
FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleInput);
FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, releaseInput);
#if windows
Expand All @@ -2519,6 +2536,7 @@ class PlayState extends MusicBeatState
if (FlxG.keys.justPressed.ZERO)
{
FlxG.switchState(new AnimationDebug(SONG.player1));
clean();
FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleInput);
FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, releaseInput);
#if windows
Expand Down Expand Up @@ -3379,6 +3397,7 @@ class PlayState extends MusicBeatState
FlxG.sound.playMusic(Paths.music('freakyMenu'));
offsetTesting = false;
LoadingState.loadAndSwitchState(new OptionsMenu());
clean();
FlxG.save.data.offset = offsetTest;
}
else
Expand Down Expand Up @@ -3416,6 +3435,7 @@ class PlayState extends MusicBeatState
FlxG.sound.playMusic(Paths.music('freakyMenu'));
Conductor.changeBPM(102);
FlxG.switchState(new StoryMenuState());
clean();
}

#if windows
Expand Down Expand Up @@ -3470,6 +3490,7 @@ class PlayState extends MusicBeatState
FlxG.sound.music.stop();

LoadingState.loadAndSwitchState(new PlayState());
clean();
}
}
else
Expand All @@ -3490,7 +3511,10 @@ class PlayState extends MusicBeatState
});
}
else
{
FlxG.switchState(new FreeplayState());
clean();
}
}
}
}
Expand Down
Loading