Page 1 of 1

snake game console

Posted: Thu Jul 05, 2012 9:40 am
by Puzomor
hi, im in a making of snake game and im using screen 18 in freebasic. in the main loop,i have this situation:
DO
...
counter+=1
if counter>1500 then counter=0
LOOP UNTIL ...
how do i "print" the counter value into the console window that opens when i start the game along with graphical window?

Posted: Sun Jul 15, 2012 1:38 pm
by Lachie Dazdarian
open cons for output as #1
print #1, "xxxx"

Posted: Sun Jul 15, 2012 1:43 pm
by Lachie Dazdarian
For more features you might want to check these routines:

http://www.freebasic.net/forum/viewtopi ... ass#p97918

Posted: Sun Jul 15, 2012 5:12 pm
by Puzomor
puno hvala!