Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement ideas #2

Open
harry-wood opened this issue Oct 28, 2019 · 2 comments
Open

Enhancement ideas #2

harry-wood opened this issue Oct 28, 2019 · 2 comments

Comments

@harry-wood
Copy link

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:

  • 'preview' of the next block to fall
  • option to pause the game
  • arrow key to rotate (Up arrow I suppose)
  • arrow speed up blocks (rather than just instant drop I suppose)
@DavidGriffith
Copy link
Owner

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
Copy link

hboetes commented Nov 9, 2019

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 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants