Posted: 05:56am 13 Oct 2015 |
Copy link to clipboard |
 Print this post |
|
Not a problem the attached is an example out of my sprite demo
' create a simple background to demonstrate that display memory is restored after a sprite is erased
cls rgb(0,89,41)
box 0,200,480,72,1,rgb(123,117,0),rgb(123,117,0)
box 0,0,480,100,1,rgb(123,255,255),rgb(123,255,255)
circle 400,50,30,,,rgb(yellow),rgb(yellow)
'
pwm 1,1000,50 'set the display backlight
'
read nsprites%,width%,height% 'read in the sprite data
'
' Dimension basic variables and the main arrays
'
DIM i%,j%,k%,l%,xold%,yold%
dim x%(numsprites%),y%(numsprites%),displaydata%(width%*height%/2,numsprites%),sprites%(width%*height%/2,nsprites%)
|