545 points · by vs2 · 12y ago · 138 comments
ID and Apogee stole many hours of my childhood
http://en.wikipedia.org/wiki/Crystal_Caves
"On October 24, 2005, 3D Realms (formerly Apogee) released a maintenance patch to fix a bug in the game which set the player's computer's clock backwards 100 years after playing on Windows XP." lol.
By the way, Apogee has released a lot of their old titles for free. You can find them at 3drealms.com, in the Downloads section.
"Then, the first breakthrough. John Carmack devised a smooth, scrolling routine similar to that used for the background of Nintendo games but never before possible on the PC." [1]
The technique is called, adaptive tile refresh. [2]
This is roughly how most scrolling on the C64 happens (though it works by reducing the visible display by 8 hires pixels on either side of the screen, and scrolling at most 8 hires pixels before you need to shift "tiles" / characters). I'm not sure it was new with the C64 either. While most C64 games used sprites for the movable objects, there are absolutely exceptions that tracked damage.
On the Amiga, however, the method described is basically pretty much how you're expected to do scrolling from the outset(it has much more extensive support for it than EGA did). AmigaOS even came with built in support for managing damage lists for such objects ("bobs" for "blittable objects") and double buffering from 1985, though most games would have used their own code for it.
For these systems redrawing the whole screen was simply never seen as viable, or worthwhile. The Amiga hardware support for doing this kind of scrolling + the use of the blitter for moving game objects and replacing damaged sections made this method the obvious choice.
Even double-buffering was sometimes seen as too wasteful, with a solution being to sort damage lists and tie updates to the raster interrupt to update the screen before the raster beam reached it.
Ah well, they won, and Atari / Amiga / Commodore lost; better doesn't mean you win.
This being said, Atari and Commodore had several YEARS of opportunities to launch new machines and "kill" the PC (or at least become something that would last longer than a generation), and did not do anything. The Amiga 1200 and Falcon were both very late to the party and underpowered when PCs started to be cheap enough and way more powerful than these machines.
PC gaming also benefited from the fantastic works of Origin (before they were acquired by EA) with a bunch of exclusives (Wing Commander 1 was a revolution in 1991, and convinced many people the PC could also be a gaming platform).
I was on the Amiga during that period and I could see the tide coming, while Commodore and Atari stood and just watched. What a pity.
Double buffering was rare, due to a distinct lack of memory, and games would have had to use dirty lists as a 2MHz CPU just isn't fast enough to redraw the entire screen each time.
I'm not sure if you'd call Sopwith a sidescroller but it managed to scroll sideways on CGA.
This is often cited as the first example of Carmack's genius when it came to computer graphics, and he certainly deserves credit for being one of the first/astest third-party developers to realise the potential of the EGA card. But if I was one of the engineers that had designed EGA, I would be rather miffed to see how much Carmack is praised for this when it seems relatively clear that he was just using the hardware as it was intended to be used.
God, so wish I'd known this at the time.
https://github.com/keendreams/keen/blob/f477cef79f0893420f47...
> baseRndArray dw 1,1,2,3,5,8,13,21,54,75,129,204
Hah he got the Fibonacci series wrong (it's supposed to be ...13, 21, 34, 55, 89, 144, unless he did this on purpose).
In this case, 204/129 ~= 1.581, which is pretty close to the golden ratio 1.618. In fact, let's just list all the ratios:
1/1 = 1
2/1 = 2
3/2 = 1.5
5/3 = 1.667
8/5 = 1.6
13/8 = 1.625
21/13 = 1.615
54/21 = 2.571
75/54 = 1.389
129/75 = 1.72
204/129 = 1.581
And for the regular series: 1/1 = 1
2/1 = 2
3/2 = 1.5
5/3 = 1.667
8/5 = 1.6
13/8 = 1.625
21/13 = 1.615
34/21 = 1.619
55/34 = 1.618
89/55 = 1.618
144/89 = 1.618
Here's a plot of the ratios (regular series in blue, Carmack's in red...ish): http://i.imgur.com/WA7ipZA.pngIn this case, we end up with some lovely oscillations in the second half of Carmack's series. But does it look good for graphics, or behave well for gameplay purposes? No idea! Someone should find out what it's used for. It's an interesting little bit of historical excavation.
EDIT: I think that sequence isn't even used anywhere (I couldn't find any reference to it).
I just thought it was interesting, and another example of the same type of style which led to rocket jumping or bunnyhopping, which were also accidents.
Norton Commander, Jazzy the Jack Rabbit, TheDraw, the Gravis Gamepad...
crap. Also playing Jet [3] on the same joystick.
[1] http://en.wikipedia.org/wiki/Test_Drive_(video_game)
[2] http://en.wikipedia.org/wiki/Stunts_(video_game)
[3] http://en.wikipedia.org/wiki/Jet_(video_game)Also, you forgot Scorched Earth [1].
That was one of the first games I remember playing with friends until all hours of the night.
Actually took a road trip with my friend and his fifty pound laptop, and played it along the way.
This game and Heroes of Might and Magic are the games I like to play with other people in the same room. So much fun!
Wikipedia says Don Mattrick, CEO of Zynga, was original designer of those two games? Consider me surprised.
And yeah, the amount of time I spent editing tracks was unhealthy.
I also remember having a religious devotion to getting a certain physics bug to happen. I don't remember how we did it, but you'd end up launching the car and it would fall up into eternity.
https://www.midnight-commander.org/ Midnight Commander: A NC clone for Linux/Unix/etc.
http://www.emacswiki.org/emacs-en/Sunrise_Commander Sunrise commander: NC clone for GNU Emacs.
I have played PC strategy games ported to the iPad along with arcade classics from Atari, just missing some early games like Keen, Empire, and the like.
The later games, although much more detailed, with a larger character, had a weird floaty feeling to the controls that I never quite enjoyed playing as much.
That said, I loved all the games and it was an amazing sense of discovery. I remember the moment the shareware model finally took hold of me and I realized that I wanted the next episodes enough to pay for them.
However, there is something that just feels right in 1-3.
- Apogee Catalog from this time period : http://www.scribd.com/doc/134559074/Apogee-Catalog
and
- The Book of id (from the Id Anthology) : http://www.scribd.com/doc/137817173/Book-of-id
Bask in the nostalgia.
Crystal Caves - "Stunning cinematic sequences"
Spear of Destiny - "Breathtaking soundtrack ... for AdLib, Sound Blaster or compatible"
Commander Keen 6 - "Over 2.5 megabytes of graphics created especially for this episode"
> This release was made possible by a crowdfunding effort.
https://www.indiegogo.com/projects/let-s-get-keen-dreams-re-...
Looks like they got most of the way, then someone must've paid the rest outside of indiegogo.
What other classic games could be saved this way?
http://www.thefloppydisk.com/articles/commander_keen_the_gam...
http://www.3drealms.com/keenhistory/keenhistory4.html
Keens 2, 3, 5, & the full version of 6 are commercial software, and it is not legal to download them from anywhere.
Actually, I think I'm going to go buy it now... it's been too long since I've played Keen.
@echo off
cd C:\Program Files (x86)\Steam\SteamApps\common\Commander Keen\base4
dosbox keen4e.exe -conf keen4.conf -exit
exit
The configuration file in question was modified, and these are the changes from the default that you might find useful, in the following sections: [sdl]
output=ddraw
And this one: [render]
scaler=normal3xWow, I can't imagine a modern game giving this warning and still atempting gameplay. Guess a lot of people with low RAM machines had to take their chances back then.
https://github.com/keendreams/keen/blob/master/kd_main.c#L39...
For the confused. The piracy.h and those two lines were removed.
Since VGA text mode used one byte to select the character (from a font of 256 entries), and one byte to describe the character's attributes (16 colors aka 4 bits, bold, strikeout, reverse), the resulting buffer for an 80x25 display was 80x25x2 bytes, aka. 4000
When that's done, it waits for the user to acknowledge the anti-piracy message by pressing enter.
This is basically the early 90s equivalent of the "you wouldn't download a car" advert
Edit: Corrected "not"
You can get yourself into trouble trying to use a newer version of the Borland compilers. 3.1 was the last to support native 16-bit code, or something like that, I believe.
However, I'd take a crack at making the Turbo C in the Embarcadero Museum work: http://edn.embarcadero.com/article/20841
I honestly don't remember what the difference between "Borland C" and "Turbo C" is (the former includes more) so I don't know if that will work. But the museum download is free...
The Linux port
Unfortunately only Keen Dreams, but at least! I was waiting for this quite some time. I'm not sure if the other Keen versions will eventually follow.
I think the project Commander Genius (http://clonekeenplus.sourceforge.net/) should also be mentioned here. (Disclaimer: I was a developer of CG.) Keen 1-6 should be fully playable. Keen Dreams not yet, so this Open Source release might be helpful.
https://www.google.com/search?site=&tbm=isch&source=hp&biw=1...
https://github.com/keendreams/keen/blob/master/kd_keen.c#L15...
https://github.com/keendreams/keen/blob/f477cef79f0893420f47...
However, video, audio, input handling, and loading resources would be a lot simpler.
E.g. take a look at the input manager:
https://github.com/keendreams/keen/blob/master/id_in.c
You also wouldn't have anything like this:
https://github.com/keendreams/keen/blob/master/id_ca.c
You'd put some resources in a list and that's all the caching you'd do.
You should be able to do a game like this in less than 10k lines of Dart/TS/JS (2D Canvas, Web Audio, Gamepad API). Without using any external libraries or engines, that is. It also would be a lot easier to write, because all of the low level parts are gone.
Nowadays you see, it's wasteful to write an engine from scratch for a game like this. It was needed then, but it's a solved problem now. If you wrote 33k for a commander keen clone I'd wonder what you were doing.
1. a prewritten engine, and
2. some hypothetical language
each where you write commander keen with 3k loc. Where the hypothetical language has all the same stuff as the engine, it's just locked away behind a level of abstraction.
if you could write commander keen in 3k of javascript (with the aid of all the stuff that's in a browser) How is that different from writing 3k of C with nothing but this entire commander keen engine already written and ready to go?
What's are we calling an "advance", exactly?
https://github.com/keendreams/keen/blob/master/static/makeob...
Don't let the Vorticons win!!
I'll never forget the day I discovered the Vorticon alphabet in episode 3. Mind blown.
IIRC the only one I missed was the character for 'Z', which I simply hadn't encountered on any sign so far.
In those times, I made me a loadable font for my Star-LC-10 9-pin dot matrix printer, and after a while could effortlessly read text printed in the SGA ;-)
I could understand wanting to port it to platform x, but the language choice isn't the biggest barrier to modification/extension here.
Then you can worry about switching languages. Which is really pointless, but whatever floats your boat.
And it was a great game!
Oh, don't worry. Hardware acceleration is coming, soon all the web apps will run just fine on your i7. But you might have to buy a new GPU and more RAM, because in five years, anyone would be crazy to have less than 32GB. Gaming might be a long way off still... ;-)
And then you'll have to wait for your GPU drivers to mature if you're not on the mainstream OS.