{{htmlmetatags>metatag-robots=()
metatag-title=( | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(An isomorphic language for retrocomputers)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=( | ugBASIC User Manual)
metatag-og:description=(An isomorphic language for retrocomputers)
}}
====== ugBASIC User Manual ======
===== =====
==== PURPOSE ====
==== SOURCE CODE ====
DeS1Sp128:DeS1C%32:DeScM#Uq:BmEn(16):C#a0=2:C#a1=ScHg/ 16:C#a2=( ScHg-1 ):C#a3=a2-16:C#a4=( ScWd-1 ):C#a5=( ScHg-12 ):C#a6=( ScWd-16 ):C#a7=2*a0:C#a8=300:C#b9=( ScWd/ 2 ) -4:C#b0=10:C#b1=ScRws/ 2:C#b2=ScCms-10:Dix%,y%,px%,py%,dx%,dy%,d@,m@,v@,b3@,b4@,b5@
Dib6%,b7%,c8%,bx%,by%:Gbx,y,px,py,f,dx,dy,d,m,v,b6,b7,b3,b4,c8:Gbb5,c9:Gbbx,by:Gbc0,c1,c2:Gbc3:Prcdc4:Lc,1:EePrcd:Prcdc5:Wt1000 MS:Lc,1:Ce" ":EePrcd:Prcdc6:Lc,b1:EePrcd:Prcdd7:Cl:Lc,b1:IkBu:Ce"{BLUE}10 BALLS DOWN!":Ce"{GREY}(press fire)":?
Ce"{RED}last score: "+STR(b6):WtFiRl:EePrcd:Prcdd8:c2:=NwIm(16,10):ClBl:IkGREY:Br0,0To15,3:IkBu:Dr"L16R2U3L2R16L2D3L4U3L3D3":c1:=NwIm(16,4):GeImc1 Fm0,0:Cl:IkGREY:Br0,0 To15,7:IkBu:Dr"BU8D8L15U8":c3:=NwIm(16,8):GeImc3 Fm0,0:b5=Pt(3,1):Cl:IkRe:Ci4,4,4:P#(4,4)
IkWht:Dr"BU2L1D1L1D1":c0:=NwIm(16,10):GeImc0 Fm0,0:Cl:GeImc2 Fm0,0:EePrcd:Prcdd9:bx=0:j=RND(255):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