Skip to content

Commit 2894f83

Browse files
committed
Merge branch 'Archipelago' of https://github.com/Z11Coding/Mixtape-Engine-Rework into Archipelago
2 parents 83fae16 + ee61061 commit 2894f83

File tree

14 files changed

+257
-55
lines changed

14 files changed

+257
-55
lines changed

.flight/icons/yuta.png

10.2 KB
Loading

.flight/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"members": [
1212
{
1313
"name": "Z11Gaming",
14-
"icon": "icons/z11.webp",
14+
"icon": "icons/z11.png",
1515
"role": "Main Creater of the engine"
1616
},
1717
{
1818
"name": "Yutamon",
19-
"icon": "icons/yuta.webp",
19+
"icon": "icons/yuta.png",
2020
"role": "Co-Creater of the engine"
2121
}
2222
]
10.2 KB
Loading

assets/shared/images/gfDanceTitle.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"titlex":150,
3-
"titley":6500,
2+
"titlex":50,
3+
"titley":50,
44
"startx":100,
55
"starty":576,
66
"gfChar":true,

source/Main.hx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import sys.io.Process;
4747
import haxe.io.BytesOutput;
4848
#end
4949

50+
import backend.modules.*;
5051
import backend.Highscore;
5152

5253
// NATIVE API STUFF, YOU CAN IGNORE THIS AND SCROLL //
@@ -446,9 +447,10 @@ class Main extends Sprite
446447
handleStateBasedClosing();
447448
}
448449

449-
backend.modules.EvacuateDebugPlugin.initialize();
450-
backend.modules.ForceCrashPlugin.initialize();
451-
backend.modules.MemoryGCPlugin.initialize();
450+
EvacuateDebugPlugin.initialize();
451+
ForceCrashPlugin.initialize();
452+
MemoryGCPlugin.initialize();
453+
FullScreenPlugin.initialize();
452454

453455

454456
// trace("Game Dialog Test 1: " + dialogs.Dialogs.open('Test for Open', [{ext:'txt', desc:'Text files'}]));

source/archipelago/APSettingsSubState.hx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,12 @@ class APSettingsSubState extends MusicBeatSubstate {
419419

420420
comment += "# This YAML file was generated by Mixtape Engine.\n";
421421
comment += "# The amount of songs in this YAML is " + Reflect.field(yamlThing, "songList").length + ".\n";
422-
comment += "# The amount of checks possible is " + APEntryState.gameSettings.FNF.songList.length * 5 + ".\n";
423-
comment += "# The amount of checks if just Song Completion is used is " + APEntryState.gameSettings.FNF.songList.length * 2 + ".\n";
424-
comment += "# The amount of checks if just Note Checks is used is " + APEntryState.gameSettings.FNF.songList.length * 3 + ".\n";
422+
comment += "# The amount of checks (total) possible is " + APEntryState.gameSettings.FNF.songList.length * 5 + ".\n";
423+
comment += "# The amount of checks (total) if just Song Completion is used is " + APEntryState.gameSettings.FNF.songList.length * 2 + ".\n";
424+
comment += "# The amount of checks (total) if just Note Checks is used is " + APEntryState.gameSettings.FNF.songList.length * 3 + ".\n";
425+
comment += "# The amount of checks (currently) possible is " + ((APEntryState.gameSettings.FNF.songList.length * 5) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
426+
comment += "# The amount of checks (currently) if just Song Completion is used is " + ((APEntryState.gameSettings.FNF.songList.length * 2) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
427+
comment += "# The amount of checks (currently) if just Note Checks is used is " + ((APEntryState.gameSettings.FNF.songList.length * 3) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
425428
comment += "\n";
426429

427430
var yamlString = "Friday Night Funkin:\n";

source/backend/MusicBeatState.hx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ class MusicBeatState extends FlxState
346346
@:privateAccess
347347
(cast state:PlayState).preGenerateNotes();
348348
}
349-
}
350-
// "FreeplayState" => function(state:FlxState) {
349+
}/*,
350+
"FreeplayState" => function(state:FlxState) {
351351
352-
// FreeplayManager.reloadFreeplay();
352+
FreeplayManager.reloadFreeplay();
353353
354-
// },
355-
// "OsuFreeplayState" => function(state:FlxState) {
356-
// FreeplayManager.reloadFreeplay();
357-
// }
354+
},
355+
"OsuFreeplayState" => function(state:FlxState) {
356+
FreeplayManager.reloadFreeplay();
357+
}*/
358358
];
359359

360360
public function hashCode():Int
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package backend.modules;
2+
3+
import flixel.FlxBasic;
4+
5+
/**
6+
* A plugin which enables and disables fullscreen.
7+
*/
8+
class FullScreenPlugin extends FlxBasic
9+
{
10+
public function new()
11+
{
12+
super();
13+
}
14+
15+
public static function initialize():Void
16+
{
17+
FlxG.plugins.addPlugin(new FullScreenPlugin());
18+
}
19+
20+
public override function update(elapsed:Float):Void
21+
{
22+
super.update(elapsed);
23+
24+
// Fullscreen Keybind = Toggles Fullscreen lol
25+
if (Controls.instance?.justPressed('fullscreen'))
26+
{
27+
FlxG.fullscreen = !FlxG.fullscreen;
28+
}
29+
}
30+
31+
public override function destroy():Void
32+
{
33+
super.destroy();
34+
}
35+
}

source/options/MixtapeSettingsSubState.hx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,6 @@ class MixtapeSettingsSubState extends BaseOptionsMenu
125125
addOption(option);
126126
option.displayFormat = '< %v >';
127127

128-
var option:Option = new Option('Ghost Effect',
129-
"If checked, does the ever-so-popular double/triple/quadrouple ghost effect.",
130-
'doubleGhosts',
131-
BOOL
132-
);
133-
addOption(option);
134-
135128
var option:Option = new Option('Show Keybinds on Start Song',
136129
"If checked, your keybinds will be shown on the strum that they correspond to when you start a song.",
137130
'showKeybindsOnStart',
@@ -178,13 +171,13 @@ class MixtapeSettingsSubState extends BaseOptionsMenu
178171
LABEL);
179172
addOption(option);
180173

181-
// var freemenus:Array<String> = ['Mixtape', 'Osu', 'Base Game'];
182-
// for (theme in Mods.mergeAllTextsNamed('menus/'))
174+
var freemenus:Array<String> = ['Mixtape', 'Osu', 'Base Game'];
175+
//for (theme in Mods.mergeAllTextsNamed('menus/'))
183176
var option:Option = new Option('Freeplay Menu:',
184177
"Which freeplay menu do you prefer?\n(This has no effect on Archipelago Mode)\nBASE GAME DOES NOTHING FOR NOW!",
185178
'freeplayMenu',
186179
STRING,
187-
['Mixtape', 'Osu', 'Base Game']);
180+
freemenus);
188181
addOption(option);
189182
option.displayFormat = '< %v >';
190183

source/states/FirstCheckState.hx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import archipelago.APEntryState;
55
import yutautil.modules.SyncUtils;
66
import flixel.input.keyboard.FlxKey;
77
import backend.AudioSwitchFix;
8+
import backend.util.NativeAPI;
9+
810
class FirstCheckState extends MusicBeatState
911
{
1012
public static var muteKeys:Array<FlxKey> = [FlxKey.ZERO];
@@ -44,6 +46,10 @@ class FirstCheckState extends MusicBeatState
4446
ClientPrefs.loadPrefs();
4547
Language.reloadPhrases();
4648
AudioSwitchFix.init();
49+
if (!Paths.exists(Paths.imagePath('fred'))) {
50+
NativeAPI.showMessageBox('WHERE IS HE!?!?', "WHERE'S FRED???\nYOU CAN'T COME HERE WITHOUT FRED!", MSG_ERROR);
51+
Sys.exit(1);
52+
}
4753
}
4854

4955
super.create();

0 commit comments

Comments
 (0)