! ! "Life and Death" ! By David S. Glasser ! Hello, source reader! ! This source is provided mainly to show you three things: ! * How I made a Z-Machine Life ! * Some of my personal Inform tips ! * The way I set up the source to all my Inform games ! I usually start working on a new game by copying the source to an old ! game and deleting game specific stuff. To be exact, I copy the game.inf ! file (you're reading one now), and the gFuncs and gVerbs. All other ! files are specific to the game. (Note that the first letter of the Funcs ! and Verbs file is changed between games; here it is l.) ! I try to keep the main file down to comments, includes, and Constant ! definitions that need to be in more than one file. Constant Story "Life or Death"; Constant Headline "^An Interactive Biological Interaction^ Copyright (c) 1998 by David S. Glasser.^ (Type ~about~ for more information)^"; ! Story and headline are always here. I usually keep them looking like this. Constant NUM_COLS 17; ! Controls size of board ! Usually, I have two replace directives for my Manual Pronoun ! library here. More on that later. Include "Parser.h"; ! Inform Library Part 1 Include "VerbLib.h"; ! Inform Library Part 2 Include "lFuncs.h"; ! Functions and classes Include "Grammar.h"; ! Inform Library Part 3 Include "lVerbs.h"; ! Verbs Include "lLife.h"; ! Life back-end implementation Include "lBoard.h"; ! Life front-end, and all other objects ! Usually, I wouldn't cram the whole world into one file, but this game ! is small enough. ! I would usually have inclusions of DorianX's Emphasis et al, his ! Center library, and Graham's menu code. ! I'd also put in my Manual Pronoun control code, letting you control ! whether pronouns can change by looking and taking inventory, or ! only by specific mentions. However, there aren't enough objects to ! warrant them.