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) ]


In reply to Perl/Tk vs QuickBasic :-) by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.