Jonny
Well-known member
All instructions as per Dales original post...
doSpritePreDraw.asm
Not tested yet so let me know if it's not correct / any problems. All the other scripts in the Dales tutorial should still work in 4.5.9.
A Selection Menu on the Start Screen [4.1.X Basic module]
I will share here how I made a small selection menu, on the Start Screen. For this demo, I will just make a "NORMAL" or "HARD" selection mode. Use a sprite to display the selection. This menu will allow you to start the game with 3 lives (normal mode) or 1 life only (hard mode). When you'll...
www.nesmakers.com
doSpritePreDraw.asm
Code:
LDA gameState
CMP #$02 ;; GAME STATE FOR SELECTION ;;
BEQ doSelector
JMP endCheckingStartScreenSelector
doSelector:
LDA #SELECTION_POS_Y
STA temp1
LDA #SELECTION_POS_X
STA temp2
LDX #$00
startScreenSelectorLoop:
CPX curSelection
BCS drawSprite
LDA temp1
CLC
ADC #SELECTION_STEP_Y
STA temp1
LDA temp2
CLC
ADC #SELECTION_STEP_X
STA temp2
INX
JMP startScreenSelectorLoop
drawSprite:
DrawSprite temp2, temp1, #STARTSCREEN_CURSOR_TILE, #%00000000, #$00
endCheckingStartScreenSelector:
Not tested yet so let me know if it's not correct / any problems. All the other scripts in the Dales tutorial should still work in 4.5.9.
Last edited: