summaryrefslogtreecommitdiff
path: root/frontend/2d_part_3.html
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/2d_part_3.html')
-rw-r--r--frontend/2d_part_3.html60
1 files changed, 41 insertions, 19 deletions
diff --git a/frontend/2d_part_3.html b/frontend/2d_part_3.html
index ae00c9b..6e46843 100644
--- a/frontend/2d_part_3.html
+++ b/frontend/2d_part_3.html
@@ -7,13 +7,15 @@
<link rel="stylesheet" href="/../index.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,300" rel="stylesheet" type="text/css">
<title>Physics for Games</title>
+ <link rel="shortcut icon" href="favicon/favicon.ico" type="image/x-icon">
<script src="_rigidbody/vec2.js"></script>
<script src="_rigidbody/mat4.js"></script>
<script src="_rigidbody/shader.js"></script>
<script src="_rigidbody/circle.js"></script>
<script src="_rigidbody/program_common.js"></script>
- <script src="_rigidbody/rigidbody_3.js"></script>
+ <script src="_rigidbody/rigidbody_3a.js"></script>
+ <script src="_rigidbody/rigidbody_3b.js"></script>
</head>
<body>
<header>
@@ -26,26 +28,46 @@
<a href="2d_part_2.html">2D - Rotational Forces</a>
<a href="2d_part_3.html">2D - Collision Forces</a>
</nav>
- <section id="collisions">
- <h2>Part 3: Collisions</h2>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- </p>
- <div id="rigidbody_3" class="opengl_canvas_container">
- <canvas width="640" height="480"></canvas>
- <div class="opengl_canvas_sidebar">
- <div class="slider_container">
- <label for="time_step_slider">Time Step</label>
- <input type="range" min="0.1" max="1.0" value="1.0" step="0.1" class="slider" id="time_step_slider">
+ <section>
+ <article>
+ <h2>Part 3: Collisions</h2>
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+ </p>
+ <div id="rigidbody_3a" class="opengl_canvas_container">
+ <canvas width="640" height="480"></canvas>
+ <div class="opengl_canvas_sidebar">
+ <div class="slider_container">
+ <label for="time_step_slider">Time Step</label>
+ <input type="range" min="0.1" max="1.0" value="1.0" step="0.1" class="slider" id="time_step_slider">
+ </div>
</div>
+ <button class="play_button">
+ Play
+ </button>
+ <button class="stop_button">
+ Stop
+ </button>
</div>
- <button class="play_button">
- Play
- </button>
- <button class="stop_button">
- Stop
- </button>
- </div>
+ </article>
+ <article>
+ <h2>Fun Example: Plinko Game</h2>
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+ </p>
+ <div id="rigidbody_3b" class="opengl_canvas_container">
+ <canvas width="640" height="480"></canvas>
+ <div class="opengl_canvas_sidebar">
+
+ </div>
+ <button class="play_button">
+ Play
+ </button>
+ <button class="stop_button">
+ Stop
+ </button>
+ </div>
+ </article>
</section>
</main>
</body>