Mac 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.

My friend is a pusher

Tom Bridge is a crack pusher:

screenshot of World of Warcraft
“WoW Interface” by Tom Bridge

Mac Gaming: One Can But Dream

Frankly, gaming on the Mac has been a punchline for a number of years now — it’s hard to imagine it was ever any different. Oh, but it was.

Things have gotten better again of late, particularly as Mac OS X has arrived and matured, but certainly it will never be as good as it used to be. Truth be told, I’d grab a Playstation 2 before a Mac for most gaming purposes. And even if the gross qualitative difference between Mac and Windows gaming catalogues might be small, the sheer quantitative difference is just crazy. Sometimes, you just can’t play a game if, like me, you refuse to buy a Windows-based computer.

One intriguing thing that’s happened in the last few years is the advent of open-source games that run on multiple platforms right out of the gate, thanks to using open standards and cross-platform technologies. It is truly a surreal experience to check out some of the great games under development, click on their Downloads link, and find a Mac version.

And the criticism that open-source games are often “rip-offs” (more kindly, “tributes”) of existing games has its advantages: some of those games were never on a Mac. :)

The next few years hold the potential for a brave new world of Mac gaming, with the move to the Intel chip environment. Not to say this guarantees a sudden Deluge o’ Fun (TM), but at least there will be one fewer commercial game cop-out for not producing a Mac version. If nothing else, a “native” Virtual PC or WINE on an Intel Mac might be sufficient for games that aren’t too graphically crazy.

One can but dream.

Halo

Did something this week that I had figured to be doing about five years ago: played Halo on a Mac. It was the demo, which was just now released. Unless a boxed copy of the full Mac Halo suddenly materializes next to me in the next few seconds, the demo is as much as I’ll be playing. Let’s see…

Nope, no sudden materializations.

Syndicate content