Skip to content

Commit fd3814b

Browse files
committed
Merge branch 'Archipelago' of https://github.com/Z11Coding/Mixtape-Engine-Rework into Archipelago
2 parents 12cae95 + be2ce5d commit fd3814b

File tree

12 files changed

+1018
-24
lines changed

12 files changed

+1018
-24
lines changed
28.7 KB
Binary file not shown.
8.67 KB
Binary file not shown.
76.8 KB
Binary file not shown.

setup/windows.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ cd ..
44
@echo on
55
echo Installing dependencies...
66
echo This might take a few moments depending on your internet speed.
7-
haxelib install lime 8.1.2
8-
haxelib install openfl 9.3.3
9-
haxelib install flixel 5.6.1
7+
haxelib install lime 8.2.2
8+
haxelib install openfl 9.4.1
9+
haxelib install flixel 5.6.2
1010
haxelib install flixel-addons 3.3.2
1111
haxelib install flixel-tools 1.5.1
1212
haxelib install hscript-iris 1.1.3
1313
haxelib install tjson 1.4.0
14-
haxelib install hxdiscord_rpc 1.2.4
14+
haxelib install hxdiscord_rpc 1.3.0
1515
haxelib install hxvlc 2.0.1 --skip-dependencies
1616
haxelib install helder.set 0.3.1
1717
haxelib install yaml 2.0.1
@@ -20,9 +20,9 @@ haxelib install haxe-concurrent 5.1.3
2020
haxelib install actuate 1.9.0
2121
haxelib install flixel-ui 2.6.1
2222
haxelib install hscript 2.5.0
23-
haxelib install noisehx
24-
haxelib set lime 8.1.2
25-
haxelib set openfl 9.3.3
23+
haxelib install noisehx 0.0.1
24+
haxelib set lime 8.2.2
25+
haxelib set openfl 9.4.1
2626
haxelib git linc_dialogs https://github.com/snowkit/linc_dialogs.git
2727
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate 768740a56b26aa0c072720e0d1236b94afe68e3e
2828
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit 1906c4a96f6bb6df66562b3f24c62f4c5bba14a7

source/archipelago/APItem.hx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import backend.window.PlatformUtil;
44
import haxe.ds.StringMap;
55
import cutscenes.DialogueBoxPsych;
66
import flixel.util.FlxDestroyUtil;
7+
import archipelago.TrapLinkFunctions;
78

89
typedef Condition = {
910
var checkFn:APItem->Bool;
@@ -496,19 +497,27 @@ class APItem {
496497
t.isTrap = true;
497498
});
498499

499-
//TODO: Add the raymarching shader
500+
//TODO: Test if this works
500501
case "Deisometric Trap":
501502
return new APTrap(name, ConditionHelper.PlayState(), function() {
502503
popup('Can you tilt your screen? I can\'t see...', "TrapLink: Deisometric Trap");
504+
for (cam in FlxG.cameras.list) {
505+
if (!cam.filters.contains(shaders.ShadersHandler.perspective))
506+
cam.filters.push(shaders.ShadersHandler.perspective);
507+
}
508+
flixel.tweens.FlxTween.num(shaders.ShadersHandler.perspective.shader.data.zrot.value[0], 0, 15, function(value:Float) {
509+
shaders.ShadersHandler.perspective.shader.data.zrot.value = [value];
510+
});
503511
}, true, true).funcAndReturn(function(t:APItem) {
504512
// Set it as a trap.
505513
t.isTrap = true;
506514
});
507515

508-
//TODO: add the car crash script stuff here
516+
//TODO: Test if this works
509517
case "Push Trap":
510518
return new APTrap(name, ConditionHelper.PlayState(), function() {
511519
popup('You go bye bye now :)', "TrapLink: Push Trap");
520+
TrapLinkFunctions.doCarCrash(true);
512521
}, true, true).funcAndReturn(function(t:APItem) {
513522
// Set it as a trap.
514523
t.isTrap = true;
@@ -523,19 +532,20 @@ class APItem {
523532
t.isTrap = true;
524533
});
525534

526-
//TODO: Grab the bushwack pumpkin mechanic
535+
//TODO: Test if this works
527536
case "Input Sequence Trap":
528537
return new APTrap(name, ConditionHelper.PlayState(), function() {
529538
popup('Imma hit you with a QTE just cause.', "TrapLink: Input Sequence Trap");
539+
TrapLinkFunctions.doBushwakThings();
530540
}, true, true).funcAndReturn(function(t:APItem) {
531541
// Set it as a trap.
532542
t.isTrap = true;
533543
});
534544

535-
//TODO: Grab the Hypno's Lullaby Typing Mechanic
536545
case "Pokemon Trivia Trap":
537546
return new APTrap(name, ConditionHelper.PlayState(), function() {
538547
popup('What is the following word:', "TrapLink: Pokemon Trivia Trap");
548+
TrapLinkFunctions.startUnown();
539549
}, true, true).funcAndReturn(function(t:APItem) {
540550
// Set it as a trap.
541551
t.isTrap = true;
@@ -621,10 +631,12 @@ class APItem {
621631
t.isTrap = true;
622632
});
623633

624-
//TODO: grab the Trampoline Script
634+
//TODO: Test this
625635
case "Jump Trap" | "Spring Trap":
626636
return new APTrap(name, ConditionHelper.PlayState(), function() {
627-
popup('Don\'t fall off...', 'TrapLink: $name');
637+
popup('Don\'t break your neck...', 'TrapLink: $name');
638+
var tramp:Trampoline = new Trampoline();
639+
if (APPlayState.instance != null) APPlayState.instance.addBehindBF(tramp);
628640
}, true, true).funcAndReturn(function(t:APItem) {
629641
// Set it as a trap.
630642
t.isTrap = true;

0 commit comments

Comments
 (0)