Add 2015/dogon alt code + other improvements

The author suggested that one should change the value of 'q' to
'0x82000820000000' in order to see a bug that they carefully avoided. To
make it easy to do this the alt version was added.

The Makefile has been improved so it's easier to change the dimensions
of the game: the author had put in the Makefile two macros that have the
width and height and these now are set to WIDTH and HEIGHT defined in
the Makefile so that one can just do something like:

    make WIDTH=500 HEIGHT=500 all

rather than being forced to update the Makefile to do this.

The README.md file has been format/typo checked.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-08 09:27:20 -08:00
1 parent 8d2e20773b
commit 1aaba20b1a
5 files changed
+162 -33

No files matched your search

+11 -3
View File
@@ -57,9 +57,14 @@ CSTD= -std=gnu11
#
ARCH=
# Variables to control dimensions of the game
#
WIDTH= 1024
HEIGHT= 800
# Defines that are needed to compile
#
CDEFINE= -DW=1024 -Dp=800
CDEFINE= -DW=${WIDTH} -Dp=${HEIGHT}
# Include files that are needed to compile
#
@@ -116,8 +121,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -140,6 +145,9 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
# data files
#
data: ${DATA}