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,a2:EePrcd:PrPrcdd1:Rpt:WtWhd:Ifdy ORdx Th:x3=x-3:x4=x3+4:y9=y+9:x9=x+9:y4=y+4:IfPt(x4,y9)=BlTh:dy=1:dx=0:El:dy=0:Ifdx=0 Any<a5 Th:IfRND(100)>50Th:dx=a0:El:dx=-a0 Ei:Ei:IfPt(x4,y9)=b5 Th:c4[]:Ifc8<a8 Th:Adb6,a8-c8:Ce"+"+STR(a8-c8)+" points!":El:Ce"no points!":Ei:c5[]:dy=0:dx=0:y=8:x=b9:DECb3:Eify>a5 Th:c4[]:Ce"missed!":c5[]:dy=0:dx=0:y=8:x=b9:DECb3:Eifx>=a6 Andx>0 Th:dx=-a0:Eifx<a0 Andx<0 Th:dx=a0:EifPt(x9,y4)<>BlTh dx=-a0:EifPt(x3,y4) <>BlTh:dx=a0:Ei:Ei:Adx,dx:Ady,dy:INCc8:Ei:m=1:d=1:Uny>ScHg:EePrcd:Prcdd2:WtWhm:Fd:WhRstLn<y+16:We:Alw:EePrb:PrPrcdd3:Do:d2[]:d=1:Ifpx<>x OR py<>y Th:PuImc2 Fri Atpx,py:GeImc2 Fri Fmx,y:PuImc0 Atx,y WiTrs:px=x:py=y:Ei:d=0:Lp:EePrcd PrPrcdd4:Do:IkGREY:Ifb7<>b6 Th:Hm:?b6:b7=b6:Ei:Ifb4<>b3 Th:Lcb2,0:?"BALLS: ";b3;" ":b4=b3:Ei:Ify=8 Th:IfJl(0) Anx>a7 Th:Adx,-a0:Ei:IfJr(0) Anx<a6 Th:Adx,a0:Ei:IfJf(0) Th:dy=1:INCy:c8=0:Ei:Ei:Lp:EePrb:d8[]:Do:d7[]:b3=b0:b7=-1:b6=0:y=8:x=b9:dx=0:dy=0:d=1 m=0:d0[]:d5=Swd1:e6=Swd3:e7=Swd4:Do:ExIfb3=0:RUN Pr:Lp:Kid5:Kie6:Kie7:c6[]:Ce"{RED}score: "+STR(b6):?:Ce"(press fire)":WtFiRl:Lp
The instructions here refer to compiling the example from the command line. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to compile the example with just one click.
In order to compile and run the example, you need to have the Altirra emulator, and in particular that the altirra
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.atari contrib_gamex_10lines.bas -o example.xex altirra example.xex # Windows ugbc.atari.exe contrib_gamex_10lines.bas -o example.xex altirra example.xex
In order to compile and run the example, you need to have the Altirra emulator, and in particular that the altirra
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.atarixl contrib_gamex_10lines.bas -o example.xex altirra example.xex # Windows ugbc.atarixl.exe contrib_gamex_10lines.bas -o example.xex altirra example.xex
In order to compile and run the example, you need to have the VICE emulator, and in particular that the x64sc
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.c64 contrib_gamex_10lines.bas -o example.prg x64sc example.prg # Windows ugbc.c64.exe contrib_gamex_10lines.bas -o example.prg x64sc example.prg
In order to run the example, you need to have the YAPE emulator. In particular that the yape
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.plus4 contrib_gamex_10lines.bas -o example.prg yape example.prg # Windows ugbc.plus4.exe contrib_gamex_10lines.bas -o example.prg yape example.prg
In order to run the example, you need to have the VICE emulator. In particular that the xplus4
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.plus4 contrib_gamex_10lines.bas -o example.prg xplus4 example.prg # Windows ugbc.plus4.exe contrib_gamex_10lines.bas -o example.prg xplus4 example.prg
In order to compile and run the example, you need to have the XROAR emulator, and in particular that the xroar
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.d32 contrib_gamex_10lines.bas -o example.bin xroar -rompath (your rom path) example.bin # Windows ugbc.d32.exe contrib_gamex_10lines.bas -o example.bin xroar.exe -rompath (your rom path) example.bin
In order to compile and run the example, you need to have the XROAR emulator, and in particular that the xroar
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.d64 contrib_gamex_10lines.bas -o example.bin xroar -rompath (your rom path) example.bin # Windows ugbc.d64.exe contrib_gamex_10lines.bas -o example.bin xroar.exe -rompath (your rom path) example.bin
In order to compile and run the example, you need to have the DCMOTO emulator, and in particular that the dcmoto
executable is accessible.
Then, type this command on the command line and on the emulator:
# Linux ugbc.pc128op contrib_gamex_10lines.bas -o example.k7 dcmoto (choose BASIC 128) CLEAR,&H2FFF: LOADM"CASS:",R: EXEC # Windows ugbc.pc128op.exe contrib_gamex_10lines.bas -o example.k7 dcmoto (choose example.k7) (choose BASIC 128) CLEAR,&H2FFF: LOADM"CASS:",R: EXEC
In order to compile and run the example, you need to have the DCMOTO emulator, and in particular that the dcmoto
executable is accessible.
Then, type this command on the command line and on the emulator:
# Linux ugbc.pc128op contrib_gamex_10lines.bas -o example.k7 dcmoto (choose BASIC 128) CLEAR,&H2FFF: LOADM"CASS:",R: EXEC # Windows ugbc.pc128op.exe contrib_gamex_10lines.bas -o example.k7 dcmoto (choose example.k7) (choose BASIC 128) CLEAR,&H2FFF: LOADM"CASS:",R: EXEC
In order to compile and run the example, you need to have the VICE emulator, and in particular that the xvic
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.vic20 contrib_gamex_10lines.bas -o example.prg xvic --memory 24k example.prg # Windows ugbc.vic20.exe contrib_gamex_10lines.bas -o example.prg xvic --memory 24k example.prg
In order to compile and run the example, you need to have the Speccy emulator, and in particular that the speccy
executable is accessible.
Then, type this command on the command line:
# Linux ugbc.zx contrib_gamex_10lines.bas -o example.tap Speccy example.tap # Windows ugbc.zx.exe contrib_gamex_10lines.bas -o example.tap Speccy example.tap
In order to compile and run the example, you need to have the openMsx or the BlueMSX emulator, and in particular that its executable is accessible.
Then, type this command on the command line:
# Linux ugbc.msx1 contrib_gamex_10lines.bas -o example.rom openmsx -cart example.rom # Windows ugbc.msx1.exe contrib_gamex_10lines.bas -o example.rom openmsx -cart example.rom
# Linux ugbc.msx1 contrib_gamex_10lines.bas -o example.rom bluemsx example.rom # Windows ugbc.msx1.exe contrib_gamex_10lines.bas -o example.rom bluemsx example.rom
In order to compile and run the example, you need to have the openMsx or the BlueMSX emulator, and in particular that its executable is accessible.
Then, type this command on the command line:
# Linux ugbc.coleco contrib_gamex_10lines.bas -o example.rom openmsx -machine \"COL - ColecoVision\" -cart example.rom # Windows ugbc.coleco.exe contrib_gamex_10lines.bas -o example.rom bluemsx -machine \"COL - ColecoVision\" example.rom
# Linux ugbc.coleco contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"COL - ColecoVision\" /rom1 example.rom # Windows ugbc.coleco.exe contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"COL - ColecoVision\" /rom1 example.rom
In order to compile and run the example, you need to have the BlueMSX emulator, and in particular that its executable is accessible.
Then, type this command on the command line:
# Linux ugbc.sc3000 contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"SEGA - SC-3000\" /rom1 example.rom # Windows ugbc.sc3000.exe contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"SEGA - SC-3000\" /rom1 example.rom
In order to compile and run the example, you need to have the BlueMSX emulator, and in particular that its executable is accessible.
Then, type this command on the command line:
# Linux ugbc.sg1000 contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"SEGA - SG-1000\" /rom1 example.rom # Windows ugbc.sg1000.exe contrib_gamex_10lines.bas -o example.rom bluemsx /machine \"SEGA - SG-1000\" /rom1 example.rom
If you have found a problem trying to run this example, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub. Thank you!