From 1033fba35c308f3253abd40f163d7c52ef7ac5fb Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 11 Jun 2014 16:47:39 +0000 Subject: Add a little color. In order to minimize logic differences, keep 0 as the empty board value, and since 7 is white, turn white into black (0) when painting. --- tetris/tetris.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tetris/tetris.h') diff --git a/tetris/tetris.h b/tetris/tetris.h index 37f0d9ba..4f2fbccd 100644 --- a/tetris/tetris.h +++ b/tetris/tetris.h @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.h,v 1.12 2009/08/12 08:51:21 dholland Exp $ */ +/* $NetBSD: tetris.h,v 1.13 2014/06/11 16:47:39 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -123,6 +123,7 @@ extern int Rows, Cols; /* current screen size */ * 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) */ }; -- cgit v1.2.3