Re: A82: Galaxian v2.1
[Prev][Next][Index][Thread]
Re: A82: Galaxian v2.1
At 06:53 PM 2/6/98 -0600, you wrote:
>Hey, how come it takes forever to recognize my keypresses at the menu
>screens?
this is because the keypress is determined in 2 different labels..
main_loop:
call GET_KEY
cp G_2nd
jr nz,no_instructions
ld hl,0
ld (CURSOR_ROW),hl
ld hl,instruction_text
ROM_CALL(D_ZT_STR)
xor a
no_instructions:
call GET_KEY
cp G_CLEAR
jr z,exit_game
cp G_ENTER
jr nz,main_loop
call play_game
call game_over
It would probably work better if it looked like this:
main_loop:
call GET_KEY
cp G_2nd
jr nz,main_loop
ld hl,0
ld (CURSOR_ROW),hl
ld hl,instruction_text
ROM_CALL(D_ZT_STR)
xor a
call GET_KEY
cp G_CLEAR
jr z,exit_game
cp G_ENTER
jr nz,main_loop
call play_game
call game_over
or something similar to this.. i haven't tried it yet, but it will
probably work
--
Craig
http://cjslush.home.mindspring.com
***
References: