mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-13 03:29:32 +00:00
mist_hgr: more file adds
This commit is contained in:
parent
545ef73f11
commit
25223da438
|
@ -97,9 +97,9 @@ QLOAD: qload.o
|
||||||
ld65 -o QLOAD qload.o -C ../../linker_scripts/apple2_1200.inc
|
ld65 -o QLOAD qload.o -C ../../linker_scripts/apple2_1200.inc
|
||||||
|
|
||||||
qload.o: qload.s qboot.inc \
|
qload.o: qload.s qboot.inc \
|
||||||
gr_copy.s gr_offsets.s gr_pageflip.s gr_putsprite_crop.s \
|
gr_offsets.s \
|
||||||
text_print.s gr_fast_clear.s decompress_fast_v2.s \
|
text_print.s gr_fast_clear.s decompress_fast_v2.s \
|
||||||
keyboard.s draw_pointer.s end_level.s audio.s loadstore.s \
|
keyboard.s audio.s loadstore.s \
|
||||||
qkumba_popwr.s
|
qkumba_popwr.s
|
||||||
ca65 -o qload.o qload.s -l qload.lst
|
ca65 -o qload.o qload.s -l qload.lst
|
||||||
|
|
||||||
|
@ -177,9 +177,9 @@ MIST_TITLE: mist_title.o
|
||||||
mist_title.o: mist_title.s zp.inc hardware.inc common_defines.inc \
|
mist_title.o: mist_title.s zp.inc hardware.inc common_defines.inc \
|
||||||
common_routines.inc \
|
common_routines.inc \
|
||||||
graphics_title_hgr/mist_title.lzsa graphics_title/title_graphics.inc \
|
graphics_title_hgr/mist_title.lzsa graphics_title/title_graphics.inc \
|
||||||
gr_copy.s gr_offsets.s gr_pageflip.s gr_putsprite_crop.s \
|
gr_copy.s gr_offsets.s \
|
||||||
text_print.s gr_fast_clear.s decompress_fast_v2.s \
|
text_print.s gr_fast_clear.s decompress_fast_v2.s \
|
||||||
keyboard.s draw_pointer.s end_level.s audio.s \
|
keyboard.s audio.s \
|
||||||
init_state.s wait_a_bit.s \
|
init_state.s wait_a_bit.s \
|
||||||
link_book_mist_dock.s common_sprites.inc leveldata_title.inc \
|
link_book_mist_dock.s common_sprites.inc leveldata_title.inc \
|
||||||
pt3_lib_core.s pt3_lib_init.s pt3_lib_mockingboard_detect.s \
|
pt3_lib_core.s pt3_lib_init.s pt3_lib_mockingboard_detect.s \
|
||||||
|
|
30
games/mist_hgr/graphics_title_hgr/Makefile
Normal file
30
games/mist_hgr/graphics_title_hgr/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#include ../Makefile.inc
|
||||||
|
|
||||||
|
B2D = ../../bmp2dhr/b2d
|
||||||
|
PNG2GR = ../../gr-utils/png2gr
|
||||||
|
LZSA = ~/research/lzsa/lzsa/lzsa
|
||||||
|
|
||||||
|
|
||||||
|
all: mist_title.lzsa
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
mist_title.lzsa: MIST_TITLEC.BIN
|
||||||
|
$(LZSA) -r -f2 MIST_TITLEC.BIN mist_title.lzsa
|
||||||
|
|
||||||
|
MIST_TITLEC.BIN: mist_title.bmp
|
||||||
|
$(B2D) mist_title.bmp HGR -d
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
%.gr: %.png
|
||||||
|
$(PNG2GR) $< $@
|
||||||
|
|
||||||
|
%.lzsa: %.gr
|
||||||
|
$(LZSA) -r -f2 $< $@
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ *.o *.lst
|
BIN
games/mist_hgr/graphics_title_hgr/mist_title.lzsa
Normal file
BIN
games/mist_hgr/graphics_title_hgr/mist_title.lzsa
Normal file
Binary file not shown.
28
games/mist_hgr/init_state.s
Normal file
28
games/mist_hgr/init_state.s
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
; init state
|
||||||
|
|
||||||
|
; initial state at start of game is for all vars to be 0
|
||||||
|
|
||||||
|
init_state:
|
||||||
|
|
||||||
|
; global game state
|
||||||
|
lda #0
|
||||||
|
sta JOYSTICK_ENABLED
|
||||||
|
|
||||||
|
; game state in saves init
|
||||||
|
|
||||||
|
lda #$0
|
||||||
|
ldy #WHICH_LOAD
|
||||||
|
init_state_loop:
|
||||||
|
sta 0,Y
|
||||||
|
iny
|
||||||
|
cpy #END_OF_SAVE
|
||||||
|
bne init_state_loop
|
||||||
|
|
||||||
|
|
||||||
|
; testing
|
||||||
|
|
||||||
|
; lda #$ff
|
||||||
|
; sta MARKER_SWITCHES
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user