Skip to content

Commit 5bcab00

Browse files
committed
thuthing
1 parent aa584da commit 5bcab00

File tree

8 files changed

+43
-27
lines changed

8 files changed

+43
-27
lines changed

Project.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@
5252
<define name="TITLE_SCREEN_EASTER_EGG"/>
5353
</section>
5454

55+
<!-- Apparently I can just drop this in and it'll work so i'll be the judge of that -->
56+
57+
<haxedef name="FM_ENGINE" value="PSYCH"/>
58+
<haxedef name="FM_ENGINE_VERSION" value="1.0"/>
59+
60+
<haxelib name="funkin-modchart" />
61+
<haxeflag name="--macro" value="modchart.core.macros.Macro.includeFiles()"/>
62+
5563
<!-- ____________________________ Window Settings ___________________________ -->
5664

5765
<!--These window settings apply to all targets-->

setup/windows.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ haxelib install actuate 1.9.0
2121
haxelib install flixel-ui 2.6.1
2222
haxelib install hscript 2.5.0
2323
haxelib install noisehx 0.0.1
24+
haxelib install haxeui-core 1.7.0
25+
haxelib install haxeui-flixel 1.7.0
2426
haxelib set lime 8.2.2
2527
haxelib set openfl 9.4.1
28+
haxelib git funkin-modchart https://github.com/TheoDevelops/FunkinModchart
2629
haxelib git linc_dialogs https://github.com/snowkit/linc_dialogs.git
2730
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate 768740a56b26aa0c072720e0d1236b94afe68e3e
2831
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit 1906c4a96f6bb6df66562b3f24c62f4c5bba14a7
2932
haxelib git funkin.vis https://github.com/beihu235/funkVis-FrequencyFixed
3033
haxelib git grig.audio https://gitlab.com/haxe-grig/grig.audio.git cbf91e2180fd2e374924fe74844086aab7891666
31-
haxelib git haxeui-core https://github.com/haxeui/haxeui-core 51c23588614397089a5ce182cddea729f0be6fa0
32-
haxelib git haxeui-flixel https://github.com/haxeui/haxeui-flixel da27e833947f32ef007ed11f523aa5524f5a5d54
3334
haxelib git flixel-text-input https://github.com/FunkinCrew/flixel-text-input 951a0103a17bfa55eed86703ce50b4fb0d7590bc
3435
haxelib git FlxPartialSound https://github.com/FunkinCrew/FlxPartialSound.git f986332ba5ab02abd386ce662578baf04904604a
3536
haxelib git moonchart https://github.com/MaybeMaru/moonchart

source/archipelago/TrapLinkFunctions.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class TrapLinkFunctions {
7474
@:privateAccess
7575
for (i in 0...randArray.length) {
7676
var cool:StrumNote = new StrumNote(0, 0, randArray[i], 0);
77+
@:privateAccess
7778
if (!PlayState.isPixelStage) cool.animation.addByPrefix('color', colArray[cool.noteData] + '0', 24, true);
7879
cool.playAnim('static');
7980
cool.ID = i;
@@ -102,6 +103,7 @@ class TrapLinkFunctions {
102103
var strum = grpNotes[j];
103104
strum.playAnim('confirm', true);
104105
strum.animation.finishCallback = function(animName:String) {
106+
@:privateAccess
105107
if (PlayState.isPixelStage) strum.playAnim(colArray[strum.noteData]);
106108
else strum.playAnim('color', true);
107109
}

source/objects/StrumNote.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class StrumNote extends NoteObject
1818
public var direction:Float = 90;
1919
public var downScroll:Bool = false;
2020
public var sustainReduce:Bool = true;
21+
private var player:Int;
2122

2223
public static var ogStrumPosX:Array<Null<Float>> = [];
2324
public static var ogStrumPosY:Array<Null<Float>> = [];

source/objects/playfields/PlayField.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,8 @@ class PlayField extends FlxTypedGroup<FlxBasic>
833833
babyArrow.y = strumLineY;
834834
babyArrow.handleRendering = false; // NoteField handles rendering
835835
babyArrow.cameras = cameras;
836+
@:privateAccess
837+
babyArrow.player = this.playerId;
836838
strumNotes.push(babyArrow);
837839
babyArrow.playerPosition();
838840
if (ClientPrefs.data.showKeybindsOnStart && this.isPlayer)

source/psychlua/HScript.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import crowplexus.hscript.Printer;
2020

2121
import haxe.ValueException;
2222

23+
import modchart.Manager;
24+
2325
typedef HScriptInfos = {
2426
> haxe.PosInfos,
2527
var ?funcName:String;
@@ -429,6 +431,9 @@ class HScript extends Iris
429431
}
430432
);
431433

434+
//Funkin Modchart things
435+
set("manager", Manager);
436+
432437
//Base game things
433438
set("FlxPoint", {
434439
get: FlxPoint.get,

source/psychlua/VideoFunctions.hx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class VideoFunctions
1313
else trace('No argument for game over video!');
1414
});
1515

16-
Lua_helper.add_callback(lua, 'makeVideoSprite', function(tag:String, videoFile:String, ?x:Float, ?y:Float, ?camera:String = 'game', ?shouldLoop:Bool = false, ?playOnLoad:Bool = true, ?isCutscene:Bool = false, addBehind:String = 'none') {
16+
Lua_helper.add_callback(lua, 'makeVideoSprite', function(tag:String, videoFile:String, ?x:Float, ?y:Float, ?camera:String = 'game', ?shouldLoop:Bool = false, ?playOnLoad:Bool = true, ?isCutscene:Bool = false, ?addBehind:String = 'none') {
1717
if (MusicBeatState.getVariables().exists(tag + '_video') || MusicBeatState.getVariables().exists(tag))
1818
{
1919
PlayState.instance.addTextToDebug('makeVideoSprite: This tag is not available! Use a different tag.', FlxColor.RED);
@@ -54,6 +54,10 @@ class VideoFunctions
5454
videoCutscene = null;
5555
PlayState.instance.canPause = true;
5656
PlayState.instance.inCutscene = false;
57+
if(PlayState.instance.endingSong)
58+
PlayState.instance.endSong();
59+
else
60+
PlayState.instance.startCountdown();
5761
}
5862
videoCutscene.finishCallback = onVideoEnd;
5963
videoCutscene.onSkip = onVideoEnd;

source/states/PlayState.hx

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ class PlayState extends MusicBeatState
22292229

22302230
setOnScripts('songLength', songLength);
22312231
callOnScripts('onSongStart');
2232-
2232+
22332233
// my latest invention: THE CHAOS BRINGER
22342234
if (AprilFools.allowAF && !inArchipelagoMode) {
22352235
switch (FlxG.random.int(0, 5)) {
@@ -4104,19 +4104,13 @@ class PlayState extends MusicBeatState
41044104

41054105
public function newPlayfield()
41064106
{
4107-
try {
4108-
var field = new PlayField(modManager);
4109-
field.modNumber = playfields.members.length;
4110-
field.playerId = field.modNumber;
4111-
field.cameras = playfields.cameras;
4112-
initPlayfield(field);
4113-
playfields.add(field);
4114-
return field;
4115-
}
4116-
catch(e) {
4117-
trace("Playfield Failed to make a Field!");
4118-
return null;
4119-
}
4107+
var field = new PlayField(modManager);
4108+
field.modNumber = playfields.members.length;
4109+
field.playerId = field.modNumber;
4110+
field.cameras = playfields.cameras;
4111+
initPlayfield(field);
4112+
playfields.add(field);
4113+
return field;
41204114
}
41214115

41224116
// good to call this whenever you make a playfield
@@ -4320,16 +4314,15 @@ class PlayState extends MusicBeatState
43204314
doDeathCheck(true);
43214315
}
43224316

4323-
// // the void varient of the function above with trueKill set to true
4324-
// public function killhimtodeath():Void
4325-
// {
4326-
// bfkilledcheck = true;
4327-
// health = 0;
4328-
// lives = 0;
4329-
// else lives -= 1;
4330-
// noteMissPress(3, opponentmode ? dadField : playerField); // just to make sure you actually die
4331-
// doDeathCheck(true);
4332-
// }
4317+
// the void varient of the function above with trueKill set to true
4318+
/*public function killhimtodeath():Void
4319+
{
4320+
bfkilledcheck = true;
4321+
health = 0;
4322+
lives = 0;
4323+
noteMissPress(3, opponentmode ? dadField : playerField); // just to make sure you actually die
4324+
doDeathCheck(true);
4325+
}*/
43334326

43344327
function updateVisPos() { //Literaly so it doesn't look weird in the update function
43354328
try {

0 commit comments

Comments
 (0)