Compare commits

...

9 Commits
v0.1.2 ... main

Author SHA1 Message Date
github-actions[bot]
b69cb4d9ff chore(build): auto-build pdf 2024-01-17 12:32:24 +00:00
Kristofers Solo
f7b0bc8da4 fix: typo 2024-01-17 14:31:57 +02:00
Kristofers Solo
8298aef8b4 docs: update install instructions 2024-01-17 14:26:05 +02:00
github-actions[bot]
e9ee2e31fb chore(build): auto-build pdf 2024-01-16 21:53:11 +00:00
Kristofers Solo
3299732976 docs: remove WIP from pdf 2024-01-16 23:50:22 +02:00
Kristofers Solo
1631ff8894 chore: bump up the version 2024-01-16 23:46:59 +02:00
Kristofers Solo
ac2e568a26 docs: remove WIP
docs: remove WIP from readme
2024-01-16 20:55:29 +02:00
github-actions[bot]
714c145316 chore(build): auto-build pdf 2024-01-16 18:37:26 +00:00
Kristofers Solo
782bf70531 fix(game): drop key 2024-01-16 20:37:06 +02:00
6 changed files with 15 additions and 14 deletions

1
.gitignore vendored
View File

@ -162,3 +162,4 @@ debug
.logs/ .logs/
checkpoints checkpoints
assets/highscore assets/highscore
typst/*.pdf

View File

@ -40,7 +40,7 @@ cd Tetris
3. Install the required dependencies: 3. Install the required dependencies:
```bash ```bash
pip install . pip install -e .
``` ```
4. Run the game: 4. Run the game:
@ -54,7 +54,7 @@ python -m tetris
The `settings.toml` file is a configuration file for customizing various aspects of the game. The `settings.toml` file is a configuration file for customizing various aspects of the game.
### General Settings ### General Settings
- `pause`: Defines the keys to pause the game. Currently a work in progress (WIP[^WIP]). - `pause`: Defines the keys to pause the game. Currently a work in progress.
- `quit`: Defines the key(s) to quit the game. - `quit`: Defines the key(s) to quit the game.
- `colorscheme`: Specifies the color scheme for the game interface. Options include: - `colorscheme`: Specifies the color scheme for the game interface. Options include:
- `tokyonight-night` - `tokyonight-night`
@ -72,7 +72,7 @@ The `settings.toml` file is a configuration file for customizing various aspects
- `ccw (counter-clockwise)`: Defines the keys to rotate the tetromino in a counter-clockwise direction. - `ccw (counter-clockwise)`: Defines the keys to rotate the tetromino in a counter-clockwise direction.
### Action Settings ### Action Settings
- `hold`: Defines the keys to hold the tetromino (WIP). - `hold`: Defines the keys to hold the tetromino (WIP[^WIP]).
- `drop`: Defines the keys to instantly drop the tetromino. - `drop`: Defines the keys to instantly drop the tetromino.
### Volume Settings ### Volume Settings

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "tetris" name = "tetris"
version = "0.1.2" version = "0.1.3"
description = "Tetris game" description = "Tetris game"
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }] authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }]
readme = "README.md" readme = "README.md"

View File

@ -1,5 +1,5 @@
[General] [General]
pause = ["escape", "F1"] # WIP pause = ["escape", "F1"]
quit = ["q"] quit = ["q"]
colorscheme = "tokyonight-night" # tokyonight-night / tokyonight-storm / tokyonight-day / tokyonight-moon colorscheme = "tokyonight-night" # tokyonight-night / tokyonight-storm / tokyonight-day / tokyonight-moon
@ -11,16 +11,16 @@ down = ["down", "keypad 2"]
[Rotation] [Rotation]
cw = ["x", "up", "keypad 1", "keypad 5", "keypad 9"] # clockwise cw = ["x", "up", "keypad 1", "keypad 5", "keypad 9"] # clockwise
ccw = [ ccw = [
"left ctrl", "left ctrl",
"right ctrl", "right ctrl",
"z", "z",
"keypad 3", "keypad 3",
"keypad 7", "keypad 7",
] # counter-clockwise ] # counter-clockwise
[Action] [Action]
hold = ["left shift", "right shift", "c", "keypad 0"] # WIP hold = ["left shift", "right shift", "c", "keypad 0"] # WIP
drop = ["space", "keypad 5"] drop = ["space", "keypad 8"]
[Volume.Music] [Volume.Music]
enabled = true enabled = true

Binary file not shown.

View File

@ -99,7 +99,7 @@ cd Tetris
3. Instalējiet nepieciešamās atkarības: 3. Instalējiet nepieciešamās atkarības:
```bash ```bash
pip install . pip install -e .
``` ```
4. Palaidiet spēli: 4. Palaidiet spēli:
@ -116,7 +116,7 @@ python -m tetris
=== Vispārīgi iestatījumi === Vispārīgi iestatījumi
#par(first-line-indent: 0cm, [ #par(first-line-indent: 0cm, [
/ `pause`: definē taustiņu(-s), lai apturētu spēli (WIP #footnote[WIP (Work In Progress) -- nepabeigts darbs: darbs vai produkts, kas ir sākts, bet nav pabeigts vai gatavs.]<WIP>). / `pause`: definē taustiņu(-s), lai apturētu spēli.
/ `quit`: definē taustiņu(-s), lai izietu no spēles. / `quit`: definē taustiņu(-s), lai izietu no spēles.
/ `colorscheme`: norāda spēles saskarnes krāsu shēmu. Iespējas ietver: / `colorscheme`: norāda spēles saskarnes krāsu shēmu. Iespējas ietver:
- `tokyonight-day` - `tokyonight-day`
@ -140,7 +140,7 @@ python -m tetris
=== Papildus darbību iestatījumi === Papildus darbību iestatījumi
#par(first-line-indent: 0cm, [ #par(first-line-indent: 0cm, [
/ `hold`: definē taustiņu(-s), lai uzglabātu tetromino (WIP @WIP). / `hold`: definē taustiņu(-s), lai uzglabātu tetromino (WIP #footnote[WIP (Work In Progress) -- nepabeigts darbs: darbs vai produkts, kas ir sākts, bet nav pabeigts vai gatavs.]<WIP>).
/ `drop`: definē taustiņ(-s), lai nekavējoties nomestu tetromino. / `drop`: definē taustiņ(-s), lai nekavējoties nomestu tetromino.
]) ])