173 points · by tonteldoos · 13y ago · 99 comments
He is NOT using QBasic, it's QB64. He gets instant access to some pretty sweet functionality that was never in QBasic. Transparent PNG support, resolutions with more than 16 colors above 320x200, double buffering, TCP/IP, and the list goes on.
Regardless, this guy is getting some awesome press with the QBasic thing. If you want to make money with games, it's all about the marketing.
I'll give him a little more credit if he used that tiny dos-box blue editor that comes with QB64 to code the entire game tho :)
And had a screen at an EGA text resolution of 80 x 25 chars with each character being in a box of 9x14 pixels. (With pixels means 'dots on the screen'.)
And saved the result on 5 1⁄4-inch or 3 1⁄2-inch discs.
And fiddled about with FOSSIL drivers and kermit or Xmodem or Ymodem and ProcommPlus to upload the game to a BBS. At 9600 baud.
(I'm not taking anything away from the game! )
Lucky bastard.
Not to downplay his achievement - I'm sure making the game was a lot of work either way ... but implementing it in Basic doesn't seem especially praiseworthy.
Also, yeah, I use the big ugly eye-burning white-on-blue screen. You can see a photo of the development box here: https://twitter.com/manfightdragon/status/319786194395357185
Apparently QB64 can directly access C header files as well as Windows DLLs [1], although I don't think the author used any external modules. The source is described as being a solid monolithic block of 12k lines worth of BASIC, which in and of itself is fairly throwback-worthy.
[1] http://en.wikipedia.org/wiki/QB64
edit : checked an old QBASIC manual to confirm whether or not multidimensional arrays (2+) were supported
DIM cube(3,5,4)I happen to have an old QBASIC book (pub 1993) next to me, and was skimming through it shortly before coming across this article.
Random file I/O :
OPEN filename$ FOR RANDOM AS [#]filenumber LEN=recordlength
The book then goes on to provide helpful ways to guesstimate at the record length of a file on disk.Drawing 2-D "staircases" diagonally in both directions across the screen :
PSET (0,0)
FOR p = 1 TO 25
LINE -STEP(25,0)
LINE -STEP(0,15)
NEXT p
PSET (639, 0)
FOR p = 1 TO 25
LINE -STEP(-25,0)
LINE -STEP(0,15)
NEXT p
END
Nostalgia, indeed :Phttp://www.amazon.com/Absolute-Beginners-Guide-Qbasic-Perry/...
Amazon doesn't have the cover art, but it was very similar to this one:
http://ecx.images-amazon.com/images/I/51VswbyvRHL._SL500_SS5...
That said, qbasic was maybe not a best first language - I became a much better programmer when I learned C++ years later. Still, I really really appreciate that as a young child I had access to a fun game with the source code revealed. It changed my life.
Years later a friend of mine and I added modem support to Gorillas so we could play each other from our houses. Of course Scorched Earth would have been better, but we didn't have the source to that, nor the programming ability to add it at the time.
I was always amazed at the guys on CompuServe/AOL (and later GeoCities) who were writing RPG's in QBasic. I guess I was mostly impressed by the graphics they made, but they kind of proved to me you could write more than hangman or Nibbles in BASIC.
You can see a video from there with some actual code: http://www.youtube.com/watch?v=y2nBge7wq6c
It actually doesn't seem that bad of an environment, which is a reminder that we haven't gotten that far with programming since the QBasic days...
http://www.reddit.com/r/IndieGaming/comments/1bqegf/i_put_my...
Some worked, some didn't and I think I wasn't really old enough at the time to understand why they wouldn't, but I have a lot of fond memories and pride at getting these to work.
[1] http://www.amazon.com/BASIC-Computer-Games-Microcomputer-Edi...
In fact, when you look at the specs for QBASIC64 then it's a little less impressive than first made out. It also makes me wander why he didn't just learn VB anyway (as the libraries in QBASIC64 would have required additional learning anyway). Even VB classic would have made more sense.
Anyhow, this at least reminds the language elitists that a language is only as powerful as the developer who's wielding it.
Doing anything useful in QBasic was such a major pain; from what I recall, to use the mouse(which wasn't supported), you needed to write an assembly procedure byte by byte, do a CALL ABSOLUTE to jump into that procedure and re-read the cursor position from memory.
Also, VB is pretty GUI and event-centric. QBasic is a pretty good local maximum of being quite expressive while still being a strictly procedural language.
VB.NET does compile to other platforms via the Mono framework. In fact Mono is actually available for more platforms than QB64 is.
Classic VB is Windows only AFAIK though I've had a 100% success rate with VB under WINE. But suggesting VB6 was pretty dumb on my part anyway; aside scripting variants (eg VBA), it's a pretty much a dead language.
> Also, VB is pretty GUI and event-centric. QBasic is a pretty good local maximum of being quite expressive while still being a strictly procedural language.
VB.NET supports procedural CLI apps. But if you could equally write an OpenGL / DirectX game procedurally if you wanted (events are there to be used, but you don't have to create event handlers). However I don't really see the point in wanting to avoid using events; he's using a mouse, so it makes sense to have a mouse click event. The code would be a lot cleaner and the interface more responsive than having a looped procedure checking for mouse button states (believe me, I've had to do both - and the one thing I don't miss from writing DOS GUIs in Pascal was having to create a psudo-event wrapper to handle input devices).
[and probably loads of bugs]
Wish I still had a copy of that stuff that I could put on Github!
[1] http://boxerapp.com/ [2] http://www.dosgamesarchive.com/
>Black Annex requires at least a 2.6GHz processor due to the scope of the project and the unoptimized multi-dimensional arrays.
Also, I seem to recall reading (or seeing a video interview) where Bill Gates said QBASIC was his last ever coding job.
Welcome to the world journalism. It's full of people who either aren't technical enough to work in the field they're reporting on, don't care that much about such industries (they're reporting on it for the love of journalism/writing), or have to dumb stuff down so much to appeal to a wider audience that the article loses accuracy / objectivity.
This looks like it might take the title though.
I learned programming by turning Gorrila's in to a game with buildings that moved every turn, and changing the graphics.
Putting a screenshot of the game above a video of Gorillas, and then claiming they're both written in the same language, is misleading.
I loved QBasic.