Game actions that take multiple frames to complete
- by CantTetris
I've never really done much game programming before, pretty straightforward question.
Imagine I'm building a Tetris game, with the main loop looking something like this.
for every frame
handle input
if it's time to make the current block move down a row
if we can move the block
move the block
else
…