Skip to content

Commit 9ee84f4

Browse files
committed
Merge branch 'Archipelago' of https://github.com/Z11Coding/Mixtape-Engine-Rework into Archipelago
2 parents fbd3fff + 111fce6 commit 9ee84f4

File tree

7 files changed

+181
-64
lines changed

7 files changed

+181
-64
lines changed

source/objects/Note.hx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,21 +650,21 @@ class Note extends NoteObject
650650
prevNote.scale.y *= Conductor.stepCrochet / 100 * 1.05;
651651
if(createdFrom != null && createdFrom.songSpeed != null) prevNote.scale.y *= createdFrom.songSpeed;
652652

653-
if(PlayState.isPixelStage) {
653+
/*if(PlayState.isPixelStage) {
654654
prevNote.scale.y *= 1.19;
655655
prevNote.scale.y *= (6 / height); //Auto adjust note size
656-
}
656+
}*/
657657
prevNote.updateHitbox();
658658

659659
// offsetY += height / 2;
660660
// prevNote.setGraphicSize();
661661
}
662662

663-
if(PlayState.isPixelStage)
663+
/*if(PlayState.isPixelStage)
664664
{
665665
scale.y *= PlayState.daPixelZoom;
666666
updateHitbox();
667-
}
667+
}*/
668668
earlyHitMult = 0;
669669
}
670670
else if(!isSustainNote)

source/options/GameplayChangersSubstate.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class GameplayChangersSubstate extends MusicBeatSubstate
4949
option.displayFormat = '%vX';
5050
option.decimals = 2;
5151
optionsArray.push(option);
52+
53+
optionsArray.push(new GameplayOption('Random Playback Rate', 'randomspeedchange', BOOL, false));
5254
#end
5355

5456
var option:GameplayOption = new GameplayOption('Health Gain Multiplier', 'healthgain', FLOAT, 1);

source/options/MixtapeSettingsSubState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class MixtapeSettingsSubState extends BaseOptionsMenu
3333
[
3434
"OG",
3535
"Mixtape",
36-
"Kade (NA)",
37-
"Tabi (NA)",
36+
"Kade",
37+
"Tabi",
3838
"Double (NA)",
3939
"Lives (NA)",
4040
"Lives + HealthBar (NA)",

source/stages/PhillyBlazin.hx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,6 @@ class PhillyBlazin extends BaseStage
109109
}
110110
}
111111

112-
var off:Float = Math.min(FlxG.width, 1280) / 4;
113-
var opp:Int = PlayState.instance.opponentmode ? 0 : 1;
114-
115-
var halfKeys:Int = Math.floor(Note.ammo[PlayState.mania] / 2);
116-
if (Note.ammo[PlayState.mania] % 2 != 0) // middle receptor dissappears, if there is one
117-
PlayState.instance.modManager.setValue('alpha${halfKeys + 1}', 1.0, opp);
118-
119-
for (i in 0...halfKeys)
120-
PlayState.instance.modManager.setValue('transform${i}X', -off, opp);
121-
for (i in Note.ammo[PlayState.mania]-halfKeys...Note.ammo[PlayState.mania])
122-
PlayState.instance.modManager.setValue('transform${i}X', off, opp);
123-
124-
PlayState.instance.modManager.setValue("alpha", 1, opp);
125-
PlayState.instance.modManager.setValue("opponentSwap", 0.5);
126-
127112
}
128113

129114
override function createPost()
@@ -159,6 +144,21 @@ class PhillyBlazin extends BaseStage
159144
}
160145
remove(dadGroup, true);
161146
addBehindBF(dadGroup);
147+
148+
var off:Float = Math.min(FlxG.width, 1280) / 4;
149+
var opp:Int = PlayState.instance.opponentmode ? 0 : 1;
150+
151+
var halfKeys:Int = Math.floor(Note.ammo[PlayState.mania] / 2);
152+
if (Note.ammo[PlayState.mania] % 2 != 0) // middle receptor dissappears, if there is one
153+
PlayState.instance.modManager.setValue('alpha${halfKeys + 1}', 1.0, opp);
154+
155+
for (i in 0...halfKeys)
156+
PlayState.instance.modManager.setValue('transform${i}X', -off, opp);
157+
for (i in Note.ammo[PlayState.mania]-halfKeys...Note.ammo[PlayState.mania])
158+
PlayState.instance.modManager.setValue('transform${i}X', off, opp);
159+
160+
PlayState.instance.modManager.setValue("alpha", 1, opp);
161+
PlayState.instance.modManager.setValue("opponentSwap", 0.5);
162162
}
163163

164164
override function beatHit()

source/states/FreeplayState.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class FreeplayState extends MusicBeatState
128128
var ticketCounter:FlxText = null;
129129
override function create()
130130
{
131+
Cursor.cursorMode = Default;
131132
instance = this; // For Archipelago
132133

133134
if (APEntryState.apGame != null && APEntryState.apGame.info() != null) {
@@ -1323,7 +1324,7 @@ class FreeplayState extends MusicBeatState
13231324
updateTexts(elapsed);
13241325
super.update(elapsed);
13251326

1326-
ticketCounter.text = 'Current ticket amount: ${APInfo.ticketCount}\nTickets Total: ${APInfo.ticketWinCount}\nTickets Left: ${Std.int(APInfo.ticketCount - APInfo.ticketWinCount)}';
1327+
if (ticketCounter != null) ticketCounter.text = 'Current ticket amount: ${APInfo.ticketCount}\nTickets Total: ${APInfo.ticketWinCount}\nTickets Left: ${Std.int(APInfo.ticketCount - APInfo.ticketWinCount)}';
13271328

13281329
grpLocks.forEach(function(lock:FlxSprite)
13291330
{

source/states/MainMenuState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MainMenuState extends MusicBeatState
4949
override function create()
5050
{
5151

52-
52+
Cursor.cursorMode = Default;
5353
checker = new flixel.addons.display.FlxBackdrop(Paths.image('mainmenu/Main_Checker'), XY, Std.int(0.2), Std.int(0.2));
5454

5555
super.create();

0 commit comments

Comments
 (0)