Or why not making the levels being beaten normally one by one from the start?
That would make more sense in a way...
That would make more sense in a way...
; shows an icon on the map when a level's beaten !Slot = $FC ; this seems to work well enough? !XPos = $E0 !YPos = $28 ; the tile will be hidden by the ow border, so place it somewhere on the map !Tile = $02 !Props = $30 org $0485C5 autoclean JML ShowIcon freecode ShowIcon: JSL $00CEB1 PHA : PHX : PHY : PHP LDA $13D9 CMP #$03 BNE .return REP #$30 ; \ LDX $0DD6 ; | LDA $1F1F,x ; | get current level number STA $00 ; | LDA $1F21,x ; | STA $02 ; | TXA ; | LSR ; | LSR ; | TAX ; | PHK ; | PEA.w .jslrtsreturn-1 ; | PEA.w $048E48-1 ; | JML $049885 ; | .jslrtsreturn ; | LDX $04 ; | LDA $7ED000,x ; | SEP #$30 ; / TAX LDA $1EA2,x BPL .return ; return if not beaten .show LDX #!Slot LDA #!XPos STA $0200,x LDA #!YPos STA $0201,x LDA #!Tile STA $0202,x LDA #!Props STA $0203,x TXA : LSR #2 : TAX LDA #$02 STA $0420,x .return PLP : PLY : PLX : PLA JML $0485C9