Acmcl2.863 net.games.pacman utzoo!decvax!harpo!esquire!cmcl2!salkind Fri Apr 23 10:55:17 1982 Pacman fever, cont. By popular demand, here are the changes to the Unix pacman that many of you requested (see cmcl2.760). Lou Salkind cmcl2!salkind Insert the lines marked with a "-"; change the lines marked with a "!". -------- pacman.c -------- *** around line 60 potioncnt, - bcount = 0, treascnt = 0; *** around line 95 int chperturn = DEFCHPERTURN; - char obuf[BUFSIZ]; - setbuf(stdout, obuf); game = 0; *** around line 113 treascnt = 0; - bcount = 0; potion = FALSE; *** around line 235 } } - if (bcount && --bcount == 0) { - SPLOT(7,45," "); - } if (treascnt && --treascnt == 0) { display[TRYPOS][TRXPOS] = VACANT; *** around line 273 struct pac *mptr; - int bscore; - char msgbuf[50]; refresh(); *** around line 415 switch (boardcount) { case 0: ! case 1: bscore = 100; break; ! case 2: bscore = 200; break; ! case 3: case 4: bscore = 500; break; ! case 5: case 6: bscore = 700; break; ! case 7: case 8: bscore = 1000; break; default: ! case 9: case 10: bscore = 2000; break; } break; - pscore += bscore; - sprintf(msgbuf, "BONUS: %4d", bscore); - SPLOT(7, 45, msgbuf); - bcount = BINTVL; ------ util.c ------ *** around line 17 treascnt, - bcount, goldcnt; *** around line 211 char msgbuf[50]; - int bscore; beep(); *** around line 240 switch (monsthere) { ! case 1: bscore = KILLSCORE; break; ! case 2: bscore = 2 * KILLSCORE; break; ! case 3: bscore = 4 * KILLSCORE; break; ! case 4: bscore = 8 * KILLSCORE; break; } - pscore += bscore; - bcount = BINTVL; - sprintf(msgbuf, "BONUS: %4d", bscore); - SPLOT(7, 45, msgbuf); sprintf(msgbuf, "You got %s!\n", full_names[mnum]); *** around line 386 leave() { - leaveok(stdscr, FALSE); POS(23, 0); *** around line 461 register int charcnt; ! long junk; stop = 0; --------- pacdefs.h --------- *** around line 4 #include - #ifdef pdp11 - #define void int /* crock for pdp11's */ - #endif /* dfp #define POS(row,col) fputs(tgoto(vs_cm,(col),(row)),stdout)*/ *** around line 81 #define POTINTVL 25 - #define BINTVL 10 #define GOLDCNT 185 ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.