Page 1 of 1

[dkongjr] skip section and starting level

Posted: Sat Jun 10, 2017 12:26 pm
by syndromtr
requested,

about starting level, from wikipedia:

"Like in its predecessor, Donkey Kong Jr. features a kill screen at level 22.
...
The kill screen occurs the same way as in Donkey Kong, where an integer overflow occurs after too big a result is given after a multiplication problem in the computing. The timer counts as if there are 700 points, then kills Donkey Kong Jr. until all lives are taken."

at level 22, bonus is checked. if it's X700, e.g. 3700, one life lost.
also gamecode checks level# and if reaches 44, sets it to 43. so max. parameter is chosen 43 in the cheat.

[dkongjr]

Code: Select all

	<cheat desc="Select Starting Level">
		<parameter min="1" max="43"/>
		<script state="run">
			<action condition="(maincpu.pb@6229 == 01)">maincpu.pb@6229=param</action>
		</script>
	</cheat>
	
	<cheat desc="Finish Current Section Now!">
		<script state="on">
			<action condition="(maincpu.pb@62B0 != 00) AND (maincpu.pb@6227 != 03)">maincpu.pb@6203=4E, maincpu.pb@6205=20</action>
			<action condition="(maincpu.pb@62B0 != 00) AND (maincpu.pb@6227 == 03)">maincpu.pb@6290=00</action>
		</script>
	</cheat>

Re: [dkongjr] skip section and starting level

Posted: Sun Jul 02, 2017 9:52 pm
by Pugsy
Thanks, nice work added.