https://info.sonicretro.org/index.php?title=SCHG_How-to:Make_the_Slots_Bonus_Game_Rotate_Smoothly&feed=atom&action=historySCHG How-to:Make the Slots Bonus Game Rotate Smoothly - Revision history2024-03-28T09:29:05ZRevision history for this page on the wikiMediaWiki 1.30.2https://info.sonicretro.org/index.php?title=SCHG_How-to:Make_the_Slots_Bonus_Game_Rotate_Smoothly&diff=305028&oldid=prevDullhole: Created page with "{{GuideBy|Dullhole}} In ''Sonic 3 & Knuckles'', the Slots bonus game is mostly based on ''Sonic 1's'' Sp..."2019-11-29T03:50:10Z<p>Created page with "{{GuideBy|Dullhole}} In ''<a href="/Sonic_the_Hedgehog_3_%26_Knuckles" title="Sonic the Hedgehog 3 & Knuckles">Sonic 3 & Knuckles</a>'', the Slots bonus game is mostly based on ''<a href="/Sonic_the_Hedgehog_(16-bit)" title="Sonic the Hedgehog (16-bit)">Sonic 1's</a>'' Sp..."</p>
<p><b>New page</b></p><div>{{GuideBy|Dullhole}}<br />
<br />
In ''[[Sonic the Hedgehog 3 & Knuckles|Sonic 3 & Knuckles]]'', the Slots bonus game is mostly based on ''[[Sonic the Hedgehog (16-bit)|Sonic 1's]]'' [[Special Stage (Sonic the Hedgehog 16-bit)|Special Stages]]. As such, it ports many of the mechanics of those Special Stages, including the fact that it doesn't rotate very smoothly at all. This guide describes a way to make the Slots Bonus Game rotate more smoothly.<br />
<br />
This tutorial assumes you are using the [[Disassemblies#Sonic_3_.26_Knuckles|''Sonic 3 & Knuckles'' GitHub disassembly]] and that you have basic knowledge on disassemblies.<br />
<br />
==Making it smooth==<br />
First, find '''Ending_4B356''', it should look like this:<br />
<br />
<syntaxhighlight lang=asm>Ending_4B356:<br />
bsr.w sub_4B4C4<br />
bsr.w sub_4B592<br />
lea ($FFFF7800).l,a1<br />
move.b (Stat_table).w,d0<br />
andi.b #-4,d0<br />
jsr (GetSineCosine).l<br />
</syntaxhighlight><br />
and remove the ''andi.b'' line, to make the stage itself rotate:<br />
<syntaxhighlight lang=asm>Ending_4B356:<br />
bsr.w sub_4B4C4<br />
bsr.w sub_4B592<br />
lea ($FFFF7800).l,a1<br />
move.b (Stat_table).w,d0<br />
jsr (GetSineCosine).l<br />
</syntaxhighlight><br />
<br />
<br />
Next find '''loc_4BF9A''':<br />
<br />
<syntaxhighlight lang=asm>loc_4BF9A:<br />
move.b (Stat_table).w,d0<br />
andi.b #-4,d0<br />
jsr (GetSineCosine).l<br />
</syntaxhighlight><br />
and remove the ''andi.b'' line there too, so that the slot machine at the middle of the level moves correctly:<br />
<syntaxhighlight lang=asm>loc_4BF9A:<br />
move.b (Stat_table).w,d0<br />
jsr (GetSineCosine).l<br />
</syntaxhighlight><br />
<br />
<br />
'''And that's it!''' Save and build and you should have a smoothly rotating Slots Bonus Game!<br />
<br />
{{S3KHowtos}}</div>Dullhole