Skip to content

goserg/Tetris_pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

Python & pygame recommended XBOX 360 For Windows (Controller)

v0.7 screenshotv0.7 screenshot

pygame 1.9.6 required

Installation

pip install -r requirements.txt

Controls

=keyboard(gamepad)=
Move left - Arrow left (D-pad left)
Move right - Arrow right (D-pad right)
Move down - Arrow down (D-pad down)
Rotate clockwise - Arrow up/X (A)
Menu enter - Enter (A)
Menu back - Escape (B)
Pause - Escape (Start)

console arguments

usage: main.py [-h] [-sc] [-f] [-g] [-sh] [-wp] [-c]

optional arguments:

Argument Description
-h, --help show this help message and exit
-sc , --scale scale of the game window (default: 2)
-f , --flat toggling 3D-ish graphics off (default: False)
-g , --grid toggle grid on (default: False)
-sh , --shade toggle shade on (default: True)
-wp , --wallpush toggle grid on (default: True)
-c , --colors toggle standard tetris style colors on (default: False)