I wrote this article for Jon Ingold (Inkle)'s The Game Narrative Kaleidoscope, an anthology of 100+ essays on the craft of game writing. (Mine is on page 234.) The thing about writing for games is to remember that the story exists to serve the game design, not the other way around.
