mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-12-31 13:42:40 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b69cb4d9ff | ||
|
|
f7b0bc8da4 | ||
|
|
8298aef8b4 | ||
|
|
e9ee2e31fb | ||
|
|
3299732976 | ||
|
|
1631ff8894 | ||
|
|
ac2e568a26 | ||
|
|
714c145316 | ||
|
|
782bf70531 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -162,3 +162,4 @@ debug
|
|||||||
.logs/
|
.logs/
|
||||||
checkpoints
|
checkpoints
|
||||||
assets/highscore
|
assets/highscore
|
||||||
|
typst/*.pdf
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
BIN
typst/main.pdf
BIN
typst/main.pdf
Binary file not shown.
@ -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.
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user