SDL::Tutorial::Tetris::Controller::CPUSpinner
The CPUSpinner controller is the heartbeat of the game.
CPUSpinner
The game proceeds while keep_going is set. When CPUSpinner receives a Quit event, keep_going is set to zero.
keep_going
Quit
init simply initializes keep_going, so the game will start.
init
Produces a Tick event while keep_going is set.
Tick
If this controller receives a Quit event, keep_going is set to zero, stopping the game.
SDL::Tutorial::Tetris::Controller
To install SDL::Tutorial::Tetris, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL::Tutorial::Tetris
CPAN shell
perl -MCPAN -e shell install SDL::Tutorial::Tetris
For more information on module installation, please visit the detailed CPAN module installation guide.