summaryrefslogtreecommitdiffstats
path: root/tetris/tetris.c
diff options
context:
space:
mode:
Diffstat (limited to 'tetris/tetris.c')
-rw-r--r--tetris/tetris.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c
index f1f096a8..ba6eb439 100644
--- a/tetris/tetris.c
+++ b/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.12 1999/09/12 09:02:24 jsm Exp $ */
+/* $NetBSD: tetris.c,v 1.13 2000/01/01 10:15:17 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -62,8 +62,21 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
#include "screen.h"
#include "tetris.h"
+cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
+
+int Rows, Cols; /* current screen size */
+
+const struct shape *curshape;
+const struct shape *nextshape;
+
+long fallrate; /* less than 1 million; smaller => faster */
+
+int score; /* the obvious thing */
gid_t gid, egid;
+char key_msg[100];
+int showpreview;
+
static void elide __P((void));
static void setup_board __P((void));
int main __P((int, char **));