summaryrefslogtreecommitdiff
path: root/frontend/2d_part_2.html
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew.kosarek@vention.cc>2021-02-21 18:32:04 -0500
committerMatthew Kosarek <matthew.kosarek@vention.cc>2021-02-21 18:32:04 -0500
commitece2b67aa689aee0b881bac17a62c16e0469bc56 (patch)
treed99ac1bc32eea8687c06b28b90f15e08ba05d390 /frontend/2d_part_2.html
parentaee81cdf445c02032745f10a1904439e7eecaef7 (diff)
Proper support for favicons, rigid body intersections are no longer broken, palinko game
Diffstat (limited to 'frontend/2d_part_2.html')
-rw-r--r--frontend/2d_part_2.html71
1 files changed, 37 insertions, 34 deletions
diff --git a/frontend/2d_part_2.html b/frontend/2d_part_2.html
index 01a7767..845985c 100644
--- a/frontend/2d_part_2.html
+++ b/frontend/2d_part_2.html
@@ -7,6 +7,7 @@
<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>
@@ -26,41 +27,43 @@
<a href="2d_part_2.html">2D - Rotational Forces</a>
<a href="2d_part_3.html">2D - Collision Forces</a>
</nav>
- <section id="rotational-forces">
- <h2>Part 2: Rotational Forces</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_2" class="opengl_canvas_container">
- <canvas width="640" height="480"></canvas>
- <div class="opengl_canvas_sidebar">
- <ul class="opengl_value_tracker">
- <li><b>Angular Force:</b><span id="rigidbody_2_force_field">N/A</span></li>
- <li><b>Angular Acceleration:</b><span id="rigidbody_2_acceleration_field">N/A</span></li>
- <li><b>Angular Velocity:</b><span id="rigidbody_2_velocity_field">N/A</span></li>
- <li><b>Angular Position:</b><span id="rigidbody_2_position_field">N/A</span></li>
- </ul>
- <form id="rigidbody_2_force_submit_button" style="text-align: right; padding: 0.5rem;">
- <div id="rigidbody_2_force_input" class="vec2_input_group">
- <label>Force Vector</label>
- <input class="vec2_x_input" type="number" placeholder="X (Default 0)"/>
- <input class="vec2_y_input" type="number" placeholder="Y (Default 5000 N)"/>
- </div>
- <div id="rigidbody_2_position_input" class="vec2_input_group">
- <label>Point of Application (Unit Vector)</label>
- <input class="vec2_x_input" type="number" placeholder="X (Default 2 Root 2)"/>
- <input class="vec2_y_input" type="number" placeholder="Y (Default 2 Root 2)"/>
- </div>
- <input type="submit" value="Apply Force"></input>
- </form>
+ <section>
+ <article>
+ <h2>Part 2: Rotational Forces</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_2" class="opengl_canvas_container">
+ <canvas width="640" height="480"></canvas>
+ <div class="opengl_canvas_sidebar">
+ <ul class="opengl_value_tracker">
+ <li><b>Angular Force:</b><span id="rigidbody_2_force_field">N/A</span></li>
+ <li><b>Angular Acceleration:</b><span id="rigidbody_2_acceleration_field">N/A</span></li>
+ <li><b>Angular Velocity:</b><span id="rigidbody_2_velocity_field">N/A</span></li>
+ <li><b>Angular Position:</b><span id="rigidbody_2_position_field">N/A</span></li>
+ </ul>
+ <form id="rigidbody_2_force_submit_button" style="text-align: right; padding: 0.5rem;">
+ <div id="rigidbody_2_force_input" class="vec2_input_group">
+ <label>Force Vector</label>
+ <input class="vec2_x_input" type="number" placeholder="X (Default 0)"/>
+ <input class="vec2_y_input" type="number" placeholder="Y (Default 5000 N)"/>
+ </div>
+ <div id="rigidbody_2_position_input" class="vec2_input_group">
+ <label>Point of Application (Unit Vector)</label>
+ <input class="vec2_x_input" type="number" placeholder="X (Default 2 Root 2)"/>
+ <input class="vec2_y_input" type="number" placeholder="Y (Default 2 Root 2)"/>
+ </div>
+ <input type="submit" value="Apply Force"></input>
+ </form>
+ </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>
</section>
</main>
</body>