Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DIM SCRNBUF(32002) AS INTEGER
DIM SCRNBUF2(32002) AS INTEGER
...
SCREEN 13
GET (0, 0)-(319, 199), SCRNBUF
GET (0, 0)-(319, 199), SCRNBUF2
...
SUB BLENDBUFS
FOR CP& = 0 TO 64000
DEF SEG = VARSEG(SCRNBUF(0))
CPXL1& = VARPTR(SCRNBUF(2)) + CP&
C1% = PEEK(CPXL1&)
DEF SEG
DEF SEG = VARSEG(SCRNBUF2(0))
CPXL2& = VARPTR(SCRNBUF2(2)) + CP&
POKE (CPXL2&), Div2Map(PEEK(CPXL2&) + C1%)
DEF SEG
NEXT
PUT (0, 0), SCRNBUF2, PSET
END SUB
DIM SHARED SCRBUF(32001) AS INTEGER
DIM SPRITE(201) AS INTEGER
GET(0,0)-(319,199), SCRBUF
GET(0,0)-(19,19), SPRITE
DEFINT A-Z
Sub Mask(X, Y,SPRITE(), Trans)
MaxX = (SPRITE(0) \ 8) - 1
MaxY = SPRITE(1) - 1
Off& = VARPTR(SPRITE(2))
YOff& = Y * 320&
FOR B = 0 TO MaxY
FOR A = 0 TO MaxX
DEF SEG = VARSEG(SPRITE(0))
C = PEEK(Off&)
Off& = Off& + 1
IF C <> Trans THEN
DEF SEG = VARSEG(SCRBUF(0))
CPXL2& = VARPTR(SCRBUF(2)) + CP&
POKE (X + A + YOff&), C
END IF
NEXT
YOff& = YOff& + 320
NEXT
DEF SEG
PUT (0, 0), SCRBUF, PSET
END SUB