3 <h3 id="TOP">Index</h3>
5 <ul><li><a href="#NAME">NAME</a>
6 <ul><li><a href="#CATEGORY">CATEGORY</a></li>
7 <li><a href="#The_Overall_view">The Overall view</a>
8 <ul><li><a href="#The_Game_Loop">The Game Loop</a></li>
9 <li><a href="#The_Game_Logic">The Game Logic</a>
18 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
19 <div id="NAME_CONTENT">
20 <p>Let's Make Tetris</p>
23 <h2 id="CATEGORY">CATEGORY</h2>
24 <div id="CATEGORY_CONTENT">
28 <h2 id="The_Overall_view">The Overall view</h2>
29 <div id="The_Overall_view_CONTENT">
30 <p>All games are a while loop. So we will have something like this.</p>
33 <h3 id="The_Game_Loop">The Game Loop</h3>
34 <div id="The_Game_Loop_CONTENT">
37 sub run_game_fun_times
46 <p>You need more code you say? Ok well, a game does two things more. </p>
49 <h3 id="The_Game_Logic">The Game Logic</h3>
50 <div id="The_Game_Logic_CONTENT">
54 <p>A game essentially move objects (boxes, monsters so on) in time.</p>
59 <p>In SDL time is measured in ticks.</p>
65 <dt>Draw Everything</dt>