SDL::Tutorial::Tetris -- Let's Make Tetris
Tutorials
All games are a while loop. So we will have something like this.
package Tetris; sub run_game_fun_times { while(1) { #game logic here } }
You need more code you say? Ok well, a game does two things more.
A game essentially move objects (boxes, monsters so on) in time.
In SDL time is measured in ticks.
--Kartik