how do i make it to where you use the arrow keys to move the selector thing and enter to select, like making it end when you click exit game.
Rem Project: Midtime
Rem Created: 7/21/2004 10:42:00 AM
Rem ***** Main Source File *****
sync on
sync rate 0
`-------------------- Select screen -------------------------------
StartPrompt:
cls
clear entry buffer
load image "Midtime title.jpg", 1
paste image 1, 155,120
center text 200, 400, "[N]ew Game"
center text 330, 400, "[L]oad Game"
center text 450, 400, "[E]xit Game"
sync
Select upper$(INKEY$())
Case "N": gosub NewGameInit : EndCase
Case "L": gosub LoadGameInit: EndCase
Case "E": Gosub Quit: Endcase : if input "e" then end
Case default: Goto StartPrompt :Endcase
EndSelect
gosub main
wait key
`------------------------------------------------------------------
`Game typr initialization
NewGameInit:
`new game initialization code
test$="newgame was processed"
gosub main
return
LoadGameInit:
`Load game initialization
test$="load game was processed"
return
quit:
`cleanup resources
test$="quit was processed - press any key"
print test$
sync
wait key
end
return
`****************** Main Game Loop
main:
do
`cls
text 10,20,">"+test$
if mouseclick()=1
goto StartPrompt
endif
sync
loop
return
Chaos Games