DavidGriffith / tint

TINT Is Not Tetris(tm) ...at least the name isn't
45 stars 14 forks source link

Enhancement ideas #2

Open harry-wood opened 5 years ago

harry-wood commented 5 years ago

Did you see tint was featured here: https://www.omgubuntu.co.uk/2019/06/play-tetris-terminal-linux I came across that and installed it just now. I like it!

But there's some enhancement ideas on there which I'd agree with:

DavidGriffith commented 5 years ago

I don't have much time to work on this. It's presence here is something of a means of holding onto it so it doesn't get lost. I'm not the original author.

hboetes commented 4 years ago

It's not that hard to hack in your own preferences. For example:

diff --git a/tint.c b/tint.c
index 83fe608..1a99b03 100644
--- a/tint.c
+++ b/tint.c
@@ -598,6 +598,7 @@ int main (int argc,char *argv[])
                  break;
                case 'k':
                case '\n':
+               case KEY_DOWN:
                  engine_move (&engine,ACTION_ROTATE);
                  break;
                case 'l':
@@ -605,7 +606,6 @@ int main (int argc,char *argv[])
                  engine_move (&engine,ACTION_RIGHT);
                  break;
                case ' ':
-               case KEY_DOWN:
                  engine_move (&engine,ACTION_DROP);
                  break;
                  /* show next piece */