Compare commits

..

No commits in common. "main" and "v0.1.2" have entirely different histories.
main ... v0.1.2

6 changed files with 14 additions and 15 deletions

1
.gitignore vendored
View File

@ -162,4 +162,3 @@ 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 -e . pip install .
``` ```
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. - `pause`: Defines the keys to pause the game. Currently a work in progress (WIP[^WIP]).
- `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[^WIP]). - `hold`: Defines the keys to hold the tetromino (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.3" version = "0.1.2"
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"] pause = ["escape", "F1"] # WIP
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 8"] drop = ["space", "keypad 5"]
[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 -e . pip install .
``` ```
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. / `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>).
/ `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 #footnote[WIP (Work In Progress) -- nepabeigts darbs: darbs vai produkts, kas ir sākts, bet nav pabeigts vai gatavs.]<WIP>). / `hold`: definē taustiņu(-s), lai uzglabātu tetromino (WIP @WIP).
/ `drop`: definē taustiņ(-s), lai nekavējoties nomestu tetromino. / `drop`: definē taustiņ(-s), lai nekavējoties nomestu tetromino.
]) ])