Several updates/alt code to 2013/birken

The alt version is based on the author's suggestion but like I've done
with the others (sometimes based on author's suggestions, sometimes not)
where usleep() is used I made it configurable at compile time.

Added demo.sh which cycles through all the text files provided, noting
prior to running the command what is about to be run, to show them all.
Note that if someone were to put in an invalid text file in the
directory there might be a problem. Script removes (in message) the
'.txt$' and capitalises the word. In some cases it changes the text to
be two words. Script passes shellcheck. This script allows one to use
the alt version as well; the try section of the README.md shows this
happening.

Format fix and added links (quite a few - I have very fond memories of
the games from the 1980s!) to the games referenced.

Updated .gitignore.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-09 05:17:12 -07:00
1 parent a3287845c6
commit 95fffc4f9a
5 files changed
+413 -81

No files matched your search

+5 -3
View File
@@ -57,7 +57,7 @@ ARCH=
# Defines that are needed to compile
#
CDEFINE=
CDEFINE= -DZ=15000
# Include files that are needed to compile
#
@@ -120,8 +120,8 @@ DATA= belmont.txt bloober.txt bomberman.txt boo.txt bub.txt cheepcheep.txt \
toad.txt triple0.gif triple1.gif
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -138,6 +138,8 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
#
alt: data ${ALT_TARGET}