Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
i lost interest about this...
Browse files Browse the repository at this point in the history
  • Loading branch information
APRO716 committed May 13, 2023
1 parent d96a0a1 commit 32eb2cf
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
haxe-version: 4.3.1
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
haxe-version: 4.3.1
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
Expand Down
6 changes: 4 additions & 2 deletions hmm.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
},
{
"name": "hxcpp",
"type": "haxelib",
"version": null
"type": "git",
"dir": null,
"ref": "c3e5ab8",
"url": "https://github.com/HaxeFoundation/hxcpp"
},
{
"name": "tjson",
Expand Down
1 change: 1 addition & 0 deletions source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class PauseSubState extends MusicBeatSubstate
MusicBeatState.switchState(new FreeplayState());
}
PlayState.cancelMusicFadeTween();
FlxG.mouse.visible = true; // fuck u
FlxG.sound.playMusic(Paths.music('freakyMenu'));
PlayState.changedDifficulty = false;
PlayState.chartingMode = false;
Expand Down
13 changes: 5 additions & 8 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import flixel.math.FlxPoint;
import flixel.math.FlxRect;
#if (flixel >= "5.3.0")
import flixel.sound.FlxSound;
#else
#else
import flixel.system.FlxSound;
#end
import flixel.text.FlxText;
Expand Down Expand Up @@ -194,7 +194,7 @@ class PlayState extends MusicBeatState
public var health:Float = 1;
public var combo:Int = 0;

var displayedHealth:Float = 0;
public var displayedHealth:Float = 0;
private var healthBarBG:AttachedSprite;
public var healthBar:FlxBar;
var songPercent:Float = 0;
Expand Down Expand Up @@ -1427,7 +1427,7 @@ class PlayState extends MusicBeatState
#end
}

function startAndEnd()
inline function startAndEnd()
{
if(endingSong)
endSong();
Expand Down Expand Up @@ -3040,7 +3040,6 @@ class PlayState extends MusicBeatState
}
noteMiss(daNote);
}

daNote.active = daNote.visible = false;

daNote.kill();
Expand Down Expand Up @@ -3664,8 +3663,6 @@ class PlayState extends MusicBeatState
}
}

FlxG.mouse.visible = true;

timeBarBG.visible = timeBar.visible = timeTxt.visible = false;
canPause = false;
endingSong = true;
Expand Down Expand Up @@ -4069,7 +4066,7 @@ class PlayState extends MusicBeatState
if (sortedNotesList.length > 0) {
for (epicNote in sortedNotesList) {
for (doubleNote in pressNotes) {
if (!doubleNote.isSustainNote && Math.abs(doubleNote.strumTime - epicNote.strumTime) < 2) {
if (Math.abs(doubleNote.strumTime - epicNote.strumTime) < 2) {
doubleNote.kill();
notes.remove(doubleNote, true);
doubleNote.destroy();
Expand Down Expand Up @@ -5032,4 +5029,4 @@ class PlayState extends MusicBeatState

var curLight:Int = -1;
var curLightEvent:Int = -1;
}
}
2 changes: 2 additions & 0 deletions source/ResultState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class ResultState extends MusicBeatState
destroyText();
if (PlayState.isStoryMode){
if(PlayState.storyPlaylist.length <= 0){
FlxG.mouse.visible = true;
FlxG.sound.playMusic(Paths.music('freakyMenu'));
MusicBeatState.switchState(new StoryMenuState());
}else{
Expand All @@ -77,6 +78,7 @@ class ResultState extends MusicBeatState
}
}else{
trace('WENT BACK TO FREEPLAY??');
FlxG.mouse.visible = true;
MusicBeatState.switchState(new FreeplayState());
FlxG.sound.playMusic(Paths.music('freakyMenu'));
}
Expand Down
8 changes: 4 additions & 4 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ class TitleState extends MusicBeatState
var pressedEnter:Bool = FlxG.keys.justPressed.ENTER || controls.ACCEPT || FlxG.mouse.justPressed;

#if desktop
if (FlxG.keys.justPressed.ESCAPE && initialized && !pressedEnter && !stopplz) // THANK YOU BeastlyGhost idk i write correct
if (FlxG.keys.justPressed.ESCAPE && initialized && !pressedEnter && !stopplz) // THANK YOU BeastlyGhost
{
stopplz = true;
stopplz = true; // prevent spam cancelmenu sound lol
FlxG.sound.play(Paths.sound("cancelMenu"), 0.8);
FlxG.sound.music.fadeOut(0.3);
FlxG.camera.fade(FlxColor.BLACK, 0.5, false, function()
Expand Down Expand Up @@ -409,7 +409,7 @@ class TitleState extends MusicBeatState
titleText.color = FlxColor.WHITE;
titleText.alpha = 1;
titleText.animation.play('press');
};
}

FlxG.camera.flash(ClientPrefs.flashing ? FlxColor.WHITE : 0x4CFFFFFF, 1);
FlxG.sound.play(Paths.sound('confirmMenu'), 0.7);
Expand Down Expand Up @@ -674,4 +674,4 @@ class TitleState extends MusicBeatState
skippedIntro = true;
}
}
}
}
5 changes: 1 addition & 4 deletions source/editors/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1667,13 +1667,11 @@ class ChartingState extends MusicBeatState
}
}


if (FlxG.keys.justPressed.BACKSPACE) {
autosaveSong();
PlayState.chartingMode = false;
MusicBeatState.switchState(new editors.MasterEditorMenu());
FlxG.sound.playMusic(Paths.music('freakyMenu'));
FlxG.mouse.visible = false;
return;
}

Expand All @@ -1682,7 +1680,6 @@ class ChartingState extends MusicBeatState
}



if(FlxG.keys.justPressed.Z && curZoom > 0 && !FlxG.keys.pressed.CONTROL) {
--curZoom;
updateZoom();
Expand Down Expand Up @@ -2119,7 +2116,7 @@ class ChartingState extends MusicBeatState

if (FlxG.save.data.chart_waveformInst) {
var sound:FlxSound = FlxG.sound.music;
if (sound.buffer != null) {
if (sound != null && sound.buffer != null) {
var bytes:Bytes = sound.buffer.data.toBytes();

wavData = waveformData(
Expand Down

0 comments on commit 32eb2cf

Please sign in to comment.