Well now, a couple of days ago, mawe posted CamelTrouble, a game written in perl/Tk. Myself, I am still having troubles with the Tk modules and I don't understand why. My perl skills are advanced enough that I shouldn't have such problems. I posted a reply to the thread stating that I could probably relearn my long forgotten skills of MS QuickBasic and program more or less the same game before I could learn to do it in perl/Tk.

Well, I decided to see how right I was by saying that! And so, lo and behold, I created quite a similar game in QuickBasic. The code is pretty ugly in areas, the game functionality isn't 100% identical as mawe's version, but it works great (for me). I even made the walls high enough so that the camel can't jump over them :P.

Since I saved the graphics in separate files (those darn DATA statements were too ugly so I decided to export them separately), just posting the source code won't do. So below you will find an external link from which you can download the zipped version. It comes with a simple readme file, the necessary graphic files, the QBASIC source code (.bas file), and a precompiled version of the source for those who do not have and do not wish to install QBASIC. Enjoy :)

Download QB CamelTrouble [ 46.7 KB (47,859 bytes) ]

Replies are listed 'Best First'.
Re: Perl/Tk vs QuickBasic :-)
by zentara (Cardinal) on Apr 10, 2004 at 15:31 UTC
    I would prefer to see it in Visual Cobol. :-)

    I'm not really a human, but I play one on earth. flash japh
Re: Perl/Tk vs QuickBasic :-)
by hossman (Prior) on Apr 10, 2004 at 20:50 UTC

    Too bad QuickBasic doesn't run on my box, fortunately Perl/Tk does :)

    Thanx for pointing out CamelTrouble, I'd managed to miss it before.

Re: Perl/Tk vs QuickBasic :-)
by flyingmoose (Priest) on Apr 12, 2004 at 14:14 UTC
    Port it to brain**** and I might be interested...

    Seriously, I owe a great deal of debt to early games and graphics programs I wrote in QBasic... Quite fun back in the day. I really wonder what kids these days start in, and if they have as much fun, as other languages seem to have much higher barriers to entry. Someone is going to say "Java" or "Visual Basic" or "Python", but really they are still a great deal more complex and quirky (or hard to discover) than QB. I often judge a language by how many lines of code it takes to get a fullscreen graphics mode and draw a few lines on the screen :)