mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-26 00:29:29 +00:00
mist: generator: add sign on the wall
more trouble than it was worth
This commit is contained in:
parent
70c1c2ca88
commit
df5c281789
|
@ -116,7 +116,7 @@ GEN_TOWER1_TRAIL2 = 6
|
|||
GEN_TOWER1_BOTTOM = 7
|
||||
GEN_TOWER1_TOP = 8
|
||||
GEN_GREEN_STEPS3 = 9
|
||||
|
||||
GEN_SIGN = 10
|
||||
|
||||
; Mist Octagon Building
|
||||
|
||||
|
|
|
@ -150,6 +150,36 @@ needle_strings:
|
|||
|
||||
generator_button_press:
|
||||
|
||||
lda DIRECTION
|
||||
and #$f
|
||||
cmp #DIRECTION_N
|
||||
beq really_the_panel
|
||||
|
||||
; otherwise, the sign
|
||||
|
||||
lda CURSOR_X
|
||||
cmp #27
|
||||
bcs draw_sign
|
||||
|
||||
; not draw sign, leave room
|
||||
|
||||
lda #GEN_GENERATOR_DOOR
|
||||
sta LOCATION
|
||||
jmp change_location
|
||||
|
||||
draw_sign:
|
||||
|
||||
lda #GEN_SIGN
|
||||
sta LOCATION
|
||||
|
||||
lda #(DIRECTION_S|DIRECTION_SPLIT)
|
||||
sta DIRECTION
|
||||
|
||||
jmp change_location
|
||||
|
||||
|
||||
really_the_panel:
|
||||
|
||||
lda CURSOR_Y
|
||||
cmp #38
|
||||
bcs button_bottom_row ; bge
|
||||
|
|
|
@ -19,7 +19,8 @@ generator_graphics.inc: \
|
|||
tower1_trail_w.lzsa tower1_trail_e.lzsa \
|
||||
tower1_trail2_n.lzsa tower1_trail2_s.lzsa tower1_trail2_w.lzsa \
|
||||
tower1_base_e.lzsa \
|
||||
tower1_top_e.lzsa
|
||||
tower1_top_e.lzsa \
|
||||
generator_sign.lzsa
|
||||
echo "generator_n_lzsa: .incbin \"generator_n.lzsa\"" > generator_graphics.inc
|
||||
echo "generator_s_lzsa: .incbin \"generator_s.lzsa\"" >> generator_graphics.inc
|
||||
echo "green_house_w_lzsa: .incbin \"green_house_w.lzsa\"" >> generator_graphics.inc
|
||||
|
@ -40,6 +41,7 @@ generator_graphics.inc: \
|
|||
echo "tower1_trail2_s_lzsa: .incbin \"tower1_trail2_s.lzsa\"" >> generator_graphics.inc
|
||||
echo "tower1_base_e_lzsa: .incbin \"tower1_base_e.lzsa\"" >> generator_graphics.inc
|
||||
echo "tower1_top_e_lzsa: .incbin \"tower1_top_e.lzsa\"" >> generator_graphics.inc
|
||||
echo "generator_sign_lzsa: .incbin \"generator_sign.lzsa\"" >> generator_graphics.inc
|
||||
|
||||
%.gr: %.png
|
||||
$(PNG2GR) $< $@
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 11 KiB |
BIN
mist/graphics_generator/generator_sign.png
Normal file
BIN
mist/graphics_generator/generator_sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 837 B |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 15 KiB |
|
@ -6,7 +6,7 @@
|
|||
locations:
|
||||
.word location0, location1, location2, location3
|
||||
.word location4, location5, location6, location7
|
||||
.word location8, location9
|
||||
.word location8, location9, location10
|
||||
|
||||
; GEN_GREEN_SHACK
|
||||
location0:
|
||||
|
@ -99,7 +99,7 @@ location4:
|
|||
.word $0000 ; east bg
|
||||
.word $0000 ; west bg
|
||||
.byte BG_NORTH | BG_SOUTH
|
||||
.byte DIRECTION_N
|
||||
.byte DIRECTION_N|DIRECTION_S
|
||||
.byte 24,36 ; special x
|
||||
.byte 34,40 ; special y
|
||||
.word generator_button_press-1 ; special function
|
||||
|
@ -197,3 +197,21 @@ location9:
|
|||
.word $0000 ; west bg
|
||||
.byte BG_NORTH | BG_SOUTH
|
||||
.byte $ff
|
||||
|
||||
; GEN_SIGN -- sign on the wall
|
||||
location10:
|
||||
.byte $ff ; north exit
|
||||
.byte GEN_GENERATOR_ROOM ; south exit
|
||||
.byte $ff ; east exit
|
||||
.byte $ff ; west exit
|
||||
.byte $ff ; north exit_dir
|
||||
.byte DIRECTION_S ; south exit_dir
|
||||
.byte $ff ; east exit_dir
|
||||
.byte $ff ; west exit_dir
|
||||
.word $0000 ; north bg
|
||||
.word generator_sign_lzsa ; south bg
|
||||
.word $0000 ; east bg
|
||||
.word $0000 ; west bg
|
||||
.byte BG_SOUTH
|
||||
.byte $ff
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user