diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-26 20:19:23 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-26 20:19:23 +0000 |
commit | 5a61fdd6c9ff9872e4e0c3a1c449a08935034729 (patch) | |
tree | cc9ccd5a653a952a7c156c098bd59ce29ab53ad7 /games/tetris/shapes.c | |
parent | 14be15feb70887ab60a3599332eae67d4c35fead (diff) |
add classic mode, closer to the way tetris felt a couple decades ago; pjanzen@ ok
Diffstat (limited to 'games/tetris/shapes.c')
-rw-r--r-- | games/tetris/shapes.c | 40 |
1 files changed, 20 insertions, 20 deletions
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 */ }; /* |