Un clone de Pong multijoueur écrit en NodeJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8" />
  6. <title>nodePong, a multiplayer online pong based on nodejs and socket.io</title>
  7. <link rel="stylesheet" type="text/css" media="all" href="./css/main.css">
  8. <script type="text/javascript" src="http://127.0.0.1:8042/socket.io/socket.io.js"></script>
  9. <script type="text/javascript" src="./jquery/jquery-2.1.3.min.js"></script>
  10. <script type="text/javascript" src="./lib/npg_client.js"></script>
  11. <script type="text/javascript" src="./lib/socket/socketio_handler.js"></script>
  12. <script type="text/javascript" src="./lib/utils/client_utils.js"></script>
  13. <script type="text/javascript" src="./lib/utils/js_utils.js"></script>
  14. <script type="text/javascript" src="./lib/keyboard/event_handler.js"></script>
  15. <script type="text/javascript" src="./lib/core/page_base.js"></script>
  16. <script type="text/javascript" src="./lib/core/page_handler.js"></script>
  17. <script type="text/javascript" src="./lib/ui/ui.js"></script>
  18. <script type="text/javascript" src="./lib/ui/objects/ui_object.js"></script>
  19. <script type="text/javascript" src="./lib/ui/objects/ui_menu.js"></script>
  20. <script type="text/javascript" src="./lib/ui/objects/ui_style.js"></script>
  21. <script type="text/javascript" src="./lib/ui/objects/ui_point2d.js"></script>
  22. <script type="text/javascript" src="./lib/ui/objects/ui_rect.js"></script>
  23. <script type="text/javascript" src="./lib/ui/objects/ui_label.js"></script>
  24. <script type="text/javascript" src="./lib/ui/objects/ui_status_text.js"></script>
  25. <script type="text/javascript" src="./lib/ui/objects/ui_status_value.js"></script>
  26. <script type="text/javascript" src="./lib/ui/objects/ui_input_text.js"></script>
  27. <script type="text/javascript" src="./lib/ui/objects/ui_cursor.js"></script>
  28. </head>
  29. <body>
  30. <div id="main">
  31. <canvas id="pong" width="800" height="500">
  32. </canvas>
  33. </div>
  34. </body>
  35. </html>
  36. <script type="text/javascript">
  37. $(document).ready(function() {
  38. NPGClient.PageHandler.setup();
  39. NPGClient.ui.setupUI('pong',NPGClient.CAN_W, NPGClient.CAN_H, NPGClient.CAN_COL);
  40. NPGClient.evtHandler.init();
  41. NPGClient.SocketIO.startConnectLoop();
  42. });
  43. </script>