Skip to content

Commit f2d1ffc

Browse files
authored
Merge pull request #222 from idlechild/intro_demos
Relocate intro demo inputs so that the intro cutscenes work
2 parents 9ecf99a + 0d4927b commit f2d1ffc

File tree

4 files changed

+93
-2
lines changed

4 files changed

+93
-2
lines changed

src/demos.asm

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ org $918448
6464
DemoInstruction_Goto:
6565

6666

67+
org $9185FC
68+
DemoInstruction_EndDemoGiveControl:
69+
70+
71+
org $91865D
72+
LDA #IntroDemoInput_babymetroid_stopandlook
73+
74+
75+
org $918675
76+
LDA #IntroDemoInput_babymetroid_end
77+
78+
79+
org $918682
80+
DemoInstruction_EndDemo:
81+
82+
6783
org $9186FE
6884
; Next 16-bits are WRAM address, following 16-bits are new value
6985
DemoInstruction_ModifyWRAM:
@@ -77,6 +93,27 @@ DemoInstruction_ModifyWRAM:
7793
warnpc $918739
7894

7995

96+
org $918739
97+
DemoInstruction_EndDemoFacingLeft:
98+
99+
100+
org $91877C
101+
IntroDemoInputPointer_jumpleft:
102+
dw #IntroDemoInput_jumpleft
103+
104+
org $918782
105+
IntroDemoInputPointer_babymetroid:
106+
dw #IntroDemoInput_babymetroid_runleft
107+
108+
org $918788
109+
IntroDemoInputPointer_oldmbfight:
110+
dw #IntroDemoInput_oldmbfight
111+
112+
org $91878E
113+
IntroDemoInputPointer_oldmbfight_midpoint:
114+
dw #IntroDemoInput_oldmbfight_midpoint
115+
116+
80117
; Adds lava damage to demos, replaces dead debug code
81118
if !FEATURE_PAL
82119
org $90E814
@@ -738,6 +775,59 @@ DemoInputInstructionLists:
738775
; | _____ Current input
739776
; | |
740777

778+
IntroDemoInput_jumpleft:
779+
{
780+
dw $001E, $0000 ; ............
781+
dw $001B, $0200 ; ..L.........
782+
dw $0035, $0280 ; ..L......A..
783+
dw $001E, $0200 ; ..L.........
784+
dw $0049, $0000 ; ............
785+
dw DemoInstruction_EndDemoGiveControl
786+
dw DemoInstruction_Delete
787+
}
788+
789+
IntroDemoInput_babymetroid_runleft:
790+
{
791+
dw $005A, $0000 ; ............
792+
.loop
793+
dw $0001, $0200 ; ..L.........
794+
dw DemoInstruction_Goto, IntroDemoInput_babymetroid_runleft_loop
795+
}
796+
797+
IntroDemoInput_babymetroid_stopandlook:
798+
{
799+
dw $012C, $0000 ; ............
800+
dw $00AB, $0010 ; ...........r
801+
dw $00F0, $0000 ; ............
802+
dw DemoInstruction_Goto, IntroDemoInput_babymetroid_runleft_loop
803+
}
804+
805+
IntroDemoInput_babymetroid_end:
806+
{
807+
dw DemoInstruction_EndDemo
808+
dw DemoInstruction_Delete
809+
}
810+
811+
IntroDemoInput_oldmbfight:
812+
{
813+
dw $005A, $0000 ; ............
814+
dw $0028, $0040 ; ........X...
815+
dw $0001, $0000 ; ............
816+
dw $001D, $0040 ; ........X...
817+
dw $0046, $0000 ; ............
818+
.midpoint
819+
dw $0014, $0000 ; ............
820+
dw $0008, $0200 ; ..L.........
821+
dw $0008, $0280 ; ..L......A..
822+
dw $0004, $0200 ; ..L.........
823+
dw $003C, $0000 ; ............
824+
dw $0028, $0040 ; ........X...
825+
dw $0001, $0000 ; ............
826+
dw $0014, $0040 ; ........X...
827+
dw DemoInstruction_EndDemoFacingLeft
828+
dw DemoInstruction_Delete
829+
}
830+
741831
if !FEATURE_PAL
742832
DemoInput_Dachora:
743833
{

src/main.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lorom
1616
!VERSION_MAJOR = 2
1717
!VERSION_MINOR = 6
1818
!VERSION_BUILD = 5
19-
!VERSION_REV = 1
19+
!VERSION_REV = 2
2020

2121
table ../resources/normal.tbl
2222
print ""

web/data/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- Added spinlock option and force map grid alignment option (2.6.5)
2323
- Walljump mode learned Mt. Everest and adjust rules for detecting bonks (2.6.5)
2424
- Fix artificial Varia crash on console and add back suit animation (2.6.5.1)
25+
- Fix intro cutscene demos (2.6.5.2)
2526

2627
# Version 2.5.x
2728
- Added a separate version of savestates for MiSTer, Everdrives, and most modern emulators (not SNES Classic/VC) (2.5.0)

web/data/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Super Metroid Practice Hack",
3-
"version": "2.6.5.1",
3+
"version": "2.6.5.2",
44
"variants": ["NTSC", "PAL"],
55
"base": {
66
"NTSC": {

0 commit comments

Comments
 (0)