You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
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
for n=1 to 15 : circle 16,16,n : next n : get image 1,0,0,32,32
rem Init app
sync on : sync rate 60
rem Tell all sprites that they should draw themselves FIRST
draw sprites first
rem Main loop
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
rem End loop
Login to post a reply