-/* $NetBSD: tetris.h,v 1.11 2009/05/25 04:33:53 dholland Exp $ */
+/* $NetBSD: tetris.h,v 1.15 2016/03/03 21:38:55 nat Exp $ */
/*-
* Copyright (c) 1992, 1993
#define MINCOLS 40
extern int Rows, Cols; /* current screen size */
+extern int Offset; /* vert. offset to center board */
/*
* Translations from board coordinates to display coordinates.
* rotated forms.
*/
struct shape {
+ int color;
int rot; /* index of rotated version of this shape */
int off[3]; /* offsets to other blots if center is at (0,0) */
};
extern const struct shape shapes[];
#define randshape() (&shapes[random() % 7])
-extern const struct shape *curshape;
extern const struct shape *nextshape;
/*
extern char key_msg[100];
extern int showpreview;
+extern int nocolor;
int fits_in(const struct shape *, int);
void place(const struct shape *, int, int);