0 Members and 2 Guests are viewing this topic.
Menu("Choose","Play",1,"About",2,"Quit",3)
:ClrHome:AxesOff:ClrDraw:1?W:While W:While W=1:Text(1,1,"CHOOSE FORMULA:Text(7,1,"1:CIRCLE AREA:Text(14,1,"2:SPHERE VOL.:Text(21,1,"3:CYLINDER VOL.:Text(28,1,"4:CONE VOL.:Text(35,1,"5:CONE SURFACE AREA:Text(42,1,"6:QUADR. PYR. VOL.:Text(49,1,"7:CYLINDER SURFACE AREA:Text(56,1,"8:MORE FORMULAS:Repeat 2>abs(5-abs(5-abs(Ans-83:getKey:End:Ans?K:If K=73:Then:ClrDraw:2?W:Else:If K=92:Then:ClrHome:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,RRp:End:If K=93:Then(...)
Menu() is the correct command if you want a simple title screen.Make sure your labels match when you use it though.
Code: [Select]:ClrHome:AxesOff:ClrDraw:1?W:While W:While W=1:Text(1,1,"CHOOSE FORMULA:Text(7,1,"1:CIRCLE AREA:Text(14,1,"2:SPHERE VOL.:Text(21,1,"3:CYLINDER VOL.:Text(28,1,"4:CONE VOL.:Text(35,1,"5:CONE SURFACE AREA:Text(42,1,"6:QUADR. PYR. VOL.:Text(49,1,"7:CYLINDER SURFACE AREA:Text(56,1,"8:MORE FORMULAS:Repeat 2>abs(5-abs(5-abs(Ans-83:getKey:End:Ans?K:If K=73:Then:ClrDraw:2?W:Else:If K=92:Then:ClrHome:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,RRp:End:If K=93:Then(...)
Something like that.
:.VIRUS:ClrHome:For(A,1,9999:Pause 9999:Pause 9999:Pause 9999:Pause 9999
.AxeWhile 1End
.AxeAsm(C7)
:Text(1,14,"2:SPHERE VOL.
:Text(14,1,"2:SPHERE VOL.
input->Str0
If getKey(1) and getKey(2)
.AXEKEYF Axe key finderClrHome0->Z0->QText(0,0,"Axe Key Finder v1.0")Text(0,0,"--------------------")Text(0,57,"(C) Albert H. - Axe by Quigbo")Text(0,12,"Key:")While Q!=1 (this is the does not equal to sign, not a ! and a =)getKey->ZIf Z!=0Text(14,12," ")Text(14,12,Z>Dec)If Z=15If Q=21->QEndIf Q=0Text(0,24,"Press CLEAR again to exit.")2->QEndElseText(0,24," ")0->QEndEndEndClrHome
ClrHomeDisp "Menu" ,i, "1) Start" ,i, "2) Options" ,i, "3) Help" ,i, "4) About" ,i, "5) Exit"Repeat G=27getkey->GIf G=34sub(S)EndIf G=26sub(O)EndIf G=18sub(H)EndIf G= 35sub(A)EndEndClrHome
ClrDrawClrHomeText(0,0,"TitleText(0,10,"1:PlayText(0,20,"2:AboutText(0,30,"3:HelpText(0,40,"4:Quitgetkey->ZIf G=34// CODE FOR GAMEEndIf G=26ClrHomeDisp "GAME BY DAVID"EndIf G=18Disp "HELP ..."EndIf G=35Stop