diff options
| author | jsm <jsm@NetBSD.org> | 2000-01-01 10:15:17 +0000 |
|---|---|---|
| committer | jsm <jsm@NetBSD.org> | 2000-01-01 10:15:17 +0000 |
| commit | e52594208cfeed7af6be03a9000f99c31d0f403d (patch) | |
| tree | db31bd8f7d1544326fcf09706b21b3ad15aa1ba1 /tetris/tetris.c | |
| parent | c83a77b4ec3b4473778b5ea0a5ae283fc4114a4c (diff) | |
| download | bsdgames-darwin-e52594208cfeed7af6be03a9000f99c31d0f403d.tar.gz bsdgames-darwin-e52594208cfeed7af6be03a9000f99c31d0f403d.zip | |
Declare variables as extern in headers rather than using linker commons.
Diffstat (limited to 'tetris/tetris.c')
| -rw-r--r-- | tetris/tetris.c | 15 |
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 **)); |
