aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile9
-rw-r--r--util.h5
-rw-r--r--worm.c6
-rw-r--r--wormpc.dfnbin0 -> 324 bytes
-rw-r--r--wormpc.h26
-rw-r--r--wormpc.rscbin1244 -> 2086 bytes
6 files changed, 38 insertions, 8 deletions
diff --git a/makefile b/makefile
index 23f32c0..3a7add1 100644
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@
# Turbo C for this to work
CC=tcc
-CFLAGS=-ms -DPCGEM -DNEEDGSX
+CFLAGS=-ms -DPCGEM -DNEEDGSX -Id:\dos\tmp\newkit2\inc
CLIBS=stcgem.lib
TARGET=worm.app
@@ -16,6 +16,9 @@ player.obj: player.c player.h field.h
field.obj: field.c player.h field.h util.h
$(CC) $(CFLAGS) -c field.c
-all: worm.c player.h field.h wormpc.h util.h player.obj field.obj
- $(CC) $(CFLAGS) -e$(TARGET) worm.c player.obj field.obj $(CLIBS)
+scores.obj: scores.c scores.h
+ $(CC) $(CFLAGS) -c scores.c
+
+all: worm.c player.h field.h wormpc.h util.h scores.h player.obj field.obj scores.obj
+ $(CC) $(CFLAGS) -e$(TARGET) worm.c player.obj field.obj scores.obj $(CLIBS)
\ No newline at end of file
diff --git a/util.h b/util.h
index ef2f749..cdfc798 100644
--- a/util.h
+++ b/util.h
@@ -53,7 +53,12 @@ static void set_resource_string(OBJECT *tree, short obj, const char *string)
long addr;
/* What a freakin' nightmare... */
+#ifdef PCGEM
+ addr = tree[obj].ob_spec;
+#else
addr = tree[obj].ob_spec.index;
+#endif
+
strcpy((char *)addr, string);
}
diff --git a/worm.c b/worm.c
index cc0e51a..f2859ec 100644
--- a/worm.c
+++ b/worm.c
@@ -118,7 +118,11 @@ TEDINFO *eted;
if(res == BOK) {
/* save! */
+#ifdef PCGEM
+ eted = (TEDINFO *)(newscore_box[TINITIALS].ob_spec);
+#else
eted = (TEDINFO *)(newscore_box[TINITIALS].ob_spec.index);
+#endif
add_high_score((char *)eted->te_ptext, score);
}
@@ -653,9 +657,11 @@ EVMULT_OUT evout;
case MSCORES:
hndl_scores();
break;
+#ifdef MABOUT
case MABOUT:
hndl_about();
break;
+#endif
}
menu_tnormal(app_menu, msg[3], 1);
break;
diff --git a/wormpc.dfn b/wormpc.dfn
new file mode 100644
index 0000000..0eb9273
--- /dev/null
+++ b/wormpc.dfn
Binary files differ
diff --git a/wormpc.h b/wormpc.h
index 1a54772..1a38d2b 100644
--- a/wormpc.h
+++ b/wormpc.h
@@ -1,8 +1,24 @@
#define RCMENU 0 /* TREE */
-#define MNEW 17 /* OBJECT in TREE #0 */
-#define MQUIT 16 /* OBJECT in TREE #0 */
-#define MABOUT 7 /* OBJECT in TREE #0 */
+#define MNEW 16 /* OBJECT in TREE #0 */
+#define MQUIT 19 /* OBJECT in TREE #0 */
#define ABOUT 1 /* TREE */
+#define MPAUSE 17 /* OBJECT in TREE #0 */
+#define MSCORES 20 /* OBJECT in TREE #0 */
#define BEXIT 12 /* OBJECT in TREE #1 */
-#define MDESK 3 /* OBJECT in TREE #0 */
- \ No newline at end of file
+#define NEWSCORE 2 /* TREE */
+#define TINITIALS 1 /* OBJECT in TREE #2 */
+#define BOK 2 /* OBJECT in TREE #2 */
+#define BCANCEL 3 /* OBJECT in TREE #2 */
+#define HISCORES 3 /* TREE */
+#define BHIOK 12 /* OBJECT in TREE #3 */
+#define THI1 2 /* OBJECT in TREE #3 */
+#define THI2 3 /* OBJECT in TREE #3 */
+#define THI3 4 /* OBJECT in TREE #3 */
+#define THI4 5 /* OBJECT in TREE #3 */
+#define THI5 6 /* OBJECT in TREE #3 */
+#define THI6 7 /* OBJECT in TREE #3 */
+#define THI7 8 /* OBJECT in TREE #3 */
+#define THI8 9 /* OBJECT in TREE #3 */
+#define THI9 10 /* OBJECT in TREE #3 */
+#define THI10 11 /* OBJECT in TREE #3 */
+
diff --git a/wormpc.rsc b/wormpc.rsc
index e6f1452..07d1c1a 100644
--- a/wormpc.rsc
+++ b/wormpc.rsc
Binary files differ