PewkoGames
Member
Its been asked a bunch of times most likely, but is there a way to modify the metroidvania or any of the scrolling modules to vertical scrolling?
UP_SCROLL_PAD = #$10 ;;;; I don't know what number to put here
LDX player1_object
LDA Object_y_hi,x ; used to be Object_x_hi in the horizontal versions
SEC
SBC camY ;used to be camX in the horizontal versions
CMP #UP_SCROLL_PAD
BEQ +doActivateScrollByte
BCS +doActivateScrollByte
LDA scrollByte
AND #%00111111
STA scrollByte
RTS
+doActivateScrollByte
LDA scrollByte
AND #%01000000
BNE +notChangingCamDirectionForUpdate
LDA scrollByte
ORA #%00000010
+notChangingCamDirectionForUpdate
AND #%00111111
ORA #%11000000
STA scrollByte
;;; just like movement byte of a player.
;;; bit 7 indicates horizontal movement of a player
;;; bit 6 indicates 0 for left, 1 for right.
RTS
LDA camY
ADC #01
CMP #240
BCC +
LDA #0
;; MAYBE JSR HERE? ;;
+
STA camY
STA scrollByte