From 9a9711945c2add826e5887aabe2330bee9042b4b Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 12 Jul 2018 04:13:15 +0300 Subject: Introduce pause mechanics, refactor a little Introduce Pause mechanics and mention it in README.md. Makefile: replace unnecessary "-MMD -MP" with just "-MD" flag, so it allows to compile with tcc too. Refactor: Rename game.isStarted field to game.started field. Move arrKeys container to engine.c and remove it from main.c. Refactor char iterator in utf8to32_strcpy function. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5be3baf..223fd32 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,12 @@ make all ``` File named "tetris" is the final binary. Run it. Hit *S* to start game. -- `s` - start a game. +- `S` - start a game. - `Left arrow` - move shape left. - `Right arrow` - move shape right. - `Up arrow` - rotate shape clockwise. - `Space` - hard drop. +- `P` - pause. Cleaning: ``` @@ -51,5 +52,6 @@ Look at the [repo releases](https://github.com/Oxore/tetris-csfml/releases)! Now - Change colorscheme and define new - Number of levels - [x] Three next shapes +- [x] Pause - Look with sprites and shaders - Interprocess communication interface for control from other process (I want to connect machine learning algorithm and make it play and learn) -- cgit v1.2.3