mirror of
https://github.com/Pecusx/dino-game.git
synced 2026-05-20 22:33:23 +02:00
Difficulty opty and clouds are grey!
This commit is contained in:
+4
-4
@@ -118,10 +118,10 @@ ShapesTableL
|
|||||||
.by <bird_1a
|
.by <bird_1a
|
||||||
.by <bird_2
|
.by <bird_2
|
||||||
.by <bird_2a
|
.by <bird_2a
|
||||||
.by <cactus_0
|
|
||||||
.by <cactus_1
|
|
||||||
.by <cactus_2
|
.by <cactus_2
|
||||||
.by <cactus_3
|
.by <cactus_3
|
||||||
|
.by <cactus_0
|
||||||
|
.by <cactus_1
|
||||||
.by <cactus_4
|
.by <cactus_4
|
||||||
.by <ground_1
|
.by <ground_1
|
||||||
.by <ground_2
|
.by <ground_2
|
||||||
@@ -134,10 +134,10 @@ ShapesTableH
|
|||||||
.by >bird_1a
|
.by >bird_1a
|
||||||
.by >bird_2
|
.by >bird_2
|
||||||
.by >bird_2a
|
.by >bird_2a
|
||||||
.by >cactus_0
|
|
||||||
.by >cactus_1
|
|
||||||
.by >cactus_2
|
.by >cactus_2
|
||||||
.by >cactus_3
|
.by >cactus_3
|
||||||
|
.by >cactus_0
|
||||||
|
.by >cactus_1
|
||||||
.by >cactus_4
|
.by >cactus_4
|
||||||
.by >ground_1
|
.by >ground_1
|
||||||
.by >ground_2
|
.by >ground_2
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ GameDL
|
|||||||
status_line_addr
|
status_line_addr
|
||||||
.word status_line_r
|
.word status_line_r
|
||||||
:4 .byte SKIP8
|
:4 .byte SKIP8
|
||||||
.byte MODE2+DLII
|
.byte MODE2
|
||||||
|
|
||||||
.byte SKIP8,SKIP8+DLII ; empty lines
|
.byte SKIP8,SKIP8 ; empty lines
|
||||||
|
|
||||||
.rept SCR_HEIGHT, #
|
.rept SCR_HEIGHT, #
|
||||||
.byte MODE2+LMS+SCH ; gr.0+LMS+HSCRL
|
.byte MODE2+LMS+SCH ; gr.0+LMS+HSCRL
|
||||||
@@ -431,10 +431,10 @@ insertObject
|
|||||||
cmp #2
|
cmp #2
|
||||||
bcs AddBirds
|
bcs AddBirds
|
||||||
NoBirds
|
NoBirds
|
||||||
randomize 8 12 ; cactuses and hole
|
randomize 8 12 ; cactuses
|
||||||
bne Drawn
|
bne Drawn
|
||||||
AddBirds
|
AddBirds
|
||||||
randomize 7 12 ; cactuses and hole
|
randomize 7 10 ; bigger cactuses and birds
|
||||||
Drawn
|
Drawn
|
||||||
cmp #7 ; if bird then select one shape from 3
|
cmp #7 ; if bird then select one shape from 3
|
||||||
bne NoBird
|
bne NoBird
|
||||||
@@ -1173,20 +1173,19 @@ FadeColor
|
|||||||
.endp
|
.endp
|
||||||
;-----------------------------------------------
|
;-----------------------------------------------
|
||||||
.proc SetGameScreen
|
.proc SetGameScreen
|
||||||
SetDLI CloudsDLI ; clouds on grey
|
|
||||||
mwa #GameDL dlptrs
|
mwa #GameDL dlptrs
|
||||||
lda #@dmactl(standard|dma|players|missiles|lineX1) ; normal screen width, DL on, P/M on
|
lda #@dmactl(standard|dma|players|missiles|lineX1) ; normal screen width, DL on, P/M on
|
||||||
lda #%00111110
|
lda #%00111110
|
||||||
sta dmactls
|
sta dmactls
|
||||||
mva #>font1 chbas
|
mva #>font1 chbas
|
||||||
mva #>PMgraph PMBASE
|
mva #>PMgraph PMBASE
|
||||||
lda #%00011111 ; P/M on
|
lda #%00000010 ; P/M on
|
||||||
sta GRACTL
|
sta GRACTL
|
||||||
lda #$0a
|
lda #$0c
|
||||||
sta COLPM0
|
sta PCOLR0
|
||||||
sta COLPM1
|
sta PCOLR1
|
||||||
sta COLPM2
|
sta PCOLR2
|
||||||
sta COLPM3
|
sta PCOLR3
|
||||||
lda #90
|
lda #90
|
||||||
sta HPOSP0
|
sta HPOSP0
|
||||||
lda #70
|
lda #70
|
||||||
@@ -1240,39 +1239,6 @@ pressed
|
|||||||
beq @-
|
beq @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
|
||||||
.proc CloudsDLI
|
|
||||||
pha
|
|
||||||
lda VCOUNT
|
|
||||||
sta $500
|
|
||||||
cmp #$3f
|
|
||||||
bcc other
|
|
||||||
sta WSYNC
|
|
||||||
lda COLOR1
|
|
||||||
sta COLPF1
|
|
||||||
pla
|
|
||||||
rti
|
|
||||||
other
|
|
||||||
lda #$a
|
|
||||||
sta COLPF1
|
|
||||||
pla
|
|
||||||
rti
|
|
||||||
.endp
|
|
||||||
;--------------------------------------------------
|
|
||||||
.macro SetDLI
|
|
||||||
; SetDLI #WORD
|
|
||||||
; Initialises Display List Interrupts
|
|
||||||
LDY # <:1
|
|
||||||
LDX # >:1
|
|
||||||
jsr _SetDLIproc
|
|
||||||
.endm
|
|
||||||
.proc _SetDLIproc
|
|
||||||
LDA #$C0
|
|
||||||
STY VDSLST
|
|
||||||
STX VDSLST+1
|
|
||||||
STA NMIEN
|
|
||||||
rts
|
|
||||||
.endp
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
icl 'artwork/shapes.asm'
|
icl 'artwork/shapes.asm'
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user