Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141004192323

Hmm, I just thought of something. Graphic pages are used for everything. For BGs, sprites, and even just as a simple graphics layer. Graphic pages are 512x512 each, yet for use as a graphics layer, only 400x240 (or 400x480 in XSCREEN 4?) is visible. Why not allow offsetting of it?

Also, because graphic pages are used for everything, we can technically use the graphic functions (GPSET,GCIRCLE,etc) to write to pages used by sprites and BGs, and we can display 1-5 full 400x240 graphic layers at the same time. 1 by the page used by the true graphics layer, 2 by using BG layers, and 2 by using 2 sprites. For BG layers, you'd make 2 of them. Designate where on the graphic page where they'll sit, and address each tile to the spot cooresponding to where it would be on the graphic area you choose. We set the offset of the BG layers to <0,0>. sprites are simpler. Make 2 of them, set their  to the top-left corner of where we'd draw graphics on that page and set their  to <400,240>. Offset them to <0,0>. With sprites, we can also use SPCOLOR to adjust the coloring and alpha of it.