ASCII sprites - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html) +--- Forum: QB Projects (http://qbasicnews.com/newforum/forum-12.html) +--- Thread: ASCII sprites (/thread-10111.html) |
ASCII sprites - LPG - 04-29-2008 I am writing a heap of ascii sprites for dos and compiling them to *.exe . when you run it an ascii sprite appears at a random location. you can also specify the location through command line options. this is the code so far: Code: 'sheep.bas please post any suggestions, criticisms or comments     LPG Re: ASCII sprites - zoasterboy - 04-30-2008 Looks like a good start for a simple screen saver. Have you had any experience opening and saving data into sequential data files? I would recommend setting it up so that you can build the sprite in some sort of simple editor, save it into a file, and then open it with this program. Then people could make their own little screen saver. If you need any help getting started with that I could show you how it could work. Re: ASCII sprites - LPG - 05-01-2008 I thought of it not as a screen saver but as a distraction at the command prompt. sort of like the windows E-Sheep http://www.montagar.com/~patj/esheep.exe Re: ASCII sprites - zoasterboy - 05-02-2008 That's a good idea, but the problem is that while the program is running you wont be able to type commands. One thing that you could do is have the sheep program pass any commands typed to the command prompt: Code: DO This is a very simple example, but each time the user enters a command there is a probability that the sheep moves to a new random location. The old sheep will still exist. Re: ASCII sprites - LPG - 05-03-2008 When you run the sheep program as an EXE it leaves the sheep on the screen after the program terminates. the grass infront of the sheep flashes because screen 0 supports blinking colours. Re: ASCII sprites - zoasterboy - 05-07-2008 Ah ok, I was thinking you wanted it to randomly move around while the person is typing commands and whatnot, because it will disappear once the screen is cleared or other text pushes it up. |