This blog has moved. Visit Groundswell Games for the latest. Remember to update your bookmarks and RSS feeds.

Monday, March 17, 2008

Open-ended dialog and moody NPCs

I spent quite a few hours this weekend playing Oblivion. It's reasonably entertaining so far; the size of the world and the number of possibilities for gameplay really are impressive.

The thing that continues to amaze me, though, is the amount of dialog in the game. Seriously, they must have had dozens of people writing dialog what must be thousands of virtual inhabitants. Characters' dialog changes based on what's going on around them and their disposition toward you. It's all so well conceived. Unfortunately, it doesn't work.

Here's a little exchange illustrating how I often feel while shooting the breeze with denizens of Cyrodiil (paraphrased for your entertainment):


Me: Hello!
Sour-looking lizard man: What do you want?
Me: I'm new in town. What's with that paranoid elf guy running around town all the time?
Sour-looking lizard man: I don't know you well enough to talk about that.
Me: [Here I tell jokes and boast about my prowess as an adventurer to get the lizard man to like me. Then...] So, about that paranoid elf guy?
Sour-looking lizard man: Oh him. I think he's following me. He looks at me strangely sometimes, and often carries on about a conspiracy. I try not to let it bother me, but he really creeps me out.
Me: Tell me about the town. Did I say I was new here?
Sour-looking lizard man: The town is ok, I guess. Hey, can you help me gather a rare root to throw into a magic potion?
Me: Uh, sure.
Sour-looking lizard man: Great! I think there are some roots near the trees outside town.
Me: Right. Roots near trees -- got it. I'll let you know when I find some. Good-bye.
Sour-looking lizard man: Leave me alone.


Open-ended dialog systems are a great idea. In theory they create a real sense of place and give the impression that you're experiencing a living, breathing world. The trouble is they involve too much filler and not enough coherent conversation. Real conversation is much too complex for games at the moment, so relationships between the player and non-player characters (NPCs) -- or even between NPCs -- get distilled into grossly simplified numerical values like "disposition" or "reputation."

For a class once I created a dynamic dialog system designed to address some of these issues by scoring relationships between characters using several attributes instead of just one (for example, trust, loyalty, friendliness, anxiety). The idea what that everything you said to or did for an NPC would affect those attributes. Over time you would actually build a "relationship" by spending time with NPCs, and the quality of that relationship would have a dramatic affect on what kind of information they would share.

Aside from the obvious practical issue of writing all that dialog, my grand system and others like it face a pretty serious challenge -- there's too much dialog.

The beauty of closed systems (where dialog is delivered through cut-scenes or one-shot statements) is that they can be more carefully crafted. Sure, they may sacrifice "realism," but let's face it, 90% of the words we utter are unbelievably mundane. Anyone reading this knows it's certainly true about me. A truly open-ended, flexible dialog system would be prohibitively expensive to create and populate with content.

I haven't given up on Oblivions NPCs yet. Right now I find their moodiness kind of endearing, but who knows how long that will last. I'm fickle like that.

Wednesday, March 12, 2008

A useful user interface, part 2: The GUI

I've been running the play test of SPUDZOOKA for several days now, and I've learned some really useful things. Special thanks to everybody who has given the game a run for its money. It's going to end up a lot better because of it. (If you haven't tried it out yet, you can play here.)

The feedback has been positive overall, but being my own harshest critic, I feel like the game still leaves quite a lot to be desired. I think the concept is a decent one -- a little light-hearted destruction goes a long way -- but there are some tweaks to the user interface that will make the player experience better. Thus begins the second part of my brief series on user interfaces.

The graphical user interface
There are two main elements to SPUDZOOKA's GUI, and probably most games with a play-level-then-upgrade structure (that's a technical term -- you like it?): the HUD (heads up display) and the upgrade interface.

I wanted SPUDZOOKA's HUD (the graphical interface elements that appear on the screen while you're playing a level) to be as simple as possible. In the top left corner of the screen, there's a score display and a timer. These elements simply let you know how you're doing. The timer is most important while playing, so I think it needs to be much more prominent, maybe even moved to the top-center and given a more graphical treatment.

In the lower left there are two elements, a squarish graphic with a number in it, and, next to that, a smaller squarish graphic with some potatoes in it. These are both really important, but I don't think they work very well.

  • The button-looking graphic with the number is there to denote which cannon you are currently using. You only start the game with one cannon, and there's no indication what this number means until you edit your cannon for the first time. Even then, you need to build and save a second cannon before the number means anything. Right now there aren't enough levels for that to be necessary. I'm thinking about cutting out the ability to build multiple cannons -- we'll see.
  • The small graphic showing the potatoes is there to denote your current ammunition. Again, you won't know what it means until you edit your cannon for the first time (I think that's ok), but a lot of people who played couldn't figure out how to change ammo. The trick is that you can't always change ammo -- it depends on which kind of barrel is attached to your cannon. I think the meaning of the ammo icons didn't translate well from the editor, and people didn't remember whether they had access to multiple ammo types or not. Probably I need to add an icon for each type of available ammo in the HUD and give some indication of the currently selected ammo.
That's it for the HUD. I wanted to include enough elements to keep players informed during, levels but I think I need to go a little further to explain things.

Now onto the cannon upgrade interface. The idea here is that players can mix and match cannon components to create up to three cannons that not only look cool, but have different strengths and weaknesses.

To make this mix-and-match feature work, I needed several elements:
  • A way to select components of various types,
  • A way to buy components that can later be mixed or matched,
  • A place to display the current cannon configuration and its stats,
  • Some indication of which cannon (of the three available slots) was currently being edited,
  • A way to save a new configuration or return to the previously saved cannon in that slot.
The three component selection areas work pretty well and are fairly intuitive. The result of cycling between components is immediately apparent. The data display for the current configuration seems to make sense as well (except maybe the list of available ammo).

Things start to get tricky, though, when players try to figure out the function of the buy and save buttons. The problem is that upgrading your cannon is a two-step process. First you have to buy the new component, at which point it goes into storage, and then you have to save that component to your cannon, at which point it moves from "in storage" to "in use." The previously saved component on that cannon moves back into storage and becomes available for use at a later time.

It's the inventory concept that makes things too complicated. There are (small) text elements displaying the number of each component in storage and in use, and it's clear that buying a component adds one to storage. Nevertheless, the intuitive behavior, I think, is for the "buy" button to save that new component immediately to the cannon. This seems to be what most people expected.

My attempts to hint at the desired behavior probably weren't enough. The background on the component selectors turns red when you don't have enough in storage to use that component in a cannon (meaning you have to buy one). The background of the full cannon display on the right turns red when you haven't saved that configuration, and you can't save it until you have enough of each component in storage (which would cause the background color of the components to be blue). In other words, once everything is blue, you're good to continue on to the next level. If anything is red, you've got a problem.

If I'm going to keep this two-step system, I think I need to create some additional cues in the interface to let people know what to do. I could make the "buy" button flash when an additional component is required and/or make the "save" button flash when the cannon is ready to be saved. Those two things would probably help a lot.

You can probably tell I've put a lot of time into the cannon editor and the GUI for SPUDZOOKA. I think my first go was passable -- players could figure it out after a few tries -- but I need it to be obvious on the first try. And that will take some more work.

Saturday, March 8, 2008

SPUDZOOKA play test!

I'm happy to announce today that my first play test of SPUDZOOKA is ready for your perusal and feedback, constructive or otherwise.

Please take a few minutes to play through the game and then write comments on this post about your experience. Feel free to comment on any part of the game, including:

  • Overall fun factor
  • Graphics/visuals
  • User interface
  • Cannon upgrade system (could you figure it out?)
  • Sound/music
  • Any bugs, funky stuff with playing the game in your browser
Since this is just a test version, I feel obligated to include a small disclaimer: While the gameplay is relatively complete, you will certainly encounter bugs, and there are probably some considerable balance issues with the various cannon components. In fact, there are several cannon combinations that don't even look physically possible. One final note -- the paint job portion of the cannon editor doesn't work yet.

Ok, without further ado, you can play SPUDZOOKA here!

(To play, you will need to install the Unity Web player, which can be downloaded free for Mac and Windows here.)

Tuesday, March 4, 2008

New Nine Inch Nails

For all the Nine Inch Nails fans out there, Trent and a few cohorts have put out a new album: Ghosts I-IV. Coming pretty close on the heels of Year Zero, this one follows Radiohead's lead and is available primarily in digital format. Oh, and they're all instrumental. I've always been a fan of the more ambient NIN stuff anyway, so this is quite exciting.

There are several options, including a free version containing just the first 9 tracks (there are 36, count 'em, 36 in all) and a $5 dollar download only containing all 36 tracks, a PDF booklet, and some cool web-ready images. There's also a $10, dual-CD purchase due to be shipped in April.

I went for the $5 download, and it's quite good so far. There's so much music for the price, though, even a mediocre release would still be worth it. It did take me two days to get it, since the web site was so hosed up.

Score another one for the bands fighting against record-company tyranny.

Thursday, February 28, 2008

A useful user interface, part 1: Play controls

As a professional "web guy," I have more than a passing interest in user interfaces. The most brilliant concept or the most beautiful design means nothing if people can't accomplish their desired tasks on the web. The same is true, of course, for any kind of application, serious or silly.

For SPUDZOOKA to appeal a wide audience, its play controls and graphical interface must be simple, intuitive, and easy to master. Frustration is the opposite of fun. I don't know yet if I've succeeded in delivering the fun, but here's a look (in two parts) at the basic process I used to design the game's various interface elements.

Play controls
SPUDZOOKA is primarily a target-shooting game, but it borrows a lot of its play controls from first-person shooters. The challenge is to keep the controls as streamlined as possible. Here's what the player needs to be able to do, and the reasoning behind the control scheme I chose for each task:

  • Aim and fire the cannon -- The goal of each level is to destroy as many targets as possible within a set time limit, so aiming and firing is kind of important. Thankfully, as anyone who ever played a first-person shooter will know, the mouse provides a perfect interface for this: move the mouse to aim; click to shoot. Easy enough.
  • Switch weapons -- Lots of target-shooting games stop there, but SPUDZOOKA lets you carry more than one potato cannon at a time, so there has to be a way to switch between them. Another first-person shooter convention fits well here: using the number keys to switch weapons.
  • Switch ammo -- Yes, more switching. Clearly everyone knows that different spud cannons shoot different kinds of ammunition, so I had to work that into the game. The number keys are out for this one (even the higher numbers), since they are being used to switch weapons. I could map several letter keys to various ammo types, but that still seemed redundant and possibly confusing. Instead I decided to use a single button (tab) to cycle through all the available ammo types for the active cannon. The disadvantage here is that it could take a bit longer to select the desired ammo. However, because each cannon will only be able to shoot a few types of ammo, a cycling control seemed to work well enough (let me know if you disagree).
That's it. Seasoned FPS gamers (who made it this far) may have noticed that one important control is missing: the ability to walk around. Seems like a big omission, I know, but I have decided for the time being that the player will be stationary. I'm sure it seems limiting, but there are a couple of reasons for it.
  1. The levels are small and potato cannons shoot a long way. If you can run around and shoot things, it might be too easy. Enabling really slow movement would probably irritate people. Better not to risk it.
  2. I don't want to complicate things. A lot of the skill in FPS games comes from the player's ability to move and aim at the same time. I know this because I am quite inept at jumping while shooting in Halo, which seems to be necessary for survival in multiplayer mode. While plenty of people certainly possess these skills (they have all killed me in Halo), I don't want those skills to be a requirement for my game. I want to focus the player's attention on choosing the right cannon and ammunition for clearing obstacles and hitting targets, not on maneuvering quickly and dexterously through space.
Once you play through a few levels, you can tell me whether you're completely bored standing in place. In part 2, a look at the graphical user interface.