| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Sprong :: Pong with Physick</title> |
| 7 | <link rel="stylesheet" href="sprong.css"> |
| 8 | </head> |
| 9 | <body> |
| 10 | <h1>SPRONG</h1> |
| 11 | <div class="score left" id="leftScore">0</div> |
| 12 | <div class="score right" id="rightScore">0</div> |
| 13 | |
| 14 | <div id="gameCanvas"></div> |
| 15 | |
| 16 | <div class="info"> |
| 17 | <div>Physics-based Pong with Spring Paddles</div> |
| 18 | <div class="controls"> |
| 19 | Player 1: W/S + Left Shift (bop) | Player 2: ↑/↓ + Enter (bop)<br> |
| 20 | Mouse/Touch: Drag paddles | ESC: Menu | Space: Reset |
| 21 | </div> |
| 22 | </div> |
| 23 | |
| 24 | <!-- Load p5.js from CDN --> |
| 25 | <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js"></script> |
| 26 | |
| 27 | <!-- Load Matter.js from CDN --> |
| 28 | <script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.19.0/matter.min.js"></script> |
| 29 | |
| 30 | <!-- Load our game files, don't forget order matters --> |
| 31 | <script src="js/game-systems.js"></script> |
| 32 | <script src="js/ai.js"></script> |
| 33 | <script src="js/rendering.js"></script> |
| 34 | <script src="js/sprong.js"></script> |
| 35 | </body> |
| 36 | </html> |