class Tetryst::Board
- Tetryst::Board
- Reference
- Object
Defined in:
tetryst/board.crConstant Summary
-
BLOCK_SIZE =
((Game::SCREEN_HEIGHT / GRID_HEIGHT) / 8).to_i * 8
-
in pixels
-
BLOCKED_TIME =
0.2
-
DROP_TIME =
0.5
-
in seconds
-
GRID_HEIGHT =
22
-
GRID_WIDTH =
10
-
in blocks
-
KEY_DOWN_INITIAL_TIME =
0.2
-
KEY_DOWN_SOFT_DROP_RATE =
2
-
KEY_DOWN_TIME =
0.06
-
SCORE_FOUR_LINES =
800
-
SCORE_HARD_DROP =
2
-
SCORE_ONE_LINE =
100
-
SCORE_SOFT_DROP =
1
-
score
-
SCORE_THREE_LINES =
500
-
SCORE_TWO_LINES =
300
Constructors
Class Method Summary
Instance Method Summary
- #cells : Array(Array(Cell))
- #clear_lines
- #draw
- #drop_time_from_level
- #game_over? : Bool
- #game_over_collision?(tetromino)
- #level : Int32
- #lines_cleared : Int32
- #new_level
- #new_tetromino
- #next_tetrominos : Array(Shape)
- #place(tetromino : Tetromino)
- #score : Int32
- #set_cell(grid_x, grid_y, shape : Shape)
- #update
- #update_tetromino
- #x : Int32
- #y : Int32