UNPKG

scrawl-canvas

Version:
64 lines (51 loc) 1.61 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Demo Rapier 001</title> <link href="css/normalize.css" rel="stylesheet" /> <link href="css/tests.css" rel="stylesheet" /> <style> .controls { grid-template-columns: 1fr 1fr; width: 600px; margin-bottom: 0.5em; } .controls div { box-sizing: border-box; justify-self: stretch; align-self: center; text-align: center; padding: 6px 0; } </style> </head> <body> <h1><a href="index.html">Scrawl-canvas v8</a> - Rapier test 001</h1> <h2>Rapier physics engine - stacking boxes</h2> <p>This test is currently failing - probably due to significant changes in the Rapier JS library which we have not yet had time to investigate and fix. Priority not urgent.</p> <div class="controls"> <button id="run">Run</button> <button id="halt" disabled>Halt</button> </div> <canvas id="mycanvas" width="600" height="600" data-scrawl-canvas ></canvas> <p id="reportmessage"></p> <div class="testinfo"> <h4>Test purpose</h4> <ul> <li>Load the WASM file and associated JS bindings</li> <li>Build and animate a physics demo, using the Rapier engine to calculate entity positions and rotations</li> </ul> <p><b>Touch test:</b> not required</p> <p><a href="../docs/demo/rapier-001.html">Annotated code</a></p> </div> <script src="rapier-001.js" type="module"></script> </body> </html>