Skip to content

Commit

Permalink
Merge branch '#1_reduce_screen_flickering'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkun committed Jun 6, 2022
2 parents 4fa4163 + 1013712 commit c46d901
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 335 deletions.
47 changes: 0 additions & 47 deletions .gitmessage.txt

This file was deleted.

14 changes: 14 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// MD007/ul-indent Unordered list indentation
"ul-indent": {
"indent": 4
},

// MD013/line-length Line length
"line_length": false,

// MD033/no-inline-html Inline HTML
"no-inline-html": {
"allowed_elements": ["h1", "img", "kbd"]
}
}
96 changes: 42 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,79 @@
AWKTC
=====
# AWKTC

![Screenshot (width: 12)](./md-images/screenshot-width12.png)
![GitHub top language](https://img.shields.io/github/languages/top/mikkun/AWKTC)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/mikkun/AWKTC)
![GitHub license](https://img.shields.io/github/license/mikkun/AWKTC)

**A**WKTC is **W**orkable **K**lutzy **T**ime-wasting **C**ommand
> :joystick: **A**WKTC is **W**orkable **K**lutzy **T**ime-wasting **C**ommand
Description
-----------
## Description

**AWKTC** is a Tetris-like tile-matching puzzle game written in AWK.

Requirements
------------
![AWKTC screenshot (width: 12)](./md-images/screenshot-width12.png)

* `gawk` or `awk` (except `mawk`)
* [GNU coreutils](https://www.gnu.org/software/coreutils/) or equivalent BSD command (`dd`, `echo`, `sleep`, `stty`)
## Requirements

Supported Platforms
-------------------
- `gawk` or `nawk`
- [GNU coreutils](https://www.gnu.org/software/coreutils/) or equivalent BSD command (`dd`, `echo`, `sleep`, `stty`)

**AWKTC** has been tested in the following platforms:
## Installation

* Debian GNU/Linux 10
* FreeBSD 12.1-RELEASE
```shell
git clone https://github.com/mikkun/AWKTC.git
```

How to Play
-----------
## How to Play

### Running the Game ###
### Running the Game

```console
$ cd /path/to/AWKTC
$ ./awktc.awk
```shell
cd /path/to/AWKTC
./awktc.awk
```

### Controls ###
### Controls

* <kbd>a</kbd>: Move left
* <kbd>d</kbd>: Move right
* <kbd>k</kbd>: Rotate left
* <kbd>l</kbd>: Rotate right
* <kbd>s</kbd>: Fall faster
* <kbd>p</kbd>: Pause
* <kbd>q</kbd>: Quit
- <kbd>a</kbd>: Move left
- <kbd>d</kbd>: Move right
- <kbd>k</kbd>: Rotate left
- <kbd>l</kbd>: Rotate right
- <kbd>s</kbd>: Fall faster
- <kbd>p</kbd>: Pause
- <kbd>q</kbd>: Quit

### Beneficial Item ###
### Beneficial Item

* ![Black piece](./md-images/special_piece.png) - __Special Piece__ - Destroys horizontal lines even if they have gaps of blocks.
- ![Black piece](./md-images/special_piece.png) - **Special Piece** - Destroys horizontal lines even if they have gaps of blocks.

### All Clear Bonus ###
### All Clear Bonus

If you clear all the blocks, then you will get an "All Clear Bonus".

Changing the Playfield Width
----------------------------
## Changing the Playfield Width

You can change the playfield width between 4 and 24 cells. By default, the playfield width is 12 cells.

### Example Minimum Width ###
### Example Minimum Width

```console
$ ./awktc.awk 4
```shell
./awktc.awk 4
```

![Screenshot (width: 4)](./md-images/screenshot-width04.png)
![AWKTC screenshot (width: 4)](./md-images/screenshot-width04.png)

### Example Maximum Width ###
### Example Maximum Width

```console
$ ./awktc.awk 24
```shell
./awktc.awk 24
```

![Screenshot (width: 24)](./md-images/screenshot-width24.png)
![AWKTC screenshot (width: 24)](./md-images/screenshot-width24.png)

Installation
------------
## License

```console
$ git clone https://github.com/mikkun/AWKTC.git
```
[MIT License](./LICENSE)

Author
------
## Author

[KUSANAGI Mitsuhisa](https://github.com/mikkun)

License
-------

[MIT License](./LICENSE)
Loading

0 comments on commit c46d901

Please sign in to comment.