Jump to content

View more

A different way

4: Adsense

Game loops

Game loops

render everything, process input, and update everything. that's what games do. this leads to a basic loop like:

while ! quitgame

the order of the calls:
there are only two possible orders for a game loop:
1. input - update - render
2. input - render - update
all other orderings are simply out of ph...