gaming

Compiling Word War vi on Mac OS X

screenshot of word war vi running via X11 on Mac OS X

As mentioned in the previous post, Word War vi is a retro arcade game along the lines of Defender or Stargate, allowing you to play out the Emacs vs Vim wars in all their nostalgic glory. It’ll run on Mac OS X, but it takes a bit of preparation. Here’s what I did to get it running on Leopard (10.5.5); your mileage may vary on older OS versions. Also, I don’t have a joystick to test, so I am unsure if that will work or not.

  1. Download and unarchive wordwarvi
  2. First up, make sure you have XTools installed, which you’ll find on your Leopard install DVD. You’ll also need the X11.app found in your Applications/Utilities folder, but that is likely already there.
  3. Next, install MacPorts. This will make it very simple to install the next two packages.
  4. Once MacPorts is installed, go to the Terminal and type sudo port install libvorbis (you’ll need to enter your password).
  5. Repeat the process with sudo port install portaudio
  6. Lastly, we need to specify where a particular file is found on your system. Inside the wordwarvi folder, there are two text files to edit: ogg_to_pcm.c and wordwarvi.c

In both files, near the top, you’ll find a line that reads:

#include <malloc.h>

Change it to read:

#include <malloc/malloc.h>

And that’s all the preparatory steps. In the wordwarvi folder via the Terminal, type make. It will compile shortly, and then (assuming everything went well), you’ll only have to enter ./wordwarvi to play it via X11.app.

You might want to turn the volume down on your Mac to start with — the music was pretty loud on my system.

Thanks to Stephen Cameron for the great game!

Useful Unix, Vim, and Emacs tricks on Slashdot

cartoon of vi man beating up feeble emacs user

A couple of days ago, Slashdot posted a story asking about “(Useful) Stupid Unix Tricks?”:

So the other day I messaged another admin from the console using the regular old ‘write’ command (as I’ve been doing for over 10 years). To my surprise he didn’t know how to respond back to me (he had to call me on the phone) and had never even known you could do that. That got me thinking that there’s probably lots of things like that, and likely things I’ve never heard of. What sorts of things do you take for granted as a natural part of Unix that other people are surprised at?

It’s perhaps unsurprising that there have been over 2200 comments exploring the arcana of the Unix and Unixy command line. A lot of awesome lore to check out.

Yesterday came the next story, “(Useful) Stupid Vim Tricks?”:

I thoroughly enjoyed the recent post about Unix tricks, so I ask Slashdot vim users, what’s out there? :Sex, :b#, marks, ctags. Any tricks worth sharing?

570+ comments later, there’s a lot to check out there as well.

Today’s post was inevitable, “(Stupid) Useful Emacs Tricks?”:

Since the Vi version of this question was both interesting and popular, let’s hear from the other end of the spectrum. What are your favorite tricks, macros, extensions, and techniques for any of the various Emacs? Myself, I like ‘M-x dunnet’ ;-)

200 comments and counting.

One of the most enjoyable parts of the Vim story, apart from the various spiffy command tips and tricks, were links to other sites. Here are a couple, along with a few related others I’ve linked to before.

Bruce Sterling knows where his towel is

And it’s The Future!

So my PC is like a towel. Cheap and old and the dullest thing in the world, I have always had one. “2008, computer pioneers, they still think computers are exciting!” They don’t get that computers in 2043 are like brick, forks, toothbrushes, towels. I researched that subject, and yeah for an old fashioned audience, a mid 21st computer is cool. So here it is [dishtowel] General Electric personal mediators, very stable, five years old. No full functionality in 2008 because we don’t have the cloud here yet. It tapped into something called Window Vista when it got here and gave up, gone all limp, nothing left on here but this frozen screensaver pattern. So I will have to walk you through it instead.

From Bruce Sterling’s keynote at the Austin Game Developer’s Conference. Full transcript. Via /. Bruce Sterling On Gaming in 2043

One of those days

One of those days just like any other day.

Happy Birthday, James Ellroy.

Rest in Peace, Gary Gygax.

Thanks for the memories, Brett Favre.

Syndicate content