From 01608dc80c8c0dd3f8eda4b183c385d0013c92fb Mon Sep 17 00:00:00 2001 From: angelos Date: Wed, 20 May 1998 03:27:33 +0000 Subject: [PATCH] xchomp port --- games/xchomp/Makefile | 28 ++++++++++++ games/xchomp/files/md5 | 1 + games/xchomp/patches/patch-aa | 19 ++++++++ games/xchomp/patches/patch-ab | 6 +++ games/xchomp/pkg/COMMENT | 1 + games/xchomp/pkg/DESCR | 82 +++++++++++++++++++++++++++++++++++ games/xchomp/pkg/PLIST | 1 + 7 files changed, 138 insertions(+) create mode 100644 games/xchomp/Makefile create mode 100644 games/xchomp/files/md5 create mode 100644 games/xchomp/patches/patch-aa create mode 100644 games/xchomp/patches/patch-ab create mode 100644 games/xchomp/pkg/COMMENT create mode 100644 games/xchomp/pkg/DESCR create mode 100644 games/xchomp/pkg/PLIST diff --git a/games/xchomp/Makefile b/games/xchomp/Makefile new file mode 100644 index 00000000000..258a605204e --- /dev/null +++ b/games/xchomp/Makefile @@ -0,0 +1,28 @@ +# OpenBSD makefile for: xchomp +# Version required: pl1 +# Date created: May 19 1998 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/05/20 03:27:33 angelos Exp $ +# + +DISTNAME= xchomp-pl1 +CATEGORIES= games +MASTER_SITES= +MASTER_SITE_SUBDIR= ../../R5contrib +# +# Original sources in multi-part compressed shell archive +# +#DISTFILES= part01.Z part02.Z part03.Z part04.Z part05.Z patch1.Z +#MASTER_SITES= ftp://ftp.wustl.edu/usenet/comp.sources.x/volume06 + +MAINTAINER= angelos@openbsd.org + +WRKSRC= ${WRKDIR}/xchomp +USE_IMAKE= yes +NO_INSTALL_MANPAGES= yes + +# Change -DFRAME_DELAY=40000 in patchfile/Imakefile value to adjust +# speed of play depending on X server. + +.include diff --git a/games/xchomp/files/md5 b/games/xchomp/files/md5 new file mode 100644 index 00000000000..3ec21a6132b --- /dev/null +++ b/games/xchomp/files/md5 @@ -0,0 +1 @@ +MD5 (xchomp-pl1.tar.gz) = d3e22df559704616f818b157263e7985 diff --git a/games/xchomp/patches/patch-aa b/games/xchomp/patches/patch-aa new file mode 100644 index 00000000000..939478cf6d5 --- /dev/null +++ b/games/xchomp/patches/patch-aa @@ -0,0 +1,19 @@ +*** Imakefile.orig Mon Apr 23 05:50:51 1990 +--- Imakefile Wed Jan 4 00:23:19 1995 +*************** +*** 2,8 **** + #include BandAidCompiler + #endif + +! DEFINES = -DX11 + INCLUDES = -I$(TOP) -I$(TOP)/X11 + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) +--- 2,8 ---- + #include BandAidCompiler + #endif + +! DEFINES = -DX11 -DFRAME_DELAY=40000 + INCLUDES = -I$(TOP) -I$(TOP)/X11 + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) diff --git a/games/xchomp/patches/patch-ab b/games/xchomp/patches/patch-ab new file mode 100644 index 00000000000..3a42a9de703 --- /dev/null +++ b/games/xchomp/patches/patch-ab @@ -0,0 +1,6 @@ +*** /dev/null Tue May 19 23:02:34 1998 +--- xchomp.man Tue May 19 23:27:42 1998 +*************** +*** 0 **** +--- 1 ---- ++ diff --git a/games/xchomp/pkg/COMMENT b/games/xchomp/pkg/COMMENT new file mode 100644 index 00000000000..a3da421cf70 --- /dev/null +++ b/games/xchomp/pkg/COMMENT @@ -0,0 +1 @@ +Pac-man-like game under X Windows diff --git a/games/xchomp/pkg/DESCR b/games/xchomp/pkg/DESCR new file mode 100644 index 00000000000..93f73da9db6 --- /dev/null +++ b/games/xchomp/pkg/DESCR @@ -0,0 +1,82 @@ + + Xchomp, Version 1.1 + ------------------- + +INTRODUCTION + +Hello, and welcome to xchomp. Xchomp is a game closely patterned after +Pac-Man(tm) that runs under the X window system. I've tried to make the +game as close as possible to the original Pac-Man. However, I have not +seen a Pac-Man arcade machine for years, so all the elements of the game +have been recalled from memory. Also, I've added something which I +always felt was missing from Pac-Man, namely several different mazes. + +INSTRUCTIONS FOR PLAYING + +The point of this game, as in all arcade-style games, is to amass the +highest possible score. However, some may find that the fun in the game +is in trying to reach the highest possible level. At least, that's what +I thought was fun about the original. You, the player, are the circular +mouth moving around the maze. Your opponents are the four ghosts following +you around. Touching a ghost will cost you a life. When you start each +level, the maze is filled with dots. Eating these dots (by simply going +over them), gives you 10 points for each. You must eat all the dots on a +maze to advance to the next level. + +On each maze, you will also find several large flashing dots; these are +the power-dots. Eating one of these will add 50 points to your score, +and temporarily give you the ability to eat the ghosts. While the ghosts +can be eaten, they are white (transparent), they move at a reduced speed, +and they try to run away from you. When they turn back to a solid color, +they are back to their normal state, and they return to following you +around. They won't become solid suddenly; they will flash for a couple +of seconds to warn you. While they're flashing, you can still eat them. + +Eating a ghost adds points to your score, and the number of points is +momentarily displayed on the screen. This action turns the ghost into +a harmless pair of eyes. In this state, the ghost moves very quickly, +seeking return to the ghost box in the center of the maze. Once it gets +there, it is "reborn", and goes back to chasing you around the maze. + +The levels of the game are designated by symbols. The first few levels +are "fruit" levels, that is, they are designated by little pictures of +fruit on the bottom of the xchomp window. For example, the first level +is the "cherry" level. Once in a while (twice on every level), the +symbol corresponding to the current level appears in the maze. It will +stay there only for a few seconds; eating it adds a number of points to +your score. At the higher levels, this is a very significant number. +In any case, when you eat a fruit, or other such symbol, the corresponding +point value is briefly displayed on the screen. + +Reaching a score of 10,000 awards you an extra life. + +GAME CONTROLS + +This is strictly a keyboard-controlled game. The arcade game had very +simple controls -- one four-directional joystick. In xchomp, all control +is through the arrow keys. Hitting an arrow key in xchomp is equivalent +to pushing the joystick in the corresponding direction and holding it down; +the player on the screen will continue moving in its current direction +until motion in the specified direction is possible, in which case it will +switch to that direction, or until it hits a wall, in which case it will +stop and wait for a key press corresponding to a valid direction. If this +sounds complex, forget it, and just play the game. I believe you'll find +the controls pretty natural. It can be thought of like this: the player +on the screen will always try to move in the direction of the last key +pressed, and if it can't, it'll keep moving in the direction it's moving +until it can. Only one key press is remembered -- the last one. Don't +hold down the keys; just hit them; otherwise, there may be times when +you're pressing two keys at a time and the second one won't register. + +The game can be paused by pressing the space bar or by iconifying the xchomp +window (the latter definitely works on Sun and DECwindows servers). While +the game is paused, you can abort it by pressing 'R'. This will return +you to the title screen. Pressing 'Q' will cause xchomp to terminate. If +you iconify the xchomp window, the game will be in the paused state when +you de-iconify it. +--- ++--------------------+-----------------------+-------------------------------+ +| | Polygen Corporation | UUCP: | +| Jerry J. Shekhel | Waltham, MA 02254 | {princeton, mit-eddie, | +| | (617) 890-2888 | buita, sunne}!polygen!jerry | ++--------------------+-----------------------+-------------------------------+ diff --git a/games/xchomp/pkg/PLIST b/games/xchomp/pkg/PLIST new file mode 100644 index 00000000000..9f5861b7ca5 --- /dev/null +++ b/games/xchomp/pkg/PLIST @@ -0,0 +1 @@ +bin/xchomp