C=64 Paradroid clone

This commit is contained in:
hubertf 1999-02-07 02:06:18 +00:00
parent 1dd9d2d42a
commit 2e238c9a46
12 changed files with 442 additions and 0 deletions

38
games/nighthawk/Makefile Normal file
View file

@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.1.1.1 1999/02/07 02:06:18 hubertf Exp $
#
DISTNAME= nighthawk-2.1
PATCHFILES= nighthawk-2.1a.patch
EXTRACT_SUFX= .tgz
CATEGORIES= x11 games
MASTER_SITES= http://www.downunder.net.au/~jsno/rel/unix_projects/
PATCH_SITES= ${MASTER_SITES}
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.downunder.net.au/~jsno/
DEPENDS+= xpm-3.4k:../../graphics/xpm
WRKSRC= ${WRKDIR}/nighthawk
PATCH_DIST_STRIP= -p1
USE_GMAKE= YES
USE_X11= YES
post-build:
cd ${WRKSRC}/src_sound ; \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} nighthawk_sound
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk
${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk/data
( cd ${WRKSRC}/data ; tar plcf - . ) | ( cd ${PREFIX}/share/nighthawk/data ; tar plvxf - )
${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/share/nighthawk
find ${PREFIX}/share/nighthawk -type f -print | xargs ${CHMOD} 444
find ${PREFIX}/share/nighthawk -type d -print | xargs ${CHMOD} 555
${INSTALL_PROGRAM} ${WRKSRC}/src/nighthawk ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src_sound/nighthawk_sound ${PREFIX}/bin
${CHGRP} games ${PREFIX}/bin/nighthawk
${CHMOD} g+s ${PREFIX}/bin/nighthawk
${INSTALL} -o root -g games -m 664 /dev/null /var/games/nighthawk.scores
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,4 @@
$NetBSD: md5,v 1.1.1.1 1999/02/07 02:06:19 hubertf Exp $
MD5 (nighthawk-2.1.tgz) = c155827001c140366c1a24fbc5b1c383
MD5 (nighthawk-2.1a.patch) = 02fcd04d7f91968b098da89c5466802e

View file

@ -0,0 +1,27 @@
--- Makefile.BAK Sun Feb 7 00:55:47 1999
+++ Makefile Sun Feb 7 00:56:00 1999
@@ -1,17 +1,17 @@
all:
- (cd src ; make)
+ (cd src ; ${MAKE})
with_sound:
- (cd src ; make)
- (cd src_sound ; make)
+ (cd src ; ${MAKE})
+ (cd src_sound ; ${MAKE})
clean:
rm -f core
(cd bin ; rm -f core)
- (cd src ; make clean)
- (cd src_sound ; make clean)
+ (cd src ; ${MAKE} clean)
+ (cd src_sound ; ${MAKE} clean)
install:
rm -f core
- (cd src ; make install)
- (cd src_sound ; make install)
+ (cd src ; ${MAKE} install)
+ (cd src_sound ; ${MAKE} install)

View file

@ -0,0 +1,22 @@
--- src/Makefile.orig Sun Feb 7 01:25:16 1999
+++ src/Makefile Sun Feb 7 01:26:48 1999
@@ -3,13 +3,14 @@
#
############################################################################
VERSION = 2.1
-CC = gcc
-CP = g++
+CC = gcc ${EVERYTHING}
+CP = g++ ${EVERYTHING}
OPTIONS = -Wall -g -pipe -fomit-frame-pointer \
- -DVERSION='"$(VERSION)"'
+ -DVERSION='"$(VERSION)"' \
+ -DPREFIX=\"${PREFIX}\"
-INCLUDE =
-LIBS = -L/usr/X11R6/lib -lXpm -lX11
+INCLUDE = -I${X11BASE}/include
+LIBS = -L${X11BASE}/lib -lXpm -lX11
EVERYTHING = $(OPTIONS) $(INCLUDE) $(LIBS)
###############################

View file

@ -0,0 +1,14 @@
--- src/nighthawk.cc.BAK Sun Feb 7 01:01:57 1999
+++ src/nighthawk.cc Sun Feb 7 01:02:10 1999
@@ -85,7 +85,11 @@
FILE *fp;
if((fp = fopen(filename,mode)) != NULL)
+#ifdef __NetBSD__
+ flock(fp->_file,LOCK_EX);
+#else
flock(fp->_fileno,LOCK_EX);
+#endif
return fp;
}

View file

@ -0,0 +1,13 @@
--- options.h.BAK Sun Feb 7 01:25:16 1999
+++ options.h Sun Feb 7 01:31:44 1999
@@ -8,8 +8,8 @@
configure theses directives.
--------------------------------------------------------------------------
--------------------------------------------------------------------------*/
-#define INSTALL_DIR "/tmp"
-#define SCORES_FILE "/tmp/nighthawk.scores"
+#define INSTALL_DIR PREFIX "/share/nighthawk"
+#define SCORES_FILE "/var/games/nighthawk.scores"
/*
uncomment this if you have a slow machine. this will reduce high intensive

View file

@ -0,0 +1,11 @@
--- src/defs.h.BAK Sun Feb 7 02:37:57 1999
+++ src/defs.h Sun Feb 7 02:38:05 1999
@@ -15,7 +15,7 @@
#define WELCOME \
"Nighthawk version " VERSION " (" DATED "), Copyright (C) 1997 Jason Nunn.\n\n"
-#define FUNKPLAY_PATH INSTALL_DIR "/bin/nighthawk_sound"
+#define FUNKPLAY_PATH PREFIX "/bin/nighthawk_sound"
#define STR_LABEL_LEN 40
#define STR_LEN 256

View file

@ -0,0 +1,27 @@
--- src_sound/Makefile.BAK Sun Feb 7 02:23:38 1999
+++ src_sound/Makefile Sun Feb 7 02:29:38 1999
@@ -2,8 +2,8 @@
# nighthawk sound engine
############################################################################
CC = gcc
-OPTIONS = -Wall -g -pipe -fomit-frame-pointer
-LIB = -lm
+OPTIONS = -Wall -g -pipe -fomit-frame-pointer -DPREFIX=\"${PREFIX}\"
+LIB = -lm -lossaudio
ifeq ($(OSTYPE),Linux)
OPTIONS += -DLinux
@@ -11,11 +11,11 @@
ifeq ($(OSTYPE),FreeBSD)
OPTIONS += -DFreeBSD
else
- OPTIONS += -DLinux
+ OPTIONS += -DNetBSD
endif
endif
-HOST_SAFE = 0
+HOST_SAFE = 1
ifeq ($(HOSTTYPE),i386)
HOST_SAFE = 1

View file

@ -0,0 +1,29 @@
--- src_sound/dsp_mixxer.c.BAK Sun Feb 7 02:24:23 1999
+++ src_sound/dsp_mixxer.c Sun Feb 7 02:26:49 1999
@@ -23,6 +23,8 @@
#include <sys/soundcard.h>
#elif FreeBSD
#include <machine/soundcard.h>
+#elif defined(__NetBSD__)
+ #include <soundcard.h>
#endif
#include "funktracker_defs.h"
#include "funktracker.h"
@@ -91,7 +93,7 @@
register int x;
calc_mix_buffer(funk_info.bpm_rate);
- ioctl(dsp_fp,SNDCTL_DSP_RESET);
+ ioctl(dsp_fp,SNDCTL_DSP_RESET, 0);
for(x = 0;x < mix_buffer_size;x++)
{
*(left_mix_buffer + x) = 0;
@@ -187,7 +189,7 @@
{
if(dsp_fp != -1)
{
- ioctl(dsp_fp,SNDCTL_DSP_RESET);
+ ioctl(dsp_fp,SNDCTL_DSP_RESET, 0);
close(dsp_fp);
}
}

View file

@ -0,0 +1 @@
C=64 Paradroid clone

13
games/nighthawk/pkg/DESCR Normal file
View file

@ -0,0 +1,13 @@
In a nutshell, Nighthawk is a shoot-'em up game, however, it requires
alot of lateral thinking. If you go around blasting everything to
pieces, you'll find that you won't last very long as you're up
again droids with far greater fire power than yourself. The droids
are fairly stupid compared to a human though, so you have that in
your favour.
You are a droid and you have to destroy droids occupying a fleet
of reclaimed starships. You start out as a 002 Paradroid with very
poor firepower and shielding. However, you have the ability to
transfer your programs over to a new droid, effectively taking it
over. As you take control of bigger and better droids, you''ll gain
better firepower and shielding.

243
games/nighthawk/pkg/PLIST Normal file
View file

@ -0,0 +1,243 @@
@comment $NetBSD: PLIST,v 1.1.1.1 1999/02/07 02:06:19 hubertf Exp $
bin/nighthawk
bin/nighthawk_sound
share/nighthawk/data/Mearkat/chars
share/nighthawk/data/Mearkat/map.xpm
share/nighthawk/data/Mearkat/Hull.f
share/nighthawk/data/Mearkat/Bridge.f
share/nighthawk/data/Mearkat/Hull.m
share/nighthawk/data/Mearkat/Bridge.m
share/nighthawk/data/xpm/standard/flr_base_cyan.xpm
share/nighthawk/data/xpm/standard/flr_crosses_cyan.xpm
share/nighthawk/data/xpm/standard/flr_door_h_cyan.xpm
share/nighthawk/data/xpm/standard/flr_door_v_cyan.xpm
share/nighthawk/data/xpm/standard/flr_elev_cyan.xpm
share/nighthawk/data/xpm/standard/flr_sqrs_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_bj_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_bl_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_br_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_h_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_lj_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_rj_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_tj_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_tl_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_tr_cyan.xpm
share/nighthawk/data/xpm/standard/flr_wall_v_cyan.xpm
share/nighthawk/data/xpm/standard/flr_con_b_cyan.xpm
share/nighthawk/data/xpm/standard/flr_con_l_cyan.xpm
share/nighthawk/data/xpm/standard/flr_con_r_cyan.xpm
share/nighthawk/data/xpm/standard/flr_con_t_cyan.xpm
share/nighthawk/data/xpm/standard/flr_store1_cyan.xpm
share/nighthawk/data/xpm/standard/nothing.xpm
share/nighthawk/data/xpm/standard/flr_chair_l_cyan.xpm
share/nighthawk/data/xpm/standard/flr_dashes_cyan.xpm
share/nighthawk/data/xpm/standard/droid_ani.xpm
share/nighthawk/data/xpm/standard/laser_cb.xpm
share/nighthawk/data/xpm/standard/laser_uv.xpm
share/nighthawk/data/xpm/standard/laser_te.xpm
share/nighthawk/data/xpm/standard/explosion.xpm
share/nighthawk/data/xpm/standard/ntitle.xpm
share/nighthawk/data/xpm/standard/digits.xpm
share/nighthawk/data/xpm/standard/power_bay.xpm
share/nighthawk/data/xpm/standard/flr_door_h_cyan_ani.xpm
share/nighthawk/data/xpm/standard/flr_door_v_cyan_ani.xpm
share/nighthawk/data/xpm/standard/paradroid_ani.xpm
share/nighthawk/data/xpm/standard/neg.xpm
share/nighthawk/data/xpm/standard/digits2.xpm
share/nighthawk/data/xpm/standard/ship_complete.xpm
share/nighthawk/data/xpm/standard/credit_1.xpm
share/nighthawk/data/xpm/standard/credit_2.xpm
share/nighthawk/data/xpm/standard/credit_3.xpm
share/nighthawk/data/xpm/standard/trans_terminated.xpm
share/nighthawk/data/xpm/standard/intro_back_1.xpm
share/nighthawk/data/xpm/standard/flr_pattern1_cyan.xpm
share/nighthawk/data/xpm/standard/paused.xpm
share/nighthawk/data/xpm/standard/laser_l.xpm
share/nighthawk/data/xpm/standard/flr_pattern2_cyan.xpm
share/nighthawk/data/xpm/standard/flr_pattern3_cyan.xpm
share/nighthawk/data/xpm/standard/flr_pattern4_cyan.xpm
share/nighthawk/data/xpm/standard/credit_4.xpm
share/nighthawk/data/xpm/standard/credit_5.xpm
share/nighthawk/data/xpm/standard/credit_6.xpm
share/nighthawk/data/xpm/standard/docking_to_ship.xpm
share/nighthawk/data/xpm/standard/intro_back_2.xpm
share/nighthawk/data/xpm/standard/intro_back_3.xpm
share/nighthawk/data/xpm/standard/intro_back_4.xpm
share/nighthawk/data/xpm/xpm.i
share/nighthawk/data/Haldeck/map.xpm
share/nighthawk/data/Haldeck/Bridge.m
share/nighthawk/data/Haldeck/chars
share/nighthawk/data/Haldeck/Cargo.m
share/nighthawk/data/Haldeck/Quarters.m
share/nighthawk/data/Haldeck/Engineering.m
share/nighthawk/data/Haldeck/Cargo.f
share/nighthawk/data/Haldeck/Quarters.f
share/nighthawk/data/Haldeck/Bridge.f
share/nighthawk/data/Haldeck/Engineering.f
share/nighthawk/data/Seafarer/map.xpm
share/nighthawk/data/Seafarer/Cargo1.f
share/nighthawk/data/Seafarer/Cargo2.f
share/nighthawk/data/Seafarer/Cargo3.f
share/nighthawk/data/Seafarer/Engineering.f
share/nighthawk/data/Seafarer/Quarters.f
share/nighthawk/data/Seafarer/Bridge.f
share/nighthawk/data/Seafarer/chars
share/nighthawk/data/Seafarer/Bridge.m
share/nighthawk/data/Seafarer/Cargo1.m
share/nighthawk/data/Seafarer/Cargo2.m
share/nighthawk/data/Seafarer/Cargo3.m
share/nighthawk/data/Seafarer/Engineering.m
share/nighthawk/data/Seafarer/Quarters.m
share/nighthawk/data/Anoyle/map.xpm
share/nighthawk/data/Anoyle/Hull.f
share/nighthawk/data/Anoyle/chars
share/nighthawk/data/Anoyle/Engineering.f
share/nighthawk/data/Anoyle/Gunnery1.f
share/nighthawk/data/Anoyle/Gunnery2.f
share/nighthawk/data/Anoyle/Medical.f
share/nighthawk/data/Anoyle/Bridge.f
share/nighthawk/data/Anoyle/Bridge.m
share/nighthawk/data/Anoyle/Engineering.m
share/nighthawk/data/Anoyle/Gunnery1.m
share/nighthawk/data/Anoyle/Gunnery2.m
share/nighthawk/data/Anoyle/Hull.m
share/nighthawk/data/Anoyle/Medical.m
share/nighthawk/data/Esperence/chars
share/nighthawk/data/Esperence/map.xpm
share/nighthawk/data/Esperence/Hull.f
share/nighthawk/data/Esperence/Dock.f
share/nighthawk/data/Esperence/Gunnery2.f
share/nighthawk/data/Esperence/Cargo.f
share/nighthawk/data/Esperence/Engineering.f
share/nighthawk/data/Esperence/Gunnery3.f
share/nighthawk/data/Esperence/Gunnery1.f
share/nighthawk/data/Esperence/Bridge.f
share/nighthawk/data/Esperence/Dock.m
share/nighthawk/data/Esperence/Bridge.m
share/nighthawk/data/Esperence/Cargo.m
share/nighthawk/data/Esperence/Engineering.m
share/nighthawk/data/Esperence/Gunnery1.m
share/nighthawk/data/Esperence/Gunnery2.m
share/nighthawk/data/Esperence/Gunnery3.m
share/nighthawk/data/Esperence/Hull.m
share/nighthawk/data/Discovery/chars
share/nighthawk/data/Discovery/map.xpm
share/nighthawk/data/Discovery/Bridge.f
share/nighthawk/data/Discovery/Defense.f
share/nighthawk/data/Discovery/Bridge.m
share/nighthawk/data/Discovery/Defense.m
share/nighthawk/data/Discovery/Astrophys.f
share/nighthawk/data/Discovery/Astrophys.m
share/nighthawk/data/Discovery/Botany1.f
share/nighthawk/data/Discovery/Botany1.m
share/nighthawk/data/Discovery/Botany2.f
share/nighthawk/data/Discovery/Botany2.m
share/nighthawk/data/Discovery/Botany3.f
share/nighthawk/data/Discovery/Botany3.m
share/nighthawk/data/Discovery/Botany4.f
share/nighthawk/data/Discovery/Botany4.m
share/nighthawk/data/Discovery/Astronomy1.f
share/nighthawk/data/Discovery/Astronomy2.f
share/nighthawk/data/Discovery/Astronomy1.m
share/nighthawk/data/Discovery/Astronomy2.m
share/nighthawk/data/Discovery/Engineering.f
share/nighthawk/data/Discovery/Engineering.m
share/nighthawk/data/Friendship/chars
share/nighthawk/data/Friendship/map.xpm
share/nighthawk/data/Friendship/Gunnery1.f
share/nighthawk/data/Friendship/Gunnery1.m
share/nighthawk/data/Friendship/Bridge.f
share/nighthawk/data/Friendship/Bridge.m
share/nighthawk/data/Friendship/Hull.f
share/nighthawk/data/Friendship/Hull.m
share/nighthawk/data/Friendship/Gunnery2.f
share/nighthawk/data/Friendship/Gunnery2.m
share/nighthawk/data/Friendship/Engineering.f
share/nighthawk/data/Friendship/Engineering.m
share/nighthawk/data/Friendship/Gunnery3.f
share/nighthawk/data/Friendship/Gunnery3.m
share/nighthawk/data/Friendship/Decoy.f
share/nighthawk/data/Friendship/Decoy.m
share/nighthawk/data/Friendship/Dock.f
share/nighthawk/data/Friendship/Dock.m
share/nighthawk/data/Ophukus/chars
share/nighthawk/data/Ophukus/map.xpm
share/nighthawk/data/Ophukus/Trauma1.f
share/nighthawk/data/Ophukus/Trauma1.m
share/nighthawk/data/Ophukus/Trauma2.f
share/nighthawk/data/Ophukus/Trauma2.m
share/nighthawk/data/Ophukus/Dock.f
share/nighthawk/data/Ophukus/Dock.m
share/nighthawk/data/Ophukus/Engineering.f
share/nighthawk/data/Ophukus/Bridge.f
share/nighthawk/data/Ophukus/Engineering.m
share/nighthawk/data/Ophukus/Bridge.m
share/nighthawk/data/Zaxon/chars
share/nighthawk/data/Zaxon/map.xpm
share/nighthawk/data/Zaxon/Dock.f
share/nighthawk/data/Zaxon/Decoy.f
share/nighthawk/data/Zaxon/Dock.m
share/nighthawk/data/Zaxon/Decoy.m
share/nighthawk/data/Zaxon/Gunnery2.m
share/nighthawk/data/Zaxon/Gunnery1.f
share/nighthawk/data/Zaxon/Hull.f
share/nighthawk/data/Zaxon/Hull.m
share/nighthawk/data/Zaxon/Medical.f
share/nighthawk/data/Zaxon/Medical.m
share/nighthawk/data/Zaxon/Cargo.f
share/nighthawk/data/Zaxon/Cargo.m
share/nighthawk/data/Zaxon/Engineering.f
share/nighthawk/data/Zaxon/Engineering.m
share/nighthawk/data/Zaxon/Gunnery2.f
share/nighthawk/data/Zaxon/Gunnery1.m
share/nighthawk/data/Zaxon/Comms.f
share/nighthawk/data/Zaxon/Bridge.f
share/nighthawk/data/Zaxon/Comms.m
share/nighthawk/data/Zaxon/Bridge.m
share/nighthawk/data/Tobruk/chars
share/nighthawk/data/Tobruk/map.xpm
share/nighthawk/data/Tobruk/Bridge.f
share/nighthawk/data/Tobruk/Dock.f
share/nighthawk/data/Tobruk/Dock.m
share/nighthawk/data/Tobruk/Bridge.m
share/nighthawk/data/Tobruk/Hull.f
share/nighthawk/data/Tobruk/Hull.m
share/nighthawk/data/music/Rescue_from_Vega.fnk
share/nighthawk/data/fx/laser_crocoite_benzol.8
share/nighthawk/data/fx/laser_linarite.8
share/nighthawk/data/fx/laser_tiger_eye.8
share/nighthawk/data/fx/laser_uvarovite.8
share/nighthawk/data/fx/ship_complete.8
share/nighthawk/data/fx/no_weapon.8
share/nighthawk/data/fx/power_up.8
share/nighthawk/data/fx/low_shields.8
share/nighthawk/data/fx/door_open.8
share/nighthawk/data/fx/explosion_2.8
share/nighthawk/data/fx/explosion_1.8
share/nighthawk/data/fx/droid_hit_1.8
share/nighthawk/data/fx/laser_buzz.8
share/nighthawk/data/fx/select.8
share/nighthawk/data/fx/weapon_reload.8
share/nighthawk/data/fx/6xx_voice.8
share/nighthawk/data/fx/7xx_voice.8
share/nighthawk/data/fx/droid_evase.8
share/nighthawk/data/fx/8xx_voice.8
share/nighthawk/data/fx/trans_terminated.8
share/nighthawk/data/fx/rand.8
share/nighthawk/data/fx/alert_siren.8
@dirrm share/nighthawk/data/xpm/standard
@dirrm share/nighthawk/data/xpm
@dirrm share/nighthawk/data/music
@dirrm share/nighthawk/data/fx
@dirrm share/nighthawk/data/Zaxon
@dirrm share/nighthawk/data/Tobruk
@dirrm share/nighthawk/data/Seafarer
@dirrm share/nighthawk/data/Ophukus
@dirrm share/nighthawk/data/Mearkat
@dirrm share/nighthawk/data/Haldeck
@dirrm share/nighthawk/data/Friendship
@dirrm share/nighthawk/data/Esperence
@dirrm share/nighthawk/data/Discovery
@dirrm share/nighthawk/data/Anoyle
@dirrm share/nighthawk/data
@dirrm share/nighthawk