News for hackers. Stuff that matters.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by guidedlight on Tuesday October 10, 2017 @04:28PM (#15445066)
I just found this video of it. Incredibly impressive if that is QBasic. https://www.youtube.com/watch?v=ZqlveWIhCFI#
Re:Black Annex: A QBasic Game for the 21st Century (2013) by dom0 on Tuesday October 10, 2017 @05:44PM (#15445573)
Back in the day there were SVGA libraries (like aklib) that allowed high-resolution (like 1280x1024 modes) graphics; but even on contemporary GHz desktop processors it wasn't fast. Also sound systems using background daemons that relayed stuff to DirectSound (or FMOD, not entirely sure after all these years).

This seems to be written in QB64 using SDL with OpenGL surfaces.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by guidedlight on Tuesday October 10, 2017 @09:05PM (#15446565)
I think you are right.

QBasic was only capable of 320x200 with 256 colors.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by joneholland on Wednesday October 11, 2017 @12:16AM (#15447239)
You could link against native libraries. There were a handful of graphics libraries written in assembly that we used to do fast blitting and resolutions higher than 320x200.

Back in those days, drawing a pixel was just writing to the vga memory buffer, so it was pretty easy.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by slededit on Tuesday October 10, 2017 @11:33PM (#15447083)
You could peek and poke as needed. I used to do BIOS interrupts that way.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by mega-tux on Wednesday October 11, 2017 @09:12AM (#15449427)
there were several libs, mostly shareware, that extended the list of supported resolutions with VESA & VGA-modeX ones. I used it a lot of times. Nice days.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by ocdtrekkie on Tuesday October 10, 2017 @03:43PM (#15444776)
"The game, at the moment, requires about 2.6GHz on a single core to run good. It's just about unacceptable for a game that looks like it was made in the 90s."

Wow.

I am really curious all the things he had to write himself to make this work. I presume he's basically written his own isometric game engine and map editor from scratch in QB, which is... impressive.

I kinda wish he'd ship the code with the game... I want to see it.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by googamooga on Tuesday October 10, 2017 @04:39PM (#15445135)
Here is the code:

http://www.qb64.net/forum/index.php?topic=12348.0

Though it won’t compile with ordinary QB compiler.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by jacobparker on Tuesday October 10, 2017 @08:16PM (#15446313)

  $ curl -s https://gist.githubusercontent.com/anonymous/8fdec5275b2c3e81e1e1/raw/blannex | wc -l
  23708
Impressive. I wonder if it's edited as a single file.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by copx on Wednesday October 11, 2017 @12:03AM (#15447193)
In QBASIC/QuickBASIC the IDE is not file-based. By default it only shows the content of the current sub routine, as opposed to the content of a file.

If you want to look at / edit a different subroutine you open the sub routine selection dialog and select the one you want which then becomes the currently displayed one.

In the same way, if you want to add a new subroutine to the program you open the subroutine creation dialog, give it a name and then the IDE automatically makes the newly created subroutine the currently displayed one. I.e. you are only ever looking at one subroutine at a time.

Screenshot of the subroutine selection dialog: http://synapticnulship.com/blog/wp-content/uploads/2011/01/q...

Sounds limiting to programmers used to modern IDEs where you usually look at multiple functions at once, but I remember it fondly. There is something to be said for completely focusing on one sub routine at a time and for the IDE presenting your program that way, while everything is actually stored in one big file.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by jacobparker on Friday October 20, 2017 @08:33AM (#15515231)
Wow, I don't remember that part at all (I was really young when I used it.) Thanks.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by klangaroo on Wednesday October 11, 2017 @12:27AM (#15447279)
hahah I'm the guy making this game. Funny to see it show up on Hacker News again (last time was in 2013).

Here's the latest gameplay video: https://www.youtube.com/watch?v=gkYcmipETak

And you can wishlist it on Steam at the moment: http://store.steampowered.com/app/248590/Black_Annex/

Re:Black Annex: A QBasic Game for the 21st Century (2013) by klangaroo on Wednesday October 11, 2017 @12:31AM (#15447296)
I mostly post about my work on Twitter if you actually wanna keep up with my stuff :) https://twitter.com/manfightdragon
Re:Black Annex: A QBasic Game for the 21st Century (2013) by orthecreedence on Wednesday October 11, 2017 @01:22AM (#15447475)
Holy shit, that's really impressive for QBasic. That was my first language, and I remember drawing/moving basic shapes around the screen. My magnum opus was a ray-tracing demo.

Well done! I'll add to my Steam list =]

Re:Black Annex: A QBasic Game for the 21st Century (2013) by pan69 on Tuesday October 10, 2017 @04:17PM (#15445007)
How is this game distributed? If I remember correctly, QBasic was bundled with MS-DOS (from v6 onwards I believe) and wasn't able to produce EXE's. QuickBasic was a separate commercial version that was the able to produce .EXE's.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by bananaboy on Tuesday October 10, 2017 @04:59PM (#15445268)
This is written using QB64[0] which is a modern environment compatible with QBasic. It emits C++ which is then compiled with GCC.

[0] http://www.qb64.net/

Re:Black Annex: A QBasic Game for the 21st Century (2013) by notpeter on Tuesday October 10, 2017 @08:41PM (#15446450)
The original QuickBasic/QBasic could definitely generate standalone compiled EXEs using the Basic Compiler (BC.EXE). IIRC it wasn't included until QBasic 4.5 and was expanded further in QB7 (aka Basic Professional Development System).
Re:Black Annex: A QBasic Game for the 21st Century (2013) by copx on Tuesday October 10, 2017 @11:42PM (#15447118)
No, QBASIC could not.

QBASIC was a limited, interpreter-only version of QuickBASIC which you got for free with MS-DOS.

QuickBASIC was a separate commercial product from Microsoft which did include an AOT native code compiler.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by pan69 on Wednesday October 11, 2017 @01:48AM (#15447559)
I thought so as well, so I decided to Google it:

    QBasic was intended as a replacement for GW-BASIC. It was based on the earlier QuickBASIC 4.5 compiler but without QuickBASIC's compiler and linker elements.
So, from this, QBasic was not able to generate .EXE's.

https://en.wikipedia.org/wiki/QBasic

Re:Black Annex: A QBasic Game for the 21st Century (2013) by jackvalentine on Tuesday October 10, 2017 @08:53PM (#15446513)
12 year old me facepalms at not knowing that.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by Narishma on Wednesday October 11, 2017 @06:54AM (#15448702)
No need. That person was wrong. QBasic didn't include a compiler.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by cabaalis on Tuesday October 10, 2017 @04:46PM (#15445188)
If you used QBasic to learn to program as a kid (which I did) then you might be interested in AppGameKit[1]. I would recommend it, however I must mention that I've become used to OOP and it is difficult to go back to a language that doesn't have it. So I haven't dont anything serious with AGK yet. Though there are many who have.

[1] https://www.appgamekit.com/

Re:Black Annex: A QBasic Game for the 21st Century (2013) by constantlm on Tuesday October 10, 2017 @04:28PM (#15445064)
QBasic was the first language I dabbled in as a kid. This is absolutely insane!
Re:Black Annex: A QBasic Game for the 21st Century (2013) by jmcgough on Tuesday October 10, 2017 @04:45PM (#15445183)
Same - I remember being in elementary school, playing nibbles or gorillas and then poking around in the source, trying to figure out what it was doing.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by wybiral on Tuesday October 10, 2017 @08:05PM (#15446269)
Nibbles or gorillas brings back memories...
Re:Black Annex: A QBasic Game for the 21st Century (2013) by wybiral on Tuesday October 10, 2017 @04:32PM (#15445085)
Same here. I remember drawing sprites with the DATA statement in "SCREEN 13" mode and being able to move those around but never anything this crazy.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by khedoros1 on Tuesday October 10, 2017 @06:50PM (#15445958)
Ditto. I got as far as doing some basic 3D graphics in it (rotating spheres and such), an Asteroids clone, and arpeggiating chords for "harmony" from the PC speaker, but nothing quite like this.

Then again, this was written in QB64, which can do things that would've been wildly impractical in QBasic itself.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by megaman22 on Tuesday October 10, 2017 @09:34PM (#15446686)
A friend and I spent the better part of our programming course trying to build a Slime Volleyball clone in QBasic, I remember. Good times.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by zem on Tuesday October 10, 2017 @04:53PM (#15445237)
i taught myself c by prototyping programs in qbasic and then converting them to c. nice language, and for their time, the integrated help files were some of the best i've seen.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by wybiral on Tuesday October 10, 2017 @08:06PM (#15446274)
Bingo. My computer as a kid wasn't even connected to the internet so those help files are the only way I would have learned. That, and breaking the few programs that were included with it.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by jlebrech on Wednesday October 11, 2017 @09:14AM (#15449439)
seems like a great way to teach programming to kids, put on a raspberry pi with a few games and programs already make for it.

maybe a modern way to do somethign like this would be pico-8 https://www.lexaloffle.com/pico-8.php

Re:Black Annex: A QBasic Game for the 21st Century (2013) by lynxbat on Tuesday October 10, 2017 @09:05PM (#15446566)
I discovered recently one of my new neighbors just retired from MSFT and was one of the original members of the QBasic team. Considering how much time I spent as a kid learning on it, I was kind of star struck.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by Vanit on Tuesday October 10, 2017 @05:23PM (#15445426)
iirc it even has Steam integration that he had to implement from scratch. :)
Re:Black Annex: A QBasic Game for the 21st Century (2013) by scrumper on Tuesday October 10, 2017 @04:21PM (#15445030)
The screenshot is telling: "Framerate: 4"

Pretty mighty achievement though: no engine, no frameworks, no graphics SDK, a quirky language...

Re:Black Annex: A QBasic Game for the 21st Century (2013) by khedoros1 on Tuesday October 10, 2017 @06:43PM (#15445928)
- Most 2D games I've played use their own engine.

- Why would a framework be necessary?

- QB64 provides a graphics API, a wrapper around SDL and OpenGL.

- QBasic isn't that quirky, and QB64 looks like it pretty massively expanded the language. QBasic itself allowed for struct types, a limited dynamic memory allocation, and the standard flow control structures.

The author apparently modified QB64's use of SDL/OpenGL to handle some scaling differently.

It's impressive as a solo game project and interesting for the nostalgic connections. I respect anyone who can get through a project like this on their own, but it just doesn't seem that unusual.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by scrumper on Wednesday October 11, 2017 @10:22AM (#15449970)
I don't play as much as I used to, but these days most 2D things I come across are based on Unity.

Was not aware of the extensions made in QB64 over QBasic (though I knew the author had extended QB64) - thanks for pointing that out.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by khedoros1 on Wednesday October 11, 2017 @02:18PM (#15451928)
It seems like Unity really blew up around 2013. The first references that I can find to this game are from April 2013, so he'd likely been working on the engine for a long while before that.

And most of what I've played reach back before then too ;-) My point was that Unity's probably been used for "just" a few hundred games, mostly in the past 4 years.

Re:Black Annex: A QBasic Game for the 21st Century (2013) by scrumper on Wednesday October 11, 2017 @05:29PM (#15453656)
And also I don't think he'd have chosen Unity either; he talks a lot in the post (or the forum, I forget which) about being very comfortable with QBasic and choosing it for his familiarity with the language.
Re:Black Annex: A QBasic Game for the 21st Century (2013) by zem on Wednesday October 11, 2017 @02:04PM (#15451782)
also relevant is james hague's "slumming with basic programmers", one of my favourite programming essays ever.

http://prog21.dadgum.com/21.html