linetable ellimination

This commit is contained in:
2022-08-20 02:33:24 -04:00
parent a4d4e5f466
commit 0219fe8d14
4 changed files with 45 additions and 10 deletions
+4 -4
View File
@@ -191,10 +191,10 @@ sintable
.by 255 .by 255
.by 255 ;anti self destruction byte .by 255 ;anti self destruction byte
linetableL ;linetableL
:screenheight+1 .by <(display+screenBytes*#) ; :screenheight+1 .by <(display+screenBytes*#)
linetableH ;linetableH
:screenheight+1 .by >(display+screenBytes*#) ; :screenheight+1 .by >(display+screenBytes*#)
;---------------------------- ;----------------------------
bittable bittable
.by $80,$40,$20,$10,$08,$04,$02,$01 .by $80,$40,$20,$10,$08,$04,$02,$01
+12 -6
View File
@@ -1,14 +1,20 @@
; @com.wudsn.ide.asm.mainsourcefile=scorch.asm ; @com.wudsn.ide.asm.mainsourcefile=scorch.asm
;----------------------------------------------
; Player/missile memory
PMGraph = $0800
display = $1010 ;screen takes $2K due to clearing routine
screenheight = 200 screenheight = 200
screenBytes = 40 screenBytes = 40
screenwidth = screenBytes*8 ; Max screenwidth = 512!!! screenwidth = screenBytes*8 ; Max screenwidth = 512!!!
;----------------------------------------------
; Player/missile memory
PMGraph = $0800 ; real PM start = $0b00
; Generated tables
linetableL = $0b00 - screenHeight*2
linetableH = $0b00 - screenHeight
display = $1010 ;screen takes $2K due to clearing routine
margin = 40 ;mountain drawing Y variable margin margin = 40 ;mountain drawing Y variable margin
MaxPlayers = 6 MaxPlayers = 6
maxOptions = 8 ;number of all options maxOptions = 8 ;number of all options
+29
View File
@@ -177,6 +177,22 @@ FirstSTART
dey dey
bpl @- bpl @-
; generate linetables
mwa #display temp
mwa #linetableL temp2
mwa #linetableH modify
ldy #0
@ lda temp
sta (temp2),y
lda temp+1
sta (modify),y
adw temp #40
iny
cpy #screenheight
bne @-
; RMT INIT ; RMT INIT
lda #$f0 ;initial value lda #$f0 ;initial value
sta RMTSFXVOLUME ;sfx note volume * 16 (0,16,32,...,240) sta RMTSFXVOLUME ;sfx note volume * 16 (0,16,32,...,240)
@@ -1626,6 +1642,19 @@ noingame
mva #0 RMT_blocked mva #0 RMT_blocked
rts rts
.endp .endp
;;--------------------------------------------------
;.proc Randomizer
;;--------------------------------------------------
; ;usage: randomize floor ceiling
; ;returns (in A) a random .byte between "floor" and "ceiling"
;?rand
; lda random
; cmp #:1 ;floor
; bcc ?rand
; cmp #:2+1 ;ceiling
; bcs ?rand
; rts
;.endp
;---------------------------------------------- ;----------------------------------------------
icl 'weapons.asm' icl 'weapons.asm'
;---------------------------------------------- ;----------------------------------------------
BIN
View File
Binary file not shown.