Skip to content

A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)

Notifications You must be signed in to change notification settings

Extraltodeus/Pytris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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 :

About

A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages