https://github.com/extraltodeus/pytris
A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)
https://github.com/extraltodeus/pytris
Last synced: about 1 year ago
JSON representation
A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)
- Host: GitHub
- URL: https://github.com/extraltodeus/pytris
- Owner: Extraltodeus
- Created: 2020-02-18T15:22:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T17:53:45.000Z (over 6 years ago)
- Last Synced: 2025-02-09T09:44:28.615Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pytris
A tetris I made some time ago. It has all the functionnalities of a modern Tetris
## Dependancies :
pygame : pip install pygame
numpy : pip install numpy
## How to start it :
python3 pytris.py
or on Windows you can simply double-click on pytris.py
## Controls :
A : Swap current tetromino with reserve
S : Rotate left
D : Rotate right
W : Rotate 180°
R : Reset game
Arrow Up : Instant fall
Arrow Down : Fast fall
Arrow Left/Right : Left/Right
Space : Pause/Unpause
Escape : Quit
## Additional info :
The tetris.py file contains the Tetris class, which could be used to render a Tetris game in any way you want.
The pytris.py file is a quickly done script using pygame that uses this class.
## A screenshot :
