This code will be tidied up, but is something I cranked out whilst working on Breakout a few days ago. When the &bordertilearrays routine is called, using the LT or NG variant, I get a buffer underflow error. The code will def be tidied up and is a mess at the moment, but I have to rename and rearrange a ton of tiles before changing the basic way this routine will work.
Any help will be greatly appreciated and welcomed!
`'
' let's put our border image names
' into arrays
'
&bordertilearrays
'
' these are 16x10 border tiles
'
dim border1$(35)
temp1$="/sd/breakout/assets/16x10bordertiles/"
border1$(1)=temp$+"16x10orangeaqua1.png"
border1$(2)=temp$+"16x10orangeblue1.png"
border1$(3)=temp$+"16x10orangegray1.png"
border1$(4)=temp$+"16x10orangegreen1.png"
border1$(5)=temp$+"16x10orangepurple1.png"
border1$(6)=temp$+"16x10orangered1.png"
border1$(7)=temp$+"16x10orangetan1.png"
border1$(8)=temp$+"16x10orangeyellow1.png"
border1$(9)=temp$+"16x10purpleaqua1.png"
border1$(10)=temp$+"16x10purpleblue1.png"
border1$(11)=temp$+"16x10purpleaqua1.png"
border1$(12)=temp$+"16x10purplegreen1.png"
border1$(13)=temp$+"16x10purpleorange1.png"
border1$(14)=temp$+"16x10purplered1.png"
border1$(15)=temp$+"16x10purpletan1.png"
border1$(16)=temp$+"16x10purpleyellow1.png"
border1$(17)=temp$+"16x10yellowaqua1.png"
border1$(18)=temp$+"16x10yellowblue.png"
border1$(19)=temp$+"16x10yellowgray1.png"
border1$(20)=temp$+"16x10yellowgreen1.png"
border1$(21)=temp$+"16x10yelloworange1.png"
border1$(22)=temp$+"16x10yellowpurple1.png"
border1$(23)=temp$+"16x10yellowred1.png"
border1$(24)=temp$+"16x10yellowtan1.png"
border1$(25)=temp$+"checker1.png"
border1$(26)=temp$+"checker2.png"
border1$(27)=temp$+"checker3.png"
border1$(28)=temp$+"checker4.png"
border1$(29)=temp$+"strange1.png"
border1$(30)=temp$+"strange2.png"
border1$(31)=temp$+"strange3.png"
border1$(32)=temp$+"strange4.png"
border1$(33)=temp$+"strange5.png"
border1$(34)=temp$+"strange6.png"
border1$(35)=temp$+"strange7.png"
'
' end of 16x10 border pieces
' - - - - - - - - - - - - - - - -
'
'
'
' 16x16 blue border brackets
'
dim border2$(20)
temp1$="/sd/breakout/assets/16x16bluebrackets/"
border2$(1)=temp1$+"backslash.png"
border2$(2)=temp1$+"bottom.png"
border2$(3)=temp1$+"centerhorizontal.png"
border2$(4)=temp1$+"centervertical.png"
border2$(5)=temp1$+"dithertest1aqya.png"
border2$(6)=temp1$+"dithertest1orangered.png"
border2$(7)=temp1$+"downtriangle.png"
border2$(8)=temp1$+"forwardslash.png"
border2$(9)=temp1$+"horizontalsupport.png"
border2$(10)=temp1$+"left.png"
border2$(11)=temp1$+"lefttriangle.png"
border2$(12)=temp1$+"lowerleft.png"
border2$(13)=temp1$+"lowerright.png"
border2$(14)=temp1$+"right.png"
border2$(15)=temp1$+"righttriangle.png"
border2$(16)=temp1$+"top.png"
border2$(17)=temp1$+"upperleft.png"
border2$(18)=temp1$+"upperright.png"
border2$(19)=temp1$+"uptriangle.png"
border2$(20)=temp1$+"verticalsupport.png"
'
' end of 16x16 blue border brackets
' - - - - - - - - - - - - - - - -
'
'
' 16x16 diamond border pieces
'
dim border3$(19)
temp1$="/sd/breakout/assets/16x16diamonds/"
border3$(19)=temp1$+"diamond19.png"
border3$(18)=temp1$+"diamond18.png"
border3$(17)=temp1$+"diamond17.png"
border3$(16)=temp1$+"diamond16.png"
border3$(15)=temp1$+"diamond15.png"
border3$(14)=temp1$+"diamond14.png"
border3$(13)=temp1$+"diamond13.png"
border3$(12)=temp1$+"diamond12.png"
border3$(11)=temp1$+"diamond11.png"
border3$(10)=temp1$+"diamond10.png"
border3$(9)=temp1$+"diamond9.png"
border3$(8)=temp1$+"diamond8.png"
border3$(7)=temp1$+"diamond7.png"
border3$(6)=temp1$+"diamond6.png"
border3$(5)=temp1$+"diamond5.png"
border3$(4)=temp1$+"diamond4.png"
border3$(3)=temp1$+"diamond3.png"
border3$(2)=temp1$+"diamond2.png"
border3$(1)=temp1$+"diamond1.png"
'
' end of 16x16 diamond border pieces
'
' - - - - - - - - - - - - - - - -
'
' 16x16 green border brackets
'
dim border4$(28)
temp1$="/sd/breakout/assets/16x16greenbrackets/"
border4$(1)=temp1$+"centercross.png"
border4$(2)=temp1$+"centerhorizontal.png"
border4$(3)=temp1$+"centervertical.png"
border4$(4)=temp1$+"circle1.png"
border4$(5)=temp1$+"crosshorizontal1.png"
border4$(6)=temp1$+"corsshorizontal2.png"
border4$(7)=temp1$+"crossvertical1.png"
border4$(8)=temp1$+"crossvertical2.png"
border4$(9)=temp1$+"diagonal1.png"
border4$(10)=temp1$+"diagonal2.png"
border4$(11)=temp1$+"diagonal3.png"
border4$(12)=temp1$+"diamond1.png"
border4$(13)=temp1$+"downdiamond.png"
border4$(14)=temp1$+"left.png"
border4$(15)=temp1$+"leftdiamond.png"
border4$(16)=temp1$+"lower.png"
border4$(17)=temp1$+"lowerleft.png"
border4$(18)=temp1$+"lowerright.png"
border4$(19)=temp1$+"one.png"
border4$(20)=temp1$+"right.png"
border4$(21)=temp1$+"rightdiamond.png"
border4$(22)=temp1$+"updiamond.png"
border4$(23)=temp1$+"upper.png"
border4$(24)=temp1$+"upperleft.png"
border4$(25)=temp1$+"upperright.png"
border4$(26)=temp1$+"x1.png"
border4$(27)=temp1$+"x2.png"
border4$(28)=temp1$+"zero.png"
'
' end of 16x16 green border brackets
' - - - - - - - - - - - - - - - -
'
'
' 16x16 orange border brackets
'
dim border5$(14)
temp1$="/sd/breakout/assets/16x16orangebrackets/""
border5$(1)=temp1$+"centerhorizontal2.png"
border5$(2)=temp1$+"centervertical.png"
border5$(3)=temp1$+"centervertical2.png"
border5$(4)=temp1$+"cross.png"
border5$(5)=temp1$+"left.png"
border5$(6)=temp1$+"lower.png"
border5$(7)=temp1$+"lowerleft.png"
border5$(8)=temp1$+"lowerright.png"
border5$(9)=temp1$+"lowertee.png"
border5$(10)=temp1$+"right.png"
border5$(11)=temp1$+"upper.png"
border5$(12)=temp1$+"upperleft.png"
border5$(13)=temp1$+"upperright.png"
border5$(14)=temp1$+"uppertee.png"
'
' end of 16x16 orange border brackets
' - - - - - - - - - - - - - - - - -
'
'
RETURN
'
' end of border tiles/bracket tiles
' as of April 9th 2022
' put any new tiles above these remarks
`