SDL::Tutorial::MoP::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::MoP::Controller
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.