Main Menu demo loop

Completed patches for Keen4.
Post Reply
Posts: 2997
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Main Menu demo loop

Post by levellass »

This is the entire main menu demo loop code for Keen 4. The default sequence is 'play demo 1, story screen, demo 2 highscore demo, demo 3, demo 4' (Then the terminator text will display, resetting the cycle.

Code: Select all

#Demo loop
%patch $3C2F $33 $C0 $50 $9A $03ED1A31RL     $83 $C4 $02 $EB $65 $9A         #Play demo 1
     $03ED18B8RL     $EB $5E $B8 $0001W  $50 $9A $03ED1A31RL     $83 $C4 $02 #Story screen\demo 2
             $EB $50 $9A $03ED1D55RL     $EB $49 $B8 $0002W  $50 $9A         #Highscores
     $03ED1A31RL     $83 $C4 $02 $EB $3B $33 $FF $B8 $0003W  $50 $9A         #Demo 3
     $03ED1A31RL     $83 $C4 $02                                             #Demo 4

What can it be used for? A few things. To remove an item from the loop simply replace its '$9A $xxxxxxxxRL' string with '$90 $90 $90 $90 $90' Items can also be rearranged, though this takes a little more nuance.

It is also possible to rearrange the order the demos play in by changing the numbers before the demo calls.
Post Reply