From 5a61fdd6c9ff9872e4e0c3a1c449a08935034729 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 26 Jul 2002 20:19:23 +0000 Subject: add classic mode, closer to the way tetris felt a couple decades ago; pjanzen@ ok --- games/tetris/shapes.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'games/tetris/shapes.c') diff --git a/games/tetris/shapes.c b/games/tetris/shapes.c index 5adb2544365..3158f37566b 100644 --- a/games/tetris/shapes.c +++ b/games/tetris/shapes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shapes.c,v 1.4 2002/05/31 04:21:30 pjanzen Exp $ */ +/* $OpenBSD: shapes.c,v 1.5 2002/07/26 20:19:22 mickey Exp $ */ /* $NetBSD: shapes.c,v 1.2 1995/04/22 07:42:44 cgd Exp $ */ /*- @@ -58,25 +58,25 @@ #define BR B_COLS+1 /* bottom right */ struct shape shapes[] = { - /* 0*/ { 7, { TL, TC, MR } }, - /* 1*/ { 8, { TC, TR, ML } }, - /* 2*/ { 9, { ML, MR, BC } }, - /* 3*/ { 3, { TL, TC, ML } }, - /* 4*/ { 12, { ML, BL, MR } }, - /* 5*/ { 15, { ML, BR, MR } }, - /* 6*/ { 18, { ML, MR, 2 } }, /* sticks out */ - /* 7*/ { 0, { TC, ML, BL } }, - /* 8*/ { 1, { TC, MR, BR } }, - /* 9*/ { 10, { TC, MR, BC } }, - /*10*/ { 11, { TC, ML, MR } }, - /*11*/ { 2, { TC, ML, BC } }, - /*12*/ { 13, { TC, BC, BR } }, - /*13*/ { 14, { TR, ML, MR } }, - /*14*/ { 4, { TL, TC, BC } }, - /*15*/ { 16, { TR, TC, BC } }, - /*16*/ { 17, { TL, MR, ML } }, - /*17*/ { 5, { TC, BC, BL } }, - /*18*/ { 6, { TC, BC, 2*B_COLS } }/* sticks out */ + /* 0*/ { 7, 7, { TL, TC, MR } }, + /* 1*/ { 8, 8, { TC, TR, ML } }, + /* 2*/ { 9, 11, { ML, MR, BC } }, + /* 3*/ { 3, 3, { TL, TC, ML } }, + /* 4*/ { 12, 14, { ML, BL, MR } }, + /* 5*/ { 15, 17, { ML, BR, MR } }, + /* 6*/ { 18, 18, { ML, MR, 2 } }, /* sticks out */ + /* 7*/ { 0, 0, { TC, ML, BL } }, + /* 8*/ { 1, 1, { TC, MR, BR } }, + /* 9*/ { 10, 2, { TC, MR, BC } }, + /*10*/ { 11, 9, { TC, ML, MR } }, + /*11*/ { 2, 10, { TC, ML, BC } }, + /*12*/ { 13, 4, { TC, BC, BR } }, + /*13*/ { 14, 12, { TR, ML, MR } }, + /*14*/ { 4, 13, { TL, TC, BC } }, + /*15*/ { 16, 5, { TR, TC, BC } }, + /*16*/ { 17, 15, { TL, MR, ML } }, + /*17*/ { 5, 16, { TC, BC, BL } }, + /*18*/ { 6, 6, { TC, BC, 2*B_COLS } }/* sticks out */ }; /* -- cgit v1.2.3