Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
tetryst
master
Tetryst
Board
Cell
Game
Label
Screen
Shape
Status
Tetromino
Timer
Built with Crystal 1.9.2
2023-10-07 18:24:49 UTC
class
Tetryst::Screen
Tetryst::Screen
Reference
Object
Defined in:
tetryst/screen.cr
Constant Summary
BOARD_BORDER_WIDTH
=
10
LINES_PER_LEVEL
=
10
Constructors
.new
(initial_level =
0
)
Instance Method Summary
#draw
#pause
#paused?
: Bool
#unpause
#update
#update_info
Constructor Detail
def self.
new
(initial_level =
0
)
#
[
View source
]
Instance Method Detail
def
draw
#
[
View source
]
def
pause
#
[
View source
]
def
paused?
: Bool
#
[
View source
]
def
unpause
#
[
View source
]
def
update
#
[
View source
]
def
update_info
#
[
View source
]