randBooRingFast

by soapagent

Game: SMW

Description: Randomize boo ring angle every frame (adapted from tjb's rand64)

!currentangle = $7fc7fc
!GetRand = $01ACF9

	LDA $100	; \ only run in gamemode 14
	EOR #$14	; |
	ORA $9D		; | and when the game isn't paused
	BEQ +		; |
	RTL		; |
	+		; /

LDA !currentangle
STA $fae
STA $faf
RTL
+

JSL.L $01ACF9 ; rng routine
EOR $13
STA !currentangle
STA $fae
STA $faf

RTL
back to listings