tetris-pygame 0.0.1 documentation
modules
|
index
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
Z
A
add_score() (tetris.game.Game method)
B
BG_COLOR (tetris.settings.Settings attribute)
C
CELL_BORDER_COLOR (tetris.settings.Settings attribute)
check_cell_available_for_rotation() (tetris.tetrominos.Tetromino method)
check_down() (tetris.tetrominos.Tetromino method)
CHECK_DOWN_POS (tetris.tests.test_tetrominos.TestTetromino attribute)
check_events() (tetris.controls.Controls method)
(tetris.game.Game method)
(tetris.leaderboard.Leaderboard method)
(tetris.menu.Menu method)
(tetris.rules.Rules method)
check_go_back_btn_hover() (tetris.settings.Settings method)
check_hover() (tetris.game.Game method)
(tetris.menu.Menu method)
CHECK_KEYS_PRESSED_MOVEMENT_DOWN_TIME (tetris.settings.Settings attribute)
CHECK_KEYS_PRESSED_MOVEMENT_SIDE_TIME (tetris.settings.Settings attribute)
CHECK_KEYS_PRESSED_ROTATION_TIME (tetris.settings.Settings attribute)
check_line() (tetris.game.Game method)
CHECK_LINE_FALSE_GRID (tetris.tests.test_game.TestGame attribute)
CHECK_LINE_TRUE_GRID (tetris.tests.test_game.TestGame attribute)
check_lvl_up() (tetris.game.Game method)
check_move_left() (tetris.tetrominos.Tetromino method)
check_move_right() (tetris.tetrominos.Tetromino method)
check_pressed_down_movement() (tetris.game.Game method)
check_pressed_rotate() (tetris.game.Game method)
check_pressed_side_movement() (tetris.game.Game method)
check_tetromino_above_top() (tetris.game.Game method)
CHECK_TETROMINO_GRID (tetris.tests.test_game.TestGame attribute)
check_touch() (tetris.tetrominos.Tetromino method)
choice (tetris.menu.Menu attribute)
clear() (tetris.tetrominos.Tetromino method)
CLEAR_GRID (tetris.tests.test_game.TestGame attribute)
CLEAR_NEXT_TETROMINO_GRID (tetris.tests.test_game.TestGame attribute)
clear_next_tetromino_window() (tetris.tetrominos.Tetromino method)
Controls (class in tetris.controls)
CONTROLS_CHOICE (tetris.menu.Menu attribute)
CONTROLS_ONE_KEY_X (tetris.settings.Settings attribute)
CONTROLS_TEXTS (tetris.settings.Settings attribute)
CONTROLS_TEXTS_X (tetris.settings.Settings attribute)
CONTROLS_TEXTS_Y (tetris.settings.Settings attribute)
CONTROLS_TITLE (tetris.settings.Settings attribute)
CONTROLS_TITLE_Y (tetris.settings.Settings attribute)
CONTROLS_TWO_KEYS_X (tetris.settings.Settings attribute)
create_buttons() (tetris.menu.Menu method)
create_controls() (tetris.controls.Controls method)
create_db() (in module tetris.db.scripts.migration)
create_draw_row() (tetris.leaderboard.Leaderboard method)
create_draw_text() (tetris.rules.Rules method)
create_end_of_game_btns() (tetris.settings.Settings method)
create_game_windows() (tetris.game.Game method)
create_get_username_text() (tetris.settings.Settings method)
create_go_back_btn() (tetris.settings.Settings method)
create_header() (tetris.leaderboard.Leaderboard method)
create_leaderboard() (tetris.leaderboard.Leaderboard method)
create_title() (tetris.controls.Controls method)
(tetris.leaderboard.Leaderboard method)
(tetris.rules.Rules method)
create_titles_properties() (tetris.settings.Settings method)
D
db_insert_user() (tetris.game.Game method)
delete_line() (tetris.game.Game method)
DELETE_LINE_AFTER_GRID (tetris.tests.test_game.TestGame attribute)
DELETE_LINE_BEFORE_GRID (tetris.tests.test_game.TestGame attribute)
DoesNotExist (tetris.db.models.user.User attribute)
draw_buttons() (tetris.menu.Menu method)
draw_controls() (tetris.controls.Controls method)
draw_end_of_game_btns() (tetris.game.Game method)
draw_game_window() (tetris.game.Game method)
draw_go_back_btn() (tetris.settings.Settings method)
draw_grid() (tetris.game.Game method)
draw_header() (tetris.leaderboard.Leaderboard method)
draw_lvl() (tetris.game.Game method)
draw_lvl_title() (tetris.game.Game method)
draw_lvl_window() (tetris.game.Game method)
draw_next_tetromino() (tetris.game.Game method)
draw_next_tetromino_title() (tetris.game.Game method)
draw_next_tetromino_window() (tetris.game.Game method)
draw_score() (tetris.game.Game method)
draw_score_title() (tetris.game.Game method)
draw_score_window() (tetris.game.Game method)
draw_tetris_title() (tetris.settings.Settings method)
draw_title() (tetris.controls.Controls method)
(tetris.leaderboard.Leaderboard method)
(tetris.rules.Rules method)
E
EMPTY_CELL_TAG (tetris.settings.Settings attribute)
END_OF_BTNS_COLOR (tetris.settings.Settings attribute)
END_OF_GAME_BTNS_HEIGHT (tetris.settings.Settings attribute)
END_OF_GAME_BTNS_WIDTH (tetris.settings.Settings attribute)
END_OF_GAME_BTNS_Y (tetris.settings.Settings attribute)
END_OF_GAME_MENU_BTN_TEXT (tetris.settings.Settings attribute)
END_OF_GAME_MENU_BTN_X (tetris.settings.Settings attribute)
END_OF_GAME_NEXT_BTN_TEXT (tetris.settings.Settings attribute)
END_OF_GAME_NEXT_BTN_X (tetris.settings.Settings attribute)
F
FONT_COLOR (tetris.settings.Settings attribute)
FONT_NAME (tetris.settings.Settings attribute)
FONT_SIZE_CONTROLS (tetris.settings.Settings attribute)
FONT_SIZE_CONTROLS_TITLE (tetris.settings.Settings attribute)
FONT_SIZE_END_OF_GAME_BTNS (tetris.settings.Settings attribute)
FONT_SIZE_GET_USERNAME (tetris.settings.Settings attribute)
FONT_SIZE_INFO_TITLES (tetris.settings.Settings attribute)
FONT_SIZE_LEADERBOARD (tetris.settings.Settings attribute)
FONT_SIZE_LEADERBOARD_HEADER (tetris.settings.Settings attribute)
FONT_SIZE_LEADERBOARD_TITLE (tetris.settings.Settings attribute)
FONT_SIZE_RULES (tetris.settings.Settings attribute)
FONT_SIZE_RULES_TITLE (tetris.settings.Settings attribute)
FONT_SIZE_SCORE_LVL (tetris.settings.Settings attribute)
FONT_SIZE_TETRIS_TITLE (tetris.settings.Settings attribute)
FPS (tetris.settings.Settings attribute)
G
Game (class in tetris.game)
GAME_BORDER_COLOR (tetris.settings.Settings attribute)
GAME_CHOICE (tetris.menu.Menu attribute)
game_window (tetris.game.Game attribute)
GAME_WINDOW_HEIGHT (tetris.settings.Settings attribute)
game_window_rect (tetris.game.Game attribute)
GAME_WINDOW_WIDTH (tetris.settings.Settings attribute)
games_played (tetris.db.models.user.User attribute)
get_username() (tetris.game.Game method)
GET_USERNAME_INPUT_BOX_HEIGHT (tetris.settings.Settings attribute)
GET_USERNAME_INPUT_BOX_WIDTH (tetris.settings.Settings attribute)
GET_USERNAME_INPUT_BOX_X (tetris.settings.Settings attribute)
GET_USERNAME_INPUT_BOX_Y (tetris.settings.Settings attribute)
GET_USERNAME_TEXT (tetris.settings.Settings attribute)
GO_BACK_BTN_X (tetris.settings.Settings attribute)
GO_BACK_BTN_Y (tetris.settings.Settings attribute)
GO_BACK_ICON_FILENAME (tetris.settings.Settings attribute)
grid (tetris.game.Game attribute)
GRID_CELL_HEIGHT (tetris.settings.Settings attribute)
GRID_CELL_WIDTH (tetris.settings.Settings attribute)
GRID_N_OF_COL (tetris.settings.Settings attribute)
GRID_N_OF_ROWS (tetris.settings.Settings attribute)
H
hard_drop() (tetris.tetrominos.Tetromino method)
HARD_DROP_KEY_FILENAME (tetris.settings.Settings attribute)
HARD_DROP_LOOP_SLEEP_TIME (tetris.settings.Settings attribute)
highest_score (tetris.db.models.user.User attribute)
I
I (tetris.settings.Settings attribute)
id (tetris.db.models.user.User attribute)
INFO_WINDOW_HEIGHT (tetris.settings.Settings attribute)
INFO_WINDOW_WIDTH (tetris.settings.Settings attribute)
init_properties() (tetris.game.Game method)
Itetromino (class in tetris.tetrominos)
J
J (tetris.settings.Settings attribute)
Jtetromino (class in tetris.tetrominos)
L
L (tetris.settings.Settings attribute)
LAST_COL_IDX (tetris.tetrominos.Tetromino attribute)
Leaderboard (class in tetris.leaderboard)
LEADERBOARD_BORDER_COLOR (tetris.settings.Settings attribute)
LEADERBOARD_BORDER_WIDTH (tetris.settings.Settings attribute)
LEADERBOARD_BORDER_X (tetris.settings.Settings attribute)
LEADERBOARD_CHOICE (tetris.menu.Menu attribute)
LEADERBOARD_FIRST_ROW_Y (tetris.settings.Settings attribute)
LEADERBOARD_HEADER_BORDER_WIDTH (tetris.settings.Settings attribute)
LEADERBOARD_HEADER_HEIGHT (tetris.settings.Settings attribute)
LEADERBOARD_HEADER_TEXT_Y (tetris.settings.Settings attribute)
LEADERBOARD_HEADER_Y (tetris.settings.Settings attribute)
LEADERBOARD_HEADERS_TEXTS (tetris.settings.Settings attribute)
LEADERBOARD_ROW_HEIGHT (tetris.settings.Settings attribute)
LEADERBOARD_TEXT_WIDTH (tetris.settings.Settings attribute)
LEADERBOARD_TEXT_X (tetris.settings.Settings attribute)
LEADERBOARD_TITLE (tetris.settings.Settings attribute)
LEADERBOARD_TITLE_Y (tetris.settings.Settings attribute)
LEADERBOARD_WIDTH (tetris.settings.Settings attribute)
LEFT_EDGE_POS (tetris.tests.test_tetrominos.TestTetromino attribute)
lines_cleared (tetris.game.Game attribute)
Ltetromino (class in tetris.tetrominos)
lvl (tetris.db.models.user.User attribute)
(tetris.game.Game attribute)
LVL_TITLE (tetris.settings.Settings attribute)
LVL_TITLE_Y (tetris.settings.Settings attribute)
lvl_up() (tetris.game.Game method)
lvl_window (tetris.game.Game attribute)
lvl_window_rect (tetris.game.Game attribute)
LVL_WINDOW_X (tetris.settings.Settings attribute)
LVL_WINDOW_Y (tetris.settings.Settings attribute)
M
main() (in module tetris.main)
(tetris.controls.Controls method)
(tetris.game.Game method)
(tetris.leaderboard.Leaderboard method)
(tetris.menu.Menu method)
(tetris.rules.Rules method)
Menu (class in tetris.menu)
MENU_BTN_GAP (tetris.settings.Settings attribute)
MENU_BTNS_FIRST_Y (tetris.settings.Settings attribute)
MENU_BTNS_HEIGHT (tetris.settings.Settings attribute)
MENU_CONTROLS_TEXT (tetris.settings.Settings attribute)
MENU_LEADERBOARD_TEXT (tetris.settings.Settings attribute)
MENU_QUIT_TEXT (tetris.settings.Settings attribute)
MENU_RULES_TEXT (tetris.settings.Settings attribute)
MENU_START_GAME_TEXT (tetris.settings.Settings attribute)
MIGRATION_COMMAND (tetris.settings.Settings attribute)
module
tetris
tetris.controls
tetris.db
tetris.db.models
tetris.db.models.get_base_dir
tetris.db.models.user
tetris.db.scripts
tetris.db.scripts.get_base_dir
tetris.db.scripts.migration
tetris.db.settings
tetris.game
tetris.leaderboard
tetris.main
tetris.menu
tetris.rules
tetris.settings
tetris.tests
tetris.tests.test_game
tetris.tests.test_menu
tetris.tests.test_tetrominos
tetris.tetrominos
move_down() (tetris.tetrominos.Tetromino method)
MOVE_DOWN_ACCELERATION_PER_LVL (tetris.settings.Settings attribute)
move_down_key_pressed (tetris.game.Game attribute)
MOVE_DOWN_START_TIME (tetris.settings.Settings attribute)
move_left() (tetris.tetrominos.Tetromino method)
move_right() (tetris.tetrominos.Tetromino method)
MOVING_DOWN_KEY_1_FILENAME (tetris.settings.Settings attribute)
MOVING_DOWN_KEY_2_FILENAME (tetris.settings.Settings attribute)
MOVING_LEFT_KEY_1_FILENAME (tetris.settings.Settings attribute)
MOVING_LEFT_KEY_2_FILENAME (tetris.settings.Settings attribute)
MOVING_RIGHT_KEY_1_FILENAME (tetris.settings.Settings attribute)
MOVING_RIGHT_KEY_2_FILENAME (tetris.settings.Settings attribute)
N
N_OF_LINES_TO_LVL_UP (tetris.settings.Settings attribute)
next_game() (tetris.game.Game method)
NEXT_TETROMINO_CELL_HEIGHT (tetris.settings.Settings attribute)
NEXT_TETROMINO_CELL_WIDTH (tetris.settings.Settings attribute)
next_tetromino_grid (tetris.game.Game attribute)
NEXT_TETROMINO_GRID_POS (tetris.tetrominos.Itetromino attribute)
(tetris.tetrominos.Jtetromino attribute)
(tetris.tetrominos.Ltetromino attribute)
(tetris.tetrominos.Otetromino attribute)
(tetris.tetrominos.Stetromino attribute)
(tetris.tetrominos.Tetromino attribute)
(tetris.tetrominos.Ttetromino attribute)
(tetris.tetrominos.Ztetromino attribute)
NEXT_TETROMINO_N_OF_COL (tetris.settings.Settings attribute)
NEXT_TETROMINO_N_OF_ROWS (tetris.settings.Settings attribute)
NEXT_TETROMINO_TITLE (tetris.settings.Settings attribute)
next_tetromino_window (tetris.game.Game attribute)
next_tetromino_window_rect (tetris.game.Game attribute)
NEXT_WINDOW_X (tetris.settings.Settings attribute)
NEXT_WINDOW_Y (tetris.settings.Settings attribute)
O
O (tetris.settings.Settings attribute)
on_save_handler() (in module tetris.db.models.user)
Otetromino (class in tetris.tetrominos)
P
POINTS_FOR_HARD_DROP (tetris.settings.Settings attribute)
POINTS_FOR_SOFT_DROP (tetris.settings.Settings attribute)
POINTS_PER_LINES (tetris.settings.Settings attribute)
pos (tetris.tetrominos.Tetromino attribute)
pos0() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Jtetromino method)
(tetris.tetrominos.Ltetromino method)
(tetris.tetrominos.Stetromino method)
(tetris.tetrominos.Tetromino method)
(tetris.tetrominos.Ttetromino method)
(tetris.tetrominos.Ztetromino method)
pos1() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Jtetromino method)
(tetris.tetrominos.Ltetromino method)
(tetris.tetrominos.Stetromino method)
(tetris.tetrominos.Tetromino method)
(tetris.tetrominos.Ttetromino method)
(tetris.tetrominos.Ztetromino method)
pos2() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Jtetromino method)
(tetris.tetrominos.Ltetromino method)
(tetris.tetrominos.Stetromino method)
(tetris.tetrominos.Tetromino method)
(tetris.tetrominos.Ttetromino method)
(tetris.tetrominos.Ztetromino method)
pos3() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Jtetromino method)
(tetris.tetrominos.Ltetromino method)
(tetris.tetrominos.Stetromino method)
(tetris.tetrominos.Tetromino method)
(tetris.tetrominos.Ttetromino method)
(tetris.tetrominos.Ztetromino method)
print_grid() (tetris.game.Game method)
put_on_next_tetromino_window() (tetris.tetrominos.Tetromino method)
Q
QUIT_CHOICE (tetris.menu.Menu attribute)
R
random_tetromino() (tetris.game.Game method)
reset_db() (in module tetris.db.scripts.migration)
RIGHT_EDGE_POS (tetris.tests.test_tetrominos.TestTetromino attribute)
rotate_left() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Otetromino method)
(tetris.tetrominos.Tetromino method)
ROTATE_LEFT_KEY_FILENAME (tetris.settings.Settings attribute)
rotate_right() (tetris.tetrominos.Itetromino method)
(tetris.tetrominos.Otetromino method)
(tetris.tetrominos.Tetromino method)
ROTATE_RIGHT_KEY_1_FILENAME (tetris.settings.Settings attribute)
ROTATE_RIGHT_KEY_2_FILENAME (tetris.settings.Settings attribute)
Rules (class in tetris.rules)
RULES_CHOICE (tetris.menu.Menu attribute)
RULES_LINE_HEIGHT (tetris.settings.Settings attribute)
RULES_TEXT_Y (tetris.settings.Settings attribute)
RULES_TITLE (tetris.settings.Settings attribute)
RULES_TITLE_Y (tetris.settings.Settings attribute)
S
S (tetris.settings.Settings attribute)
score (tetris.game.Game attribute)
SCORE_NEXT_TITLE_Y (tetris.settings.Settings attribute)
SCORE_TITLE (tetris.settings.Settings attribute)
score_window (tetris.game.Game attribute)
score_window_rect (tetris.game.Game attribute)
SCORE_WINDOW_X (tetris.settings.Settings attribute)
SCORE_WINDOW_Y (tetris.settings.Settings attribute)
SCREEN_HEIGHT (tetris.settings.Settings attribute)
SCREEN_WIDTH (tetris.settings.Settings attribute)
SECOND_BG_COLOR (tetris.settings.Settings attribute)
Settings (class in tetris.settings)
setUp() (tetris.tests.test_menu.TestMenu method)
setUpClass() (tetris.tests.test_game.TestGame class method)
(tetris.tests.test_tetrominos.TestTetromino class method)
space_down (tetris.game.Game attribute)
spawn() (tetris.tetrominos.Tetromino method)
SPAWN_POS (tetris.tetrominos.Itetromino attribute)
(tetris.tetrominos.Jtetromino attribute)
(tetris.tetrominos.Ltetromino attribute)
(tetris.tetrominos.Otetromino attribute)
(tetris.tetrominos.Stetromino attribute)
(tetris.tetrominos.Tetromino attribute)
(tetris.tetrominos.Ttetromino attribute)
(tetris.tetrominos.Ztetromino attribute)
Stetromino (class in tetris.tetrominos)
T
T (tetris.settings.Settings attribute)
TAG (tetris.tetrominos.Itetromino attribute)
(tetris.tetrominos.Jtetromino attribute)
(tetris.tetrominos.Ltetromino attribute)
(tetris.tetrominos.Otetromino attribute)
(tetris.tetrominos.Stetromino attribute)
(tetris.tetrominos.Tetromino attribute)
(tetris.tetrominos.Ttetromino attribute)
(tetris.tetrominos.Ztetromino attribute)
test_check_down() (tetris.tests.test_tetrominos.TestTetromino method)
test_check_line() (tetris.tests.test_game.TestGame method)
test_check_move_left() (tetris.tests.test_tetrominos.TestTetromino method)
test_check_move_right() (tetris.tests.test_tetrominos.TestTetromino method)
test_check_tetromino_above_top() (tetris.tests.test_game.TestGame method)
test_check_touch() (tetris.tests.test_tetrominos.TestTetromino method)
test_delete_line() (tetris.tests.test_game.TestGame method)
test_init_properties() (tetris.tests.test_game.TestGame method)
test_main() (tetris.tests.test_menu.TestMenu method)
test_random_tetromino() (tetris.tests.test_game.TestGame method)
TestGame (class in tetris.tests.test_game)
TestMenu (class in tetris.tests.test_menu)
TestTetromino (class in tetris.tests.test_tetrominos)
tetris
module
tetris.controls
module
tetris.db
module
tetris.db.models
module
tetris.db.models.get_base_dir
module
tetris.db.models.user
module
tetris.db.scripts
module
tetris.db.scripts.get_base_dir
module
tetris.db.scripts.migration
module
tetris.db.settings
module
tetris.game
module
tetris.leaderboard
module
tetris.main
module
tetris.menu
module
tetris.rules
module
tetris.settings
module
tetris.tests
module
tetris.tests.test_game
module
tetris.tests.test_menu
module
tetris.tests.test_tetrominos
module
tetris.tetrominos
module
TETRIS_TITLE (tetris.settings.Settings attribute)
TETRIS_TITLE_Y (tetris.settings.Settings attribute)
Tetromino (class in tetris.tetrominos)
TEXT (tetris.rules.Rules attribute)
Ttetromino (class in tetris.tetrominos)
U
update_on_grid() (tetris.tetrominos.Tetromino method)
User (class in tetris.db.models.user)
user_exists() (in module tetris.db.models.user)
username (tetris.db.models.user.User attribute)
(tetris.game.Game attribute)
Z
Z (tetris.settings.Settings attribute)
Ztetromino (class in tetris.tetrominos)
Table of Contents
tetris package
Search