Rem Project: DrawTextOverSprites
Rem Created: 21/03/2009 20:00:46
rem a small program to show how to draw text over
rem sprites rendered to the screen
rem make an image
ink rgb(255,0,0),0
for n=1 to 15 : circle 16,16,n : next n : get image 1,0,0,32,32
ink rgb(255,255,0),0
rem Init app
sync on : sync rate 60
rem Tell all sprites that they should draw themselves FIRST
draw sprites first
rem Main loop
do
`
rem Draw sprite
inc a,8 : sprite 1,100+sin(a)*5,100+cos(a)*5,1
`
rem Draw text
text 100,110,"HELLO WORLD, I AM OVER A SPRITE"
`
rem Update screen
sync
`
rem End loop
loop
Dark Physics makes any hot drink go cold.