well, I could have compressed this more based on the rules, but for now 7 lines is small enough. this is something I was working on this week and thought since it fit I would add it here. it's not the best Falling text I have seen, but it is the best I have seen in Dark Basic(pro) "So Far".
here is the Code
rem *****************************************************
rem * Created by Jon "Angry Kreyon" Ericson 8-27-07 *
rem *****************************************************
sync on : sync rate 0 : hide mouse : sH=screen height() : sW=screen width() : set cursor sW /2,sH /2 : set text font "symbol" : set text to bold : set text size 18 : dim x(20) : dim y(20)
for i = 1 to 20 : y(i) = 0 : x(i) = rnd(screen width()) : next i : randomize 255 : do : drop(rnd(2),800/rnd(66)) : loop
function drop(H,W) : ink rgb(0,255,0),rgb(0,0,0) : x(i) = rnd(screen width() ) : for i = 1 to 20 : for c = 1 to 35 : ink rgb(0,255-(c*5),0),rgb(0,0,0)
center text x(i),y(i),chr$(192+rnd(61)):sync : center text x(i),y(i),chr$(rnd(255)):sync : center text x(i)*0.2,y(i),chr$(192+rnd(21)):sync : center text x(i)*0.6,y(i),chr$(rnd(61)):sync : center text x(i)/0.2,y(i),chr$(rnd(200)):sync : center text x(i)/0.6,y(i),chr$(192+rnd(161)):sync
if y(i) > screen height() : x(i) = rnd(screen width() ) : y(i) = 0 - rnd(screen height() ) : else : y(i) = y(i) + 18 : endif
if scancode() = 25 : drop(1,rnd(W)): endif : if scancode()=1 : exit : endif : next c : fade bitmap 0,98 : next i : flip bitmap 0 : mirror bitmap 0 : ink rgb(0,255,0),rgb(0,0,0)
endfunction
Have Fun and Enjoy if you want to see the uncompressed version goto :
http://forum.thegamecreators.com/?m=forum_view&t=113254&b=6
screen shot attached!