snake game console

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

Puzomor
Newbie
Posts: 2
Joined: Thu Jul 05, 2012 9:34 am

snake game console

Postby Puzomor » Thu Jul 05, 2012 9:40 am

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?

User avatar
Lachie Dazdarian
Veteran
Posts: 204
Joined: Mon Aug 30, 2004 6:18 am
Location: Croatia
Contact:

Postby Lachie Dazdarian » Sun Jul 15, 2012 1:38 pm

open cons for output as #1
print #1, "xxxx"
Lachie Dazdarian - The Maker Of Stuff

User avatar
Lachie Dazdarian
Veteran
Posts: 204
Joined: Mon Aug 30, 2004 6:18 am
Location: Croatia
Contact:

Postby Lachie Dazdarian » Sun Jul 15, 2012 1:43 pm

For more features you might want to check these routines:

http://www.freebasic.net/forum/viewtopi ... ass#p97918
Lachie Dazdarian - The Maker Of Stuff

Puzomor
Newbie
Posts: 2
Joined: Thu Jul 05, 2012 9:34 am

Postby Puzomor » Sun Jul 15, 2012 5:12 pm

puno hvala!


Return to “Freebasic Questions & Answers”

Who is online

Users browsing this forum: No registered users and 4 guests

cron