Can someone explain to me why this works?
ACLS XSCREEN 1 DISPLAY 0 BGSCREEN 0,25,15,16 BGOFS 0,200,120 BGHOME 0,200,120 DIM X,Y,I FOR Y=0 TO 15-1 FOR X=0 TO 25-1 BGPUT 0,X,Y,Y*32+X NEXT X NEXT Y FOR I=0 TO 360-1 BGROT 0,I WAIT NEXT ISo, my intention was to get the BG screen to rotate centered at the top screen (200,120), which this does, but I actually don't understand why it works. I just learned BG stuff like 2 minutes ago so don't judge. BGOFS shifts the BG tiles so that the origin of the BG screen (0,0) is now at 200,120. Okay, great. BGHOME supposedly changes where the center of rotation and scaling of the BG page is, which it does, but it also shifts the whole BG screen back -200,-120, which I don't understand. If BGHOME used the translated coordinates from BGOFS (origin from 0,0 to 200,120), that is, if it treats 200,120 as the relative origin, then I'd expect the rotation center to be at OriginX+200,OriginY+120, or 400,240. If it instead was relative to screen coordinates, then I'd expect the rotation center to be 200,120 relative to the screen. Seems to be the latter, but it somehow also shifts the whole thing. yeah, idk.